awtk/tests/rich_text_test.cc
2019-02-26 14:20:33 +08:00

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);
}