Index: third_party/WebKit/LayoutTests/imported/wpt/workers/constructors/SharedWorker/global-members.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/workers/constructors/SharedWorker/global-members.html b/third_party/WebKit/LayoutTests/imported/wpt/workers/constructors/SharedWorker/global-members.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..af4eb1d4532b8e736a00d32ecff056ef9cc3a375 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/workers/constructors/SharedWorker/global-members.html |
@@ -0,0 +1,34 @@ |
+<!-- |
+var expected = 'self location close onerror importScripts navigator addEventListener removeEventListener dispatchEvent name applicationCache onconnect setTimeout clearTimeout setInterval clearInterval'.split(' '); |
+var log = ''; |
+for (var i = 0; i < expected.length; ++i) { |
+ if (!(expected[i] in self)) |
+ log += expected[i] + ' did not exist\n'; |
+} |
+onconnect = function(e) { |
+ e.ports[0].postMessage(log); |
+}; |
+/* |
+--> |
+<!doctype html> |
+<title>members of SharedWorkerGlobalScope</title> |
+<script src="/resources/testharness.js"></script> |
+<script src="/resources/testharnessreport.js"></script> |
+<div id="log"></div> |
+<script> |
+(async_test()).step(function() { |
+ var worker = new SharedWorker('#'); |
+ worker.port.addEventListener('message', this.step_func(function(e) { |
+ assert_equals(e.data, ''); |
+ this.done(); |
+ }), false); |
+ worker.port.start(); |
+}); |
+</script> |
+<!-- |
+*/ |
+//--> |
+ |
+ |
+ |
+ |