@@ -2868,10 +2868,10 @@ def test_canvas_size_proxy(self):
28682868 self .btest (path_from_root ('tests' , 'canvas_size_proxy.c' ), expected = '0' , args = ['--proxy-to-worker' ])
28692869
28702870 def test_separate_asm (self ):
2871- for opts in [0 , 1 , 2 ]:
2871+ for opts in [[ '-O0' ], [ '-O1' ], [ '-O2' ], [ '-O2' , '--closure' , '1' ] ]:
28722872 print opts
28732873 open ('src.cpp' , 'w' ).write (self .with_report_result (open (path_from_root ('tests' , 'browser_test_hello_world.c' )).read ()))
2874- Popen ([PYTHON , EMCC , 'src.cpp' , '-o' , 'test.html' , '-O' + str ( opts )] ).communicate ()
2874+ Popen ([PYTHON , EMCC , 'src.cpp' , '-o' , 'test.html' ] + opts ).communicate ()
28752875 self .run_browser ('test.html' , None , '/report_result?0' )
28762876
28772877 open ('one.html' , 'w' ).write ('<script src="test.js"></script>' )
@@ -2889,7 +2889,7 @@ def test_separate_asm(self):
28892889
28902890 self .clear ()
28912891 assert not os .path .exists ('tests.asm.js' )
2892- self .btest ('browser_test_hello_world.c' , expected = '0' , args = [ '-O' + str ( opts ), '--separate-asm' ])
2892+ self .btest ('browser_test_hello_world.c' , expected = '0' , args = opts + [ '--separate-asm' ])
28932893 assert os .path .exists ('test.asm.js' )
28942894 os .unlink ('test.asm.js' )
28952895 self .run_browser ('test.html' , None , '[no http server activity]' , timeout = 5 ) # fail without the asm
0 commit comments