awtk/tests/rich_text_test.cc

13 lines
296 B
C++
Raw Normal View History

#include "base/window.h"
2019-02-26 14:20:33 +08:00
#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);
}