mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 11:08:34 +08:00
12 lines
221 B
C++
12 lines
221 B
C++
|
#include "widgets/popup.h"
|
|||
|
#include "gtest/gtest.h"
|
|||
|
|
|||
|
TEST(Popup, cast) {
|
|||
|
widget_t* w = popup_create(NULL, 10, 20, 30, 40);
|
|||
|
|
|||
|
ASSERT_EQ(w, popup_cast(w));
|
|||
|
ASSERT_EQ(w, window_base_cast(w));
|
|||
|
|
|||
|
widget_destroy(w);
|
|||
|
}
|