diff options
Diffstat (limited to 'testing/web-platform/tests/workers/support/ImportScriptsNosniffErr.js')
-rw-r--r-- | testing/web-platform/tests/workers/support/ImportScriptsNosniffErr.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/support/ImportScriptsNosniffErr.js b/testing/web-platform/tests/workers/support/ImportScriptsNosniffErr.js new file mode 100644 index 0000000000..22dc9c1ba5 --- /dev/null +++ b/testing/web-platform/tests/workers/support/ImportScriptsNosniffErr.js @@ -0,0 +1,9 @@ +importScripts('/resources/testharness.js'); + +test(t => { + assert_throws_dom('NetworkError', () => { + importScripts("nosiniff-error-worker.py"); + }); +}, "importScripts throws on 'nosniff' violation"); + +done(); |