summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/modules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 03:41:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 03:41:35 +0000
commit2d861407bd7e9cc56fba8f2f763fe62dddb4da81 (patch)
tree32d9a69e31440af23173f321c975471ca10608c0 /testing/web-platform/tests/workers/modules
parentReleasing progress-linux version 115.11.0esr-1~progress7.99u1. (diff)
downloadfirefox-esr-2d861407bd7e9cc56fba8f2f763fe62dddb4da81.tar.xz
firefox-esr-2d861407bd7e9cc56fba8f2f763fe62dddb4da81.zip
Merging upstream version 115.12.0esr.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/workers/modules')
-rw-r--r--testing/web-platform/tests/workers/modules/dedicated-worker-import-failure.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/testing/web-platform/tests/workers/modules/dedicated-worker-import-failure.html b/testing/web-platform/tests/workers/modules/dedicated-worker-import-failure.html
index 4c705e7325..d4e104760e 100644
--- a/testing/web-platform/tests/workers/modules/dedicated-worker-import-failure.html
+++ b/testing/web-platform/tests/workers/modules/dedicated-worker-import-failure.html
@@ -46,9 +46,12 @@ test(() => {
assert_throws_dom('SyntaxError', () => new Worker(scriptURL, { type: 'module' }));
}, 'Worker construction for an invalid URL should throw an exception.');
-test(() => {
+async_test((t) => {
const scriptURL = 'file:///static-import-worker.js';
- assert_throws_dom('SecurityError', () => new Worker(scriptURL, { type: 'module' }));
-}, 'Worker construction for a file URL should throw an exception.');
+ const worker = new Worker(scriptURL, { type: 'module' });
+ worker.onerror = t.step_func_done(function(e) {
+ assert_true(e instanceof Event);
+ });
+}, 'Worker construction for a file URL should fail');
</script>