pikapython/test/pikaui-test.cpp
lyon 994bb3bdc5 add weakref
add PikaUI test

test PikauI_core passed

save host_obj on methodArg

support save host_obj for method
2023-02-11 00:58:58 +08:00

21 lines
434 B
C

#include "test_common.h"
TEST_START
#if !PIKA_NANO_ENABLE
TEST(pikaui, page) {
/* init */
pikaMemInfo.heapUsedMax = 0;
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
TEST_END