From 03c29b2a9a8ecdd60f99dac74e0a89d5a61a17c1 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Mon, 9 Dec 2024 13:25:09 -0800 Subject: [PATCH] Cleanup test_modularize_init_error. NFC (#23105) - Use browser_reporting.js directly. - Delete redundant unhandledrejection handler. browser_reporting handles this already. --- test/test_browser.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/test/test_browser.py b/test/test_browser.py index 6143486e91fa8..b5a6b97d93611 100644 --- a/test/test_browser.py +++ b/test/test_browser.py @@ -3342,9 +3342,10 @@ def test_modularize(self, opts): self.run_browser('a.html', '/report_result?0') def test_modularize_network_error(self): - browser_reporting_js_path = test_file('browser_reporting.js') - self.compile_btest('browser_test_hello_world.c', ['-sMODULARIZE', '-sEXPORT_NAME="createModule"', '--extern-pre-js', browser_reporting_js_path], reporting=Reporting.NONE) + self.compile_btest('browser_test_hello_world.c', ['-sMODULARIZE', '-sEXPORT_NAME=createModule'], reporting=Reporting.NONE) + shutil.copy(test_file('browser_reporting.js'), '.') create_file('a.html', ''' +