Skip to content

Commit 9eba40e

Browse files
authored
Convert test_html5_special_event_targets to btest_exit. NFC (#20997)
1 parent 72dc2d4 commit 9eba40e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

test/browser/html5_special_event_targets.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,5 @@ int main()
2424
EMSCRIPTEN_RESULT res = emscripten_webgl_make_context_current(context);
2525
assert(res == EMSCRIPTEN_RESULT_SUCCESS);
2626
assert(emscripten_webgl_get_current_context() == context);
27-
#ifdef REPORT_RESULT
28-
REPORT_RESULT(0);
29-
#endif
27+
return 0;
3028
}

test/test_browser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2767,7 +2767,7 @@ def test_html5_webgl_create_context2(self):
27672767
# Verify bug https://github.com/emscripten-core/emscripten/issues/4556: creating a WebGL context to Module.canvas without an ID explicitly assigned to it.
27682768
# (this only makes sense in the old deprecated -sDISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=0 mode)
27692769
def test_html5_special_event_targets(self):
2770-
self.btest('html5_special_event_targets.cpp', args=['-lGL'], expected='0')
2770+
self.btest_exit('html5_special_event_targets.cpp', args=['-lGL'])
27712771

27722772
@requires_graphics_hardware
27732773
def test_html5_webgl_destroy_context(self):

0 commit comments

Comments
 (0)