@@ -8665,8 +8665,15 @@ def test(check, extra):
8665
8665
proc = test(check=True, extra=['-sIGNORE_CLOSURE_COMPILER_ERRORS'])
8666
8666
self.assertNotContained(WARNING, proc.stderr)
8667
8667
8668
- def test_full_js_library(self):
8669
- self.run_process([EMCC, test_file('hello_world.c'), '-sSTRICT_JS', '-sINCLUDE_FULL_LIBRARY', '-sASYNCIFY'])
8668
+ @parameterized({
8669
+ '': ([],),
8670
+ 'asyncify': (['-sASYNCIFY'],),
8671
+ 'gl_emu': (['-sLEGACY_GL_EMULATION'],),
8672
+ 'no_exception_throwing': (['-sDISABLE_EXCEPTION_THROWING'],),
8673
+ 'minimal_runtime': (['-sMINIMAL_RUNTIME'],),
8674
+ })
8675
+ def test_full_js_library(self, args):
8676
+ self.run_process([EMCC, test_file('hello_world.c'), '-sSTRICT_JS', '-sINCLUDE_FULL_LIBRARY'] + args)
8670
8677
8671
8678
def test_full_js_library_undefined(self):
8672
8679
create_file('main.c', 'void foo(); int main() { foo(); return 0; }')
@@ -8678,15 +8685,6 @@ def test_full_js_library_except(self):
8678
8685
self.set_setting('DISABLE_EXCEPTION_CATCHING', 0)
8679
8686
self.do_other_test('test_full_js_library_except.cpp')
8680
8687
8681
- def test_full_js_library_gl_emu(self):
8682
- self.run_process([EMCC, test_file('hello_world.c'), '-sSTRICT_JS', '-sINCLUDE_FULL_LIBRARY', '-sLEGACY_GL_EMULATION'])
8683
-
8684
- def test_full_js_library_no_exception_throwing(self):
8685
- self.run_process([EMCC, test_file('hello_world.c'), '-sSTRICT_JS', '-sINCLUDE_FULL_LIBRARY', '-sDISABLE_EXCEPTION_THROWING'])
8686
-
8687
- def test_full_js_library_minimal_runtime(self):
8688
- self.run_process([EMCC, test_file('hello_world.c'), '-sSTRICT_JS', '-sINCLUDE_FULL_LIBRARY', '-sMINIMAL_RUNTIME'])
8689
-
8690
8688
@crossplatform
8691
8689
@parameterized({
8692
8690
'': [[]],
0 commit comments