Index: third_party/WebKit/LayoutTests/imported/wpt/workers/interfaces/WorkerUtils/importScripts/007.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/workers/interfaces/WorkerUtils/importScripts/007.html b/third_party/WebKit/LayoutTests/imported/wpt/workers/interfaces/WorkerUtils/importScripts/007.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..128fb1b64f71de1fa4f69110495c1fda80255875 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/workers/interfaces/WorkerUtils/importScripts/007.html |
@@ -0,0 +1,25 @@ |
+<!-- |
+importScripts('data:text/javascript,postMessage(1)'); |
+postMessage(2); |
+/* |
+--> |
+<!doctype html> |
+<title>postMessage in importScripts</title> |
+<script src="/resources/testharness.js"></script> |
+<script src="/resources/testharnessreport.js"></script> |
+<div id="log"></div> |
+<script> |
+async_test(function() { |
+ var worker = new Worker('#'); |
+ var i = 0; |
+ worker.onmessage = this.step_func(function(e) { |
+ i++; |
+ assert_equals(e.data, i); |
+ if (i == 2) |
+ this.done(); |
+ }); |
+}); |
+</script> |
+<!-- |
+*/ |
+//--> |