2023-02-10 18:39:13 +08:00
|
|
|
#include "test_common.h"
|
|
|
|
TEST_START
|
2023-03-09 20:45:55 +08:00
|
|
|
#if PIKA_GC_MARK_SWEEP_ENABLE
|
2023-02-10 18:39:13 +08:00
|
|
|
|
|
|
|
TEST(pikaui, page) {
|
|
|
|
/* init */
|
2023-03-06 14:39:04 +08:00
|
|
|
g_PikaMemInfo.heapUsedMax = 0;
|
2023-02-10 18:39:13 +08:00
|
|
|
PikaObj* pikaMain = newRootObj("pikaMain", New_PikaMain);
|
|
|
|
/* run */
|
|
|
|
__platform_printf("BEGIN\r\n");
|
|
|
|
pikaVM_runFile(pikaMain, "test/python/PikaUI/test_page.py");
|
|
|
|
/* collect */
|
|
|
|
/* assert */
|
|
|
|
/* deinit */
|
|
|
|
obj_deinit(pikaMain);
|
|
|
|
EXPECT_EQ(pikaMemNow(), 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2023-07-09 23:12:21 +08:00
|
|
|
TEST_END
|