@@ -256,10 +256,6 @@ def es6_module_workers_disabled():
256256requires_offscreen_canvas = skipIfFeatureNotAvailable ('EMTEST_LACKS_OFFSCREEN_CANVAS' , Feature .OFFSCREENCANVAS_SUPPORT , 'This test requires a browser with OffscreenCanvas' )
257257requires_es6_workers = skipIfFeatureNotAvailable ('EMTEST_LACKS_ES6_WORKERS' , Feature .WORKER_ES6_MODULES , 'This test requires a browser with ES6 Module Workers support' )
258258requires_growable_arraybuffers = skipIfFeatureNotAvailable ('EMTEST_LACKS_GROWABLE_ARRAYBUFFERS' , Feature .GROWABLE_ARRAYBUFFERS , 'This test requires a browser that supports growable ArrayBuffers' )
259- # N.b. not all SharedArrayBuffer requiring tests are annotated with this decorator, since at this point there are so many of such tests.
260- # As a middle ground, if a test has a name 'thread' or 'wasm_worker' in it, then it does not need decorating. To run all single-threaded tests in
261- # the suite, one can run "EMTEST_LACKS_SHARED_ARRAY_BUFFER=1 test/runner browser skip:browser.test_*thread* skip:browser.test_*wasm_worker* skip:browser.test_*audio_worklet*"
262- requires_shared_array_buffer = skipIfFeatureNotAvailable ('EMTEST_LACKS_SHARED_ARRAY_BUFFER' , Feature .THREADS , 'This test requires a browser with SharedArrayBuffer support' )
263259
264260
265261class browser (BrowserCore ):
@@ -2538,7 +2534,7 @@ def test_doublestart_bug(self):
25382534 'closure' : (['-O2' , '-g1' , '--closure=1' , '-sHTML5_SUPPORT_DEFERRING_USER_SENSITIVE_REQUESTS=0' ],),
25392535 'pthread' : (['-pthread' ],),
25402536 'proxy_to_pthread' : (['-pthread' , '-sPROXY_TO_PTHREAD' ],),
2541- 'legacy' : (['-sMIN_FIREFOX_VERSION=0' , '-sMIN_SAFARI_VERSION=0' , '-sMIN_CHROME_VERSION=0' , '-Wno-transpile' ],),
2537+ 'legacy' : (['-sMIN_FIREFOX_VERSION=0' , '-sMIN_SAFARI_VERSION=0' , '-sMIN_CHROME_VERSION=0' ],),
25422538 })
25432539 def test_html5_core (self , opts ):
25442540 if self .is_wasm64 () and '-sMIN_CHROME_VERSION=0' in opts :
@@ -2641,7 +2637,7 @@ def test_webgl_unmasked_vendor_webgl(self):
26412637
26422638 @requires_graphics_hardware
26432639 @parameterized ({
2644- 'legacy_browser' : (['-sMIN_CHROME_VERSION=0' , '-Wno-transpile' ],),
2640+ 'legacy_browser' : (['-sMIN_CHROME_VERSION=0' ],),
26452641 'closure' : (['-O2' , '-g1' , '--closure=1' ],),
26462642 'full_es2' : (['-sFULL_ES2' ],),
26472643 })
@@ -3489,7 +3485,6 @@ def test_dlopen_async(self):
34893485 self .emcc ('side.c' , ['-o' , 'libside.so' , '-sSIDE_MODULE' ])
34903486 self .btest_exit ('other/test_dlopen_async.c' , cflags = ['-sMAIN_MODULE=2' ])
34913487
3492- @requires_shared_array_buffer
34933488 def test_dlopen_blocking (self ):
34943489 self .emcc ('other/test_dlopen_blocking_side.c' , ['-o' , 'libside.so' , '-sSIDE_MODULE' , '-pthread' , '-Wno-experimental' ])
34953490 # Attempt to use dlopen the side module (without preloading) should fail on the main thread
@@ -4540,7 +4535,6 @@ def test_fetch_to_memory_async(self):
45404535 create_file ('myfile.dat' , 'hello world\n ' * 1000 )
45414536 self .btest_exit ('fetch/test_fetch_to_memory_async.c' , cflags = ['-sFETCH' ])
45424537
4543- @requires_shared_array_buffer
45444538 def test_fetch_to_memory_sync (self ):
45454539 create_file ('myfile.dat' , 'hello world\n ' * 1000 )
45464540 self .btest_exit ('fetch/test_fetch_to_memory_sync.c' , cflags = ['-sFETCH' , '-pthread' , '-sPROXY_TO_PTHREAD' ])
@@ -4873,11 +4867,9 @@ def test_emscripten_request_animation_frame_loop(self):
48734867 def test_request_animation_frame (self ):
48744868 self .btest_exit ('test_request_animation_frame.c' )
48754869
4876- @requires_shared_array_buffer
48774870 def test_emscripten_set_timeout (self ):
48784871 self .btest_exit ('emscripten_set_timeout.c' , cflags = ['-pthread' , '-sPROXY_TO_PTHREAD' ])
48794872
4880- @requires_shared_array_buffer
48814873 def test_emscripten_set_timeout_loop (self ):
48824874 self .btest_exit ('emscripten_set_timeout_loop.c' , cflags = ['-pthread' , '-sPROXY_TO_PTHREAD' ])
48834875
@@ -4887,7 +4879,6 @@ def test_emscripten_set_immediate(self):
48874879 def test_emscripten_set_immediate_loop (self ):
48884880 self .btest_exit ('emscripten_set_immediate_loop.c' )
48894881
4890- @requires_shared_array_buffer
48914882 def test_emscripten_set_interval (self ):
48924883 self .btest_exit ('emscripten_set_interval.c' , cflags = ['-pthread' , '-sPROXY_TO_PTHREAD' ])
48934884
@@ -5466,15 +5457,13 @@ def test_full_js_library_strict(self):
54665457 'audio_params_disabled' : (['-sAUDIO_WORKLET_SUPPORT_AUDIO_PARAMS=0' ],),
54675458 })
54685459 @requires_sound_hardware
5469- @requires_shared_array_buffer
54705460 def test_audio_worklet (self , args ):
54715461 if '-sEXPORT_ES6' in args and es6_module_workers_disabled ():
54725462 self .skipTest ('This test requires a browser with ES6 Module Workers support' )
54735463 self .btest_exit ('webaudio/audioworklet.c' , cflags = ['-sAUDIO_WORKLET' , '-sWASM_WORKERS' , '-DTEST_AND_EXIT' ] + args )
54745464
54755465 # Tests that audioworklets and workers can be used at the same time
54765466 # Note: doesn't need audio hardware (and has no AW code that tests 2GB or wasm64)
5477- @requires_shared_array_buffer
54785467 def test_audio_worklet_worker (self ):
54795468 self .btest_exit ('webaudio/audioworklet_worker.c' , cflags = ['-sAUDIO_WORKLET' , '-sWASM_WORKERS' ])
54805469
@@ -5484,7 +5473,6 @@ def test_audio_worklet_worker(self):
54845473 'closure' : (['--closure' , '1' , '-Oz' ],),
54855474 })
54865475 # Note: doesn't need audio hardware (and has no AW code that tests 2GB or wasm64)
5487- @requires_shared_array_buffer
54885476 def test_audio_worklet_post_function (self , args ):
54895477 self .btest_exit ('webaudio/audioworklet_post_function.c' , cflags = ['-sAUDIO_WORKLET' , '-sWASM_WORKERS' ] + args )
54905478
@@ -5493,7 +5481,6 @@ def test_audio_worklet_post_function(self, args):
54935481 'closure' : (['--closure' , '1' , '-Oz' ],),
54945482 })
54955483 @requires_sound_hardware
5496- @requires_shared_array_buffer
54975484 def test_audio_worklet_modularize (self , args ):
54985485 self .btest_exit ('webaudio/audioworklet.c' , cflags = ['-sAUDIO_WORKLET' , '-sWASM_WORKERS' , '-sMODULARIZE=1' , '-DTEST_AND_EXIT' ] + args )
54995486
@@ -5505,7 +5492,6 @@ def test_audio_worklet_modularize(self, args):
55055492 'minimal_with_closure' : (['-sMINIMAL_RUNTIME' , '--closure=1' , '-Oz' ],),
55065493 })
55075494 @requires_sound_hardware
5508- @requires_shared_array_buffer
55095495 def test_audio_worklet_params_mixing (self , args ):
55105496 os .mkdir ('audio_files' )
55115497 copy_asset ('webaudio/audio_files/emscripten-beat.mp3' , 'audio_files/' )
@@ -5514,7 +5500,6 @@ def test_audio_worklet_params_mixing(self, args):
55145500
55155501 # Tests AudioWorklet with emscripten_lock_busyspin_wait_acquire() and friends
55165502 @requires_sound_hardware
5517- @requires_shared_array_buffer
55185503 @also_with_minimal_runtime
55195504 def test_audio_worklet_emscripten_locks (self ):
55205505 self .btest_exit ('webaudio/audioworklet_emscripten_locks.c' , cflags = ['-sAUDIO_WORKLET' , '-sWASM_WORKERS' , '-pthread' ])
@@ -5626,7 +5611,6 @@ def test_rollup(self):
56265611 '' : ([], 9998 ),
56275612 'es6' : (['-sEXPORT_ES6' , '--extern-post-js' , test_file ('modularize_post_js.js' )], 9999 ),
56285613 })
5629- @requires_shared_array_buffer
56305614 def test_cross_origin (self , args , port ):
56315615 if '-sEXPORT_ES6' in args and browser_should_skip_feature ('EMTEST_LACKS_ES6_WORKERS' , Feature .WORKER_ES6_MODULES ):
56325616 self .skipTest ('This test requires a browser with ES6 Module Workers support' )
0 commit comments