@@ -203,6 +203,7 @@ def webgpu_disabled():
203
203
requires_webgpu = unittest .skipIf (webgpu_disabled (), "This test requires WebGPU to be available" )
204
204
requires_sound_hardware = skipExecIf (os .getenv ('EMTEST_LACKS_SOUND_HARDWARE' ), 'This test requires sound hardware' )
205
205
requires_offscreen_canvas = skipExecIf (os .getenv ('EMTEST_LACKS_OFFSCREEN_CANVAS' ), 'This test requires a browser with OffscreenCanvas' )
206
+ requires_es6_workers = skipExecIf (os .getenv ('EMTEST_LACKS_ES6_WORKERS' ), 'This test requires a browser with ES6 Module Workers support' )
206
207
207
208
208
209
class browser (BrowserCore ):
@@ -4732,6 +4733,7 @@ def test_pthread_reltime(self):
4732
4733
'blob_es6' : (True , True ),
4733
4734
'url_es6' : (True , False ),
4734
4735
})
4736
+ @requires_es6_workers
4735
4737
def test_mainScriptUrlOrBlob (self , es6 , use_blob ):
4736
4738
# TODO: enable this with wasm, currently pthreads/atomics have limitations
4737
4739
self .set_setting ('EXIT_RUNTIME' )
@@ -5081,6 +5083,7 @@ def test_system(self):
5081
5083
def test_wasm_worker_hello (self ):
5082
5084
self .btest_exit ('wasm_worker/hello_wasm_worker.c' , cflags = ['-sWASM_WORKERS' , '-sENVIRONMENT=web' ])
5083
5085
5086
+ @requires_es6_workers
5084
5087
def test_wasm_worker_hello_export_es6 (self ):
5085
5088
self .btest_exit ('wasm_worker/hello_wasm_worker.c' , cflags = ['-sWASM_WORKERS' , '-sENVIRONMENT=web' , '-sEXPORT_ES6' ])
5086
5089
@@ -5474,6 +5477,7 @@ def test_full_js_library_strict(self):
5474
5477
'audio_params_disabled' : (['-sAUDIO_WORKLET_SUPPORT_AUDIO_PARAMS=0' ],),
5475
5478
})
5476
5479
@requires_sound_hardware
5480
+ @requires_es6_workers
5477
5481
def test_audio_worklet (self , args ):
5478
5482
self .btest_exit ('webaudio/audioworklet.c' , cflags = ['-sAUDIO_WORKLET' , '-sWASM_WORKERS' , '-DTEST_AND_EXIT' ] + args )
5479
5483
0 commit comments