awtk/tests/rich_text_test.cc

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