mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-05 05:27:58 +08:00
13 lines
296 B
C++
13 lines
296 B
C++
#include "base/window.h"
|
|
#include "rich_text/rich_text.h"
|
|
#include "gtest/gtest.h"
|
|
|
|
TEST(RichText, cast) {
|
|
widget_t* w = window_create(NULL, 0, 0, 0, 0);
|
|
widget_t* rich_text = rich_text_create(w, 0, 0, 100, 100);
|
|
|
|
ASSERT_EQ(rich_text, rich_text_cast(rich_text));
|
|
|
|
widget_destroy(w);
|
|
}
|