awtk/tests/system_bar_test.cc
2021-09-17 16:25:52 +08:00

15 lines
314 B
C++

#include "base/window.h"
#include "widgets/system_bar.h"
#include "gtest/gtest.h"
TEST(SystemBar, cast) {
widget_t* w = system_bar_create(NULL, 10, 20, 30, 40);
ASSERT_EQ(widget_is_system_bar(w), TRUE);
ASSERT_EQ(w, system_bar_cast(w));
ASSERT_EQ(w, window_base_cast(w));
window_close_force(w);
}