Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/external/wpt/workers/WorkerGlobalScope_importScripts_NosniffErr.htm |
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/workers/WorkerGlobalScope_importScripts_NosniffErr.htm b/third_party/WebKit/LayoutTests/external/wpt/workers/WorkerGlobalScope_importScripts_NosniffErr.htm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b00543cdb1125871850f811c3d4c5f8d2e78e865 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/external/wpt/workers/WorkerGlobalScope_importScripts_NosniffErr.htm |
| @@ -0,0 +1,13 @@ |
| +<!DOCTYPE html> |
| +<title> importScripts() with nosniff X-Content-Type-Options</title> |
| +<script src="/resources/testharness.js"></script> |
| +<script src="/resources/testharnessreport.js"></script> |
| +<div id=log></div> |
| +<script> |
| +async_test(function(t) { |
| + var worker = new Worker("./support/ImportScriptsNosniffErr.js"); |
| + worker.onmessage = t.step_func_done(function(e) { |
| + assert_equals(e.data, "Pass"); |
| + }); |
| +}); |
|
Mike West
2017/02/13 09:56:08
This is probably cleaner to write as:
```
fetch_t
horo
2017/02/13 10:30:50
Done.
|
| +</script> |