mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 20:18:22 +08:00
13 lines
299 B
C++
13 lines
299 B
C++
|
#include "widgets/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);
|
|||
|
}
|