Skip to content

Commit

Permalink
tests: test_html5: test emscripten_set_element_style
Browse files Browse the repository at this point in the history
  • Loading branch information
jakogut committed Nov 25, 2019
1 parent 721e6a1 commit e0fb815
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_html5.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ int main()
emscripten_get_screen_size(&width, &height);
printf("Current screen size: %dx%d\n", width, height);

emscripten_set_element_style("canvas", "cursor", "crosshair");

/* For the events to function, one must either call emscripten_set_main_loop or enable Module.noExitRuntime by some other means.
Otherwise the application will exit after leaving main(), and the atexit handlers will clean up all event hooks (by design). */
EM_ASM(noExitRuntime = true);
Expand Down

0 comments on commit e0fb815

Please sign in to comment.