- Added new methods for event polling and handling in the Event module, including `pollName` for retrieving message names. - Introduced new graphics functions for clearing the screen and drawing solid rectangles with RGBA support. - Updated the Window module to expose new settings and graphics functionalities. - Refactored the main script to utilize the new graphics and event features, improving the example game structure.
13 lines
361 B
C++
13 lines
361 B
C++
#include "ScriptTest.h"
|
|
|
|
extern const char* window_content;
|
|
UnitSciptTest(WindowTest, window_content);
|
|
|
|
TEST_CASE_FIXTURE(WindowTest, "WindowTest.basicWindow") {
|
|
CHECK(vm.callFunc(vm.findFunc("basicWindow"), vm).toBool());
|
|
}
|
|
|
|
TEST_CASE_FIXTURE(WindowTest, "WindowTest.settingsFields") {
|
|
CHECK(vm.callFunc(vm.findFunc("settingsFields"), vm).toBool());
|
|
}
|