Index: third_party/WebKit/LayoutTests/imported/wpt/workers/data-url.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/workers/data-url.html b/third_party/WebKit/LayoutTests/imported/wpt/workers/data-url.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c212a699ec60f542d0775d38645c1124699ee3d1 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/workers/data-url.html |
@@ -0,0 +1,13 @@ |
+<!DOCTYPE html> |
+<title>data URL worker</title> |
+<script src="/resources/testharness.js"></script> |
+<script src="/resources/testharnessreport.js"></script> |
+<div id=log></div> |
+<script> |
+async_test(t => { |
+ var worker = new Worker("data:,fetch('/').then(() => self.postMessage('fail'), () => self.postMessage('pass'))") // not same-origin |
+ worker.onmessage = t.step_func_done(e => { |
+ assert_equals(e.data, "pass") |
+ }) |
+}) |
+</script> |