We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a5d263 commit 74a8d75Copy full SHA for 74a8d75
1 file changed
tests/test_html5.c
@@ -420,6 +420,11 @@ int main()
420
? EMSCRIPTEN_RESULT_SUCCESS : EMSCRIPTEN_RESULT_FAILED);
421
TEST_RESULT(emscripten_get_window_title);
422
423
+ int width, height;
424
+ emscripten_get_screen_size(&width, &height);
425
+ ret = (width && height) ? EMSCRIPTEN_RESULT_SUCCESS : EMSCRIPTEN_RESULT_FAILED;
426
+ TEST_RESULT(emscripten_get_screen_size);
427
+
428
/* For the events to function, one must either call emscripten_set_main_loop or enable Module.noExitRuntime by some other means.
429
Otherwise the application will exit after leaving main(), and the atexit handlers will clean up all event hooks (by design). */
430
EM_ASM(noExitRuntime = true);
0 commit comments