Diff
Modified: trunk/LayoutTests/ChangeLog (253452 => 253453)
--- trunk/LayoutTests/ChangeLog 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/ChangeLog 2019-12-13 00:20:57 UTC (rev 253453)
@@ -1,5 +1,14 @@
2019-12-12 Chris Dumez <[email protected]>
+ Re-sync workers web-platform-tests from upstream
+ https://bugs.webkit.org/show_bug.cgi?id=205180
+
+ Reviewed by Alex Christensen.
+
+ * TestExpectations:
+
+2019-12-12 Chris Dumez <[email protected]>
+
Re-sync webmessaging web-platform-tests from upstream
https://bugs.webkit.org/show_bug.cgi?id=205178
Modified: trunk/LayoutTests/TestExpectations (253452 => 253453)
--- trunk/LayoutTests/TestExpectations 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/TestExpectations 2019-12-13 00:20:57 UTC (rev 253453)
@@ -328,6 +328,7 @@
imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/disallow-crossorigin.html [ Skip ]
imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html [ Skip ]
imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-iframe.html [ Skip ]
+imported/w3c/web-platform-tests/workers/WorkerLocation-origin.sub.window.html [ Skip ]
imported/w3c/web-platform-tests/html/infrastructure/urls/resolving-urls/query-encoding/utf-16le.html [ Skip ]
imported/w3c/web-platform-tests/html/infrastructure/urls/resolving-urls/query-encoding/utf-8.html [ Skip ]
imported/w3c/web-platform-tests/html/browsers/browsing-the-web/history-traversal/browsing_context_name_cross_origin_2.html [ Skip ]
@@ -454,7 +455,6 @@
imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/006.html [ Skip ]
imported/w3c/web-platform-tests/workers/nested_worker.worker.html [ Skip ]
imported/w3c/web-platform-tests/workers/opaque-origin.html [ Skip ]
-imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.html [ Skip ]
imported/w3c/web-platform-tests/workers/semantics/multiple-workers/003.html [ Skip ]
imported/w3c/web-platform-tests/workers/semantics/multiple-workers/005.html [ Skip ]
imported/w3c/web-platform-tests/workers/Worker_cross_origin_security_err.htm [ Skip ]
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2019-12-13 00:20:57 UTC (rev 253453)
@@ -1,5 +1,16 @@
2019-12-12 Chris Dumez <[email protected]>
+ Re-sync workers web-platform-tests from upstream
+ https://bugs.webkit.org/show_bug.cgi?id=205180
+
+ Reviewed by Alex Christensen.
+
+ Re-sync workers web-platform-tests from upstream 178762b6fce688979e261f3ac8.
+
+ * web-platform-tests/workers/*: Updated.
+
+2019-12-12 Chris Dumez <[email protected]>
+
Re-sync webmessaging web-platform-tests from upstream
https://bugs.webkit.org/show_bug.cgi?id=205178
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-MessageEvent-source.any.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-MessageEvent-source.any.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-MessageEvent-source.any.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-MessageEvent-source.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-MessageEvent-source.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-MessageEvent-source.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,6 @@
+// META: global=!default,sharedworker
+const t = async_test("Make sure that MessageEvent.source is properly set in connect event.");
+_onconnect_ = t.step_func_done((event) => {
+ assert_equals(event.__proto__, MessageEvent.prototype);
+ assert_equals(event.source, event.ports[0]);
+});
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-MessageEvent-source.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-MessageEvent-source.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-MessageEvent-source.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-replace-EventHandler.any.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-replace-EventHandler.any.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-replace-EventHandler.any.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-replace-EventHandler.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-replace-EventHandler.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-replace-EventHandler.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,15 @@
+// META: global=!default,sharedworker
+// https://crbug.com/239669
+const t = async_test("Tests that repeatedly setting 'onerror' within a shared worker doesnt crash.");
+_onconnect_ = t.step_func_done((event) => {
+ function update() {
+ _onerror_ = undefined;
+ }
+ try {
+ for (var i = 0; i < 8; ++i) {
+ update();
+ }
+ } catch (ex) {
+ assert_unreached("FAIL: unexpected exception (" + ex + ") received while updating onerror event handler.");
+ }
+});
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-replace-EventHandler.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-replace-EventHandler.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-replace-EventHandler.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-base64.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-base64.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-base64.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,5 @@
+// META: global=!default,worker
+test(() => {
+ assert_true(typeof atob === 'function');
+ assert_true(typeof btoa === 'function');
+}, 'Tests that atob() / btoa() functions are exposed to workers');
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-base64.any.worker-expected.txt (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-base64.any.worker-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-base64.any.worker-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,3 @@
+
+PASS Tests that atob() / btoa() functions are exposed to workers
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-base64.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-base64.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-base64.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-constructor-proto.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-constructor-proto.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-constructor-proto.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,7 @@
+//META: global=!default, worker
+test(() => {
+ proto = new Number(42)
+ assert_equals(String(Object.getPrototypeOf(WorkerLocation)).replace(/\n/g, " ").replace(/\s\s+/g, " "), "function () { [native code] }");
+ WorkerLocation.__proto__ = proto;
+ assert_object_equals(Object.getPrototypeOf(WorkerLocation), Object(42));
+}, 'Tests that setting the proto of a built in constructor is not reset.');
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-constructor-proto.any.worker-expected.txt (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-constructor-proto.any.worker-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-constructor-proto.any.worker-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,3 @@
+
+PASS Tests that setting the proto of a built in constructor is not reset.
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-constructor-proto.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-constructor-proto.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-constructor-proto.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-custom-event.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-custom-event.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-custom-event.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,8 @@
+// META: global=!default,worker
+async_test(t => {
+ var target = self;
+ target.addEventListener('custom-event', t.step_func_done());
+
+ var event = new Event('custom-event');
+ target.dispatchEvent(event);
+}, 'Test CustomEvents on workers.');
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-custom-event.any.worker-expected.txt (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-custom-event.any.worker-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-custom-event.any.worker-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,3 @@
+
+PASS Test CustomEvents on workers.
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-custom-event.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-custom-event.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-custom-event.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-formdata.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-formdata.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-formdata.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,19 @@
+// META: global=!default,dedicatedworker
+test(() => {
+ assert_own_property(self, 'FormData');
+ assert_equals(FormData.length, 0);
+
+ var formData = new FormData();
+ assert_not_equals(formData, null);
+ assert_own_property(FormData.prototype, 'append');
+ formData.append('key', 'value');
+
+ var blob = new Blob([]);
+ assert_not_equals(blob, null);
+ formData.append('key', blob);
+ formData.append('key', blob, 'filename');
+
+ assert_throws("DataCloneError",
+ function() { postMessage(formData) },
+ "Trying to clone formdata inside a postMessage results in an exception." );
+},'Test FormData interface object');
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-formdata.any.worker-expected.txt (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-formdata.any.worker-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-formdata.any.worker-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,3 @@
+
+PASS Test FormData interface object
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-formdata.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-formdata.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-formdata.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-location.sub.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-location.sub.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-location.sub.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,14 @@
+// META: global=!default, dedicatedworker, sharedworker
+test(() => {
+ assert_equals(String(WorkerLocation).replace(/\n/g, " ").replace(/\s\s+/g, " "), "function WorkerLocation() { [native code] }");
+ assert_true(location instanceof Object);
+ assert_equals(location.href, 'http://{{host}}:{{ports[http][0]}}/workers/Worker-location.sub.any.worker.js');
+ assert_equals(location.origin, "http://{{host}}:{{ports[http][0]}}");
+ assert_equals(location.protocol, "http:");
+ assert_equals(location.host, "{{host}}:{{ports[http][0]}}");
+ assert_equals(location.hostname, "{{host}}");
+ assert_equals(location.port, "{{ports[http][0]}}");
+ assert_equals(location.pathname, "/workers/Worker-location.sub.any.worker.js");
+ assert_equals(location.search, "");
+ assert_equals(location.hash, "");
+}, 'Test WorkerLocation properties.');
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-location.sub.any.worker-expected.txt (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-location.sub.any.worker-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-location.sub.any.worker-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,3 @@
+
+PASS Test WorkerLocation properties.
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-location.sub.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-location.sub.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-location.sub.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-multi-port-expected.txt (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-multi-port-expected.txt 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-multi-port-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -5,11 +5,7 @@
PASS Test postMessage with two ports.
PASS Test empty postMessage throws exception.
PASS Test postMessage with null ports throws exception.
-FAIL Test postMessage with incorrect ports throws exception assert_throws: postMessage with incorrect ports should throw exception. function "function () { worker.postMessage("notAPort",
- [channel.port1, {},
- channel.port2]); }" threw object "DataCloneError: The object can not be cloned." ("DataCloneError") expected object "TypeError" ("TypeError")
-FAIL Test postMessage without sequence throws exception assert_throws: postMessage without sequence should throw exception. function "function () { worker.postMessage("notASequence", [{length: 3}]) }" threw object "DataCloneError: The object can not be cloned." ("DataCloneError") expected object "TypeError" ("TypeError")
-FAIL Test postMessage on channel with previous failed postMessage calls. assert_throws: postMessage with incorrect ports should throw exception. function "function () { worker.postMessage("notAPort",
- [channel.port1, {},
- channel.port2]); }" threw object "DataCloneError: The object can not be cloned." ("DataCloneError") expected object "TypeError" ("TypeError")
+PASS Test postMessage with incorrect ports throws exception
+PASS Test postMessage without sequence throws exception
+PASS Test postMessage on channel with previous failed postMessage calls.
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-multi-port.html (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-multi-port.html 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-multi-port.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -56,7 +56,7 @@
test(() => {
var worker = new Worker("support/Worker-thread-multi-port.js")
var channel = new MessageChannel();
- assert_throws(new TypeError(),
+ assert_throws('DataCloneError',
function() { worker.postMessage("notAPort",
[channel.port1, {},
channel.port2]); },
@@ -65,7 +65,7 @@
test(() => {
var worker = new Worker("support/Worker-thread-multi-port.js");
- assert_throws(new TypeError(),
+ assert_throws('DataCloneError',
function() { worker.postMessage("notASequence", [{length: 3}]) },
'postMessage without sequence should throw exception.');
}, 'Test postMessage without sequence throws exception');
@@ -73,7 +73,7 @@
async_test(function(t) {
var worker = new Worker("support/Worker-thread-multi-port.js");
var channel = new MessageChannel();
- assert_throws(new TypeError(),
+ assert_throws('DataCloneError',
function() { worker.postMessage("notAPort",
[channel.port1, {},
channel.port2]); },
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-event-handler.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-event-handler.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-event-handler.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,11 @@
+// META: global=!default,worker
+// This is a regression test for a crash bug in Chrome: http://crbug.com/239669
+function update() {
+ _onmessage_ = undefined;
+}
+
+test(() => {
+ for (var i = 0; i < 8; ++i) {
+ update();
+ }
+}, "Tests that repeatedly setting 'onmessage' within a worker doesn't crash.");
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-event-handler.any.worker-expected.txt (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-event-handler.any.worker-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-event-handler.any.worker-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,3 @@
+
+PASS Tests that repeatedly setting 'onmessage' within a worker doesn't crash.
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-event-handler.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-event-handler.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-event-handler.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-global-constructor.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-global-constructor.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-global-constructor.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,9 @@
+// META: global=!default,worker
+test(() => {
+ try {
+ self.MessageEvent = 'PASS';
+ assert_equals(self.MessageEvent, 'PASS');
+ } catch (ex) {
+ assert_unreached("FAIL: unexpected exception (" + ex + ") received while replacing global constructor MessageEvent.");
+ }
+}, 'Test replacing global constructors in a worker context.');
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-global-constructor.any.worker-expected.txt (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-global-constructor.any.worker-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-global-constructor.any.worker-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,3 @@
+
+PASS Test replacing global constructors in a worker context.
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-global-constructor.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-global-constructor.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-global-constructor.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-self.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-self.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-self.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,9 @@
+// META: global=!default,worker
+test(() => {
+ try {
+ self = 'PASS';
+ assert_true(self instanceof WorkerGlobalScope);
+ } catch (ex) {
+ assert_unreached("FAIL: unexpected exception (" + ex + ") received while replacing self.");
+ }
+}, 'Test that self is not replaceable.');
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-self.any.worker-expected.txt (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-self.any.worker-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-self.any.worker-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,3 @@
+
+PASS Test that self is not replaceable.
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-self.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-self.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-self.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope-close.html (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope-close.html 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope-close.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -16,16 +16,31 @@
async_test(function(t) {
var worker = new Worker('support/WorkerGlobalScope-close.js');
worker.postMessage("ping");
- worker._onmessage_ = t.step_func(function(evt) {
+ worker._onmessage_ = t.step_func(function(evt) {
assert_equals(evt.data, "pong");
- // Tell the worker to close, then send a followup message. This message
- // should not be delivered, since that would require JS to invoke the
- // onmessage handler, which does not happen after the JS fragment with
- // 'close()' in it exits. So, the 'ping' should not come back as 'pong'.
+ // Tell the worker to close, then send a followup message.
worker.postMessage("close");
+
+ // The worker may or may not be closing/closed by this call. If it is, the
+ // message won't be enqueued on the worker's event loop. If it isn't, the
+ // message will be enqueued but shouldn't be handled by the worker because
+ // the prior postMessage will cause the worker to close. In either case,
+ // the worker shouldn't postMessage back "pong".
+ //
+ // This also means that at this point we can't confidently test
+ // postMessage-ing a worker that will close nor a worker that is already
+ // closing/closed.
worker.postMessage("ping");
- worker._onmessage_ = t.step_func(function(evt) {
+
+ worker._onmessage_ = t.step_func(function(evt) {
assert_not_equals(evt.data, "pong");
+
+ // The worker should definitely be closed by now, so we can confidently
+ // test postMessage-ing a closed worker. This postMessage shouldn't throw
+ // or cause the worker to postMessage back "pong" (it shouldn't receive
+ // any events after closing).
+ worker.postMessage("ping");
+
t.step_timeout(function() { t.done(); }, 500);
});
});
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerLocation-origin.sub.window-expected.txt (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerLocation-origin.sub.window-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerLocation-origin.sub.window-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,6 @@
+Blocked access to external URL http://xn--n8j6ds53lwwkrqhv28a.localhost:8800/workers/support/WorkerLocation-origin.html
+
+Harness Error (TIMEOUT), message = null
+
+TIMEOUT workerLocation.origin must use ASCII code points Test timed out
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerLocation-origin.sub.window.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerLocation-origin.sub.window.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerLocation-origin.sub.window.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerLocation-origin.sub.window.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerLocation-origin.sub.window.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerLocation-origin.sub.window.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,11 @@
+async_test(t => {
+ const frame = document.createElement("iframe"),
+ asciiOrigin = location.protocol + "//{{domains[天気の良い日]}}:" + location.port,
+ path = new URL("support/WorkerLocation-origin.html", location).pathname;
+ frame.src = "" + path;
+ self._onmessage_ = t.step_func_done(e => {
+ assert_equals(e.data.origin, asciiOrigin);
+ });
+ document.body.appendChild(frame);
+ t.add_cleanup(() => frame.remove());
+}, "workerLocation.origin must use ASCII code points");
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator-hardware-concurrency.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator-hardware-concurrency.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator-hardware-concurrency.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,4 @@
+// META: global=!default,worker
+test(() => {
+ assert_true(navigator.hardwareConcurrency > 0);
+}, 'Test worker navigator hardware concurrency.');
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator-hardware-concurrency.any.worker-expected.txt (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator-hardware-concurrency.any.worker-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator-hardware-concurrency.any.worker-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,3 @@
+
+FAIL Test worker navigator hardware concurrency. assert_true: expected true got false
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator-hardware-concurrency.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator-hardware-concurrency.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator-hardware-concurrency.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,12 @@
+// META: global=!default, worker
+test(() => {
+ assert_equals(typeof navigator, "object");
+ assert_true(navigator instanceof WorkerNavigator);
+ assert_equals(navigator.appName, "Netscape");
+ assert_true(navigator.appVersion.indexOf('WebKit') != 0);
+ assert_equals(typeof navigator.platform, "string");
+ assert_true(navigator.userAgent.indexOf('WebKit') != 0);
+ assert_equals(typeof navigator.onLine, "boolean");
+ assert_equals(navigator.appCodeName, 'Mozilla');
+ assert_equals(navigator.product, 'Gecko');
+}, "Testing Navigator properties on workers.");
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator.any.worker-expected.txt (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator.any.worker-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator.any.worker-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,3 @@
+
+PASS Testing Navigator properties on workers.
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker_script_mimetype.htm (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker_script_mimetype.htm 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker_script_mimetype.htm 2019-12-13 00:20:57 UTC (rev 253453)
@@ -9,6 +9,8 @@
worker._onmessage_ = t.step_func_done(function(e) {
assert_equals(e.data, "Pass");
});
+ // TODO(mkwst): Revisit this after https://github.com/whatwg/html/issues/3255.
+ worker._onerror_ = t.unreached_func("Worker should load.");
worker.postMessage("start");
});
</script>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/1.headers (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/1.headers (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/1.headers 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+Content-Type: text/_javascript_
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/URLMismatchError.htm (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/URLMismatchError.htm 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/URLMismatchError.htm 2019-12-13 00:20:57 UTC (rev 253453)
@@ -6,6 +6,8 @@
<script src=""
<div id="log"></div>
<script>
+setup({ single_test: true });
+
var counter = 0
function maybeDone() {
if(counter) {
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/null.headers (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/null.headers (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/null.headers 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+Content-Type: text/_javascript_
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/undefined.headers (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/undefined.headers (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/undefined.headers 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+Content-Type: text/_javascript_
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/w3c-import.log (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/w3c-import.log 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/w3c-import.log 2019-12-13 00:20:57 UTC (rev 253453)
@@ -15,6 +15,7 @@
------------------------------------------------------------------------
List of files:
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/1
+/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/1.headers
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/URLMismatchError.htm
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/connect-event.html
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/connect-event.js
@@ -32,6 +33,7 @@
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/no-arguments-ctor.html
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/null
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/null-arguments.html
+/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/null.headers
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/number-arguments.html
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/port-onmessage.html
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/port-onmessage.js
@@ -42,6 +44,7 @@
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/shared-worker.js
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/undefined
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/undefined-arguments.html
+/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/undefined.headers
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/unexpected-global-properties.html
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/unexpected-global-properties.js
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/unresolvable-url.html
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/1.headers (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/1.headers (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/1.headers 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+Content-Type: text/_javascript_
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/null.headers (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/null.headers (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/null.headers 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+Content-Type: text/_javascript_
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/undefined.headers (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/undefined.headers (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/undefined.headers 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+Content-Type: text/_javascript_
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/w3c-import.log (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/w3c-import.log 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/w3c-import.log 2019-12-13 00:20:57 UTC (rev 253453)
@@ -15,6 +15,7 @@
------------------------------------------------------------------------
List of files:
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/1
+/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/1.headers
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/AbstractWorker.onerror.html
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/AbstractWorker.onerror.js
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/Blob-url.html
@@ -25,9 +26,11 @@
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/ctor-undefined.html
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/expected-self-properties.worker.js
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/null
+/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/null.headers
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/same-origin.html
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/terminate.html
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/terminate.js
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/undefined
+/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/undefined.headers
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/unexpected-self-properties.worker.js
/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/use-base-url.html
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/dedicated-worker-from-blob-url.window.js (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/dedicated-worker-from-blob-url.window.js 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/dedicated-worker-from-blob-url.window.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -1,6 +1,7 @@
function message_from_port(port) {
- return new Promise(resolve => {
+ return new Promise((resolve, reject) => {
port._onmessage_ = e => resolve(e.data);
+ port._onerror_ = e => reject(e);
});
}
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/general.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/general.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/general.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,34 @@
+// META: global=!default,worker
+
+// See
+// https://web-platform-tests.org/writing-tests/testharness.html#multi-global-tests
+// for how to specify in which global scopes to run this tests,
+// how to specify additional scripts needed, etc.
+
+// testharness.js is imported (via importScripts()) by generated glue code by
+// WPT server.
+// See AnyWorkerHandler in
+// https://github.com/web-platform-tests/wpt/blob/master/tools/serve/serve.py.
+
+// ============================================================================
+
+// Test body.
+// .any.js tests are always testharness.js-based.
+test(() => {
+ assert_equals(1, 1, "1 == 1");
+ },
+ "Test that should pass"
+);
+
+test(() => {
+ // This file is "general.any.js" but the worker top-level script is
+ // "general.any.worker.js", which is generated by the WPT server.
+ assert_equals(location.pathname, "/workers/examples/general.any.worker.js");
+ },
+ "Worker top-level script is a generated script."
+);
+
+// done() is NOT needed in .any.js tests, as it is called by generated
+// glue code by the WPT server.
+// See AnyWorkerHandler in
+// https://github.com/web-platform-tests/wpt/blob/master/tools/serve/serve.py.
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/general.any.worker-expected.txt (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/general.any.worker-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/general.any.worker-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,4 @@
+
+PASS Test that should pass
+PASS Worker top-level script is a generated script.
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/general.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/general.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/general.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/onconnect.any.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/onconnect.any.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/onconnect.any.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/onconnect.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/onconnect.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/onconnect.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,4 @@
+// META: global=!default,sharedworker
+const t = async_test("onconnect is called");
+_onconnect_ = t.step_func_done((event) => {
+});
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/onconnect.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/onconnect.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/onconnect.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,52 @@
+// META: global=!window,worker
+//
+// Tentative test for https://github.com/whatwg/html/issues/3255
+
+let test_cases = [
+ // Supported mimetypes:
+ ["text/_javascript_", true],
+ ["application/_javascript_", true],
+ ["text/ecmascript", true],
+
+ // Blocked mimetpyes:
+ ["image/png", false],
+ ["text/csv", false],
+ ["video/mpeg", false],
+
+ // Legacy mimetypes:
+ ["text/html", false],
+ ["text/plain", false],
+ ["application/xml", false],
+ ["application/octet-stream", false],
+
+ // Potato mimetypes:
+ ["text/potato", false],
+ ["potato/text", false],
+ ["aaa/aaa", false],
+ ["zzz/zzz", false],
+
+ // Parameterized mime types:
+ ["text/_javascript_; charset=utf-8", true],
+ ["text/_javascript_;charset=utf-8", true],
+ ["text/_javascript_;bla;bla", true],
+ ["text/csv; charset=utf-8", false],
+ ["text/csv;charset=utf-8", false],
+ ["text/csv;bla;bla", false],
+
+ // Funky capitalization:
+ ["Text/html", false],
+ ["text/Html", false],
+ ["TeXt/HtMl", false],
+ ["TEXT/HTML", false],
+];
+
+for (var test_case of test_cases) {
+ test(t => {
+ let import_url = "/workers/support/imported_script.py?mime=" + test_case[0];
+ if (test_case[1]) {
+ assert_equals(undefined, importScripts(import_url));
+ } else {
+ assert_throws("NetworkError", _ => { importScripts(import_url) })
+ }
+ }, "importScripts() requires scripty MIME types: " + test_case[0] + " is " + (test_case[1] ? "allowed" : "blocked") + ".");
+}
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime.any.worker-expected.txt (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime.any.worker-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime.any.worker-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,26 @@
+
+PASS importScripts() requires scripty MIME types: text/_javascript_ is allowed.
+PASS importScripts() requires scripty MIME types: application/_javascript_ is allowed.
+PASS importScripts() requires scripty MIME types: text/ecmascript is allowed.
+PASS importScripts() requires scripty MIME types: image/png is blocked.
+PASS importScripts() requires scripty MIME types: text/csv is blocked.
+PASS importScripts() requires scripty MIME types: video/mpeg is blocked.
+FAIL importScripts() requires scripty MIME types: text/html is blocked. assert_throws: function "_ => { importScripts(import_url) }" did not throw
+FAIL importScripts() requires scripty MIME types: text/plain is blocked. assert_throws: function "_ => { importScripts(import_url) }" did not throw
+FAIL importScripts() requires scripty MIME types: application/xml is blocked. assert_throws: function "_ => { importScripts(import_url) }" did not throw
+FAIL importScripts() requires scripty MIME types: application/octet-stream is blocked. assert_throws: function "_ => { importScripts(import_url) }" did not throw
+FAIL importScripts() requires scripty MIME types: text/potato is blocked. assert_throws: function "_ => { importScripts(import_url) }" did not throw
+FAIL importScripts() requires scripty MIME types: potato/text is blocked. assert_throws: function "_ => { importScripts(import_url) }" did not throw
+FAIL importScripts() requires scripty MIME types: aaa/aaa is blocked. assert_throws: function "_ => { importScripts(import_url) }" did not throw
+FAIL importScripts() requires scripty MIME types: zzz/zzz is blocked. assert_throws: function "_ => { importScripts(import_url) }" did not throw
+PASS importScripts() requires scripty MIME types: text/_javascript_; charset=utf-8 is allowed.
+PASS importScripts() requires scripty MIME types: text/_javascript_;charset=utf-8 is allowed.
+PASS importScripts() requires scripty MIME types: text/_javascript_;bla;bla is allowed.
+PASS importScripts() requires scripty MIME types: text/csv; charset=utf-8 is blocked.
+PASS importScripts() requires scripty MIME types: text/csv;charset=utf-8 is blocked.
+PASS importScripts() requires scripty MIME types: text/csv;bla;bla is blocked.
+FAIL importScripts() requires scripty MIME types: Text/html is blocked. assert_throws: function "_ => { importScripts(import_url) }" did not throw
+FAIL importScripts() requires scripty MIME types: text/Html is blocked. assert_throws: function "_ => { importScripts(import_url) }" did not throw
+FAIL importScripts() requires scripty MIME types: TeXt/HtMl is blocked. assert_throws: function "_ => { importScripts(import_url) }" did not throw
+FAIL importScripts() requires scripty MIME types: TEXT/HTML is blocked. assert_throws: function "_ => { importScripts(import_url) }" did not throw
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.html (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.html 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -4,6 +4,8 @@
<script src=""
<div id="log"></div>
<script>
+setup({ single_test: true });
+
var worker = new Worker('incoming-message.js');
worker._onmessage_ = function(e) {
assert_unreached("Got message");
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -4,6 +4,8 @@
<script src=""
<div id="log"></div>
<script>
+setup({ single_test: true });
+
var worker = new Worker('setInterval.js');
worker._onmessage_ = function(e) {
assert_unreached("Got message");
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.html (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.html 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -4,6 +4,8 @@
<script src=""
<div id="log"></div>
<script>
+setup({ single_test: true });
+
var worker = new Worker('setTimeout.js');
worker._onmessage_ = function(e) {
assert_unreached("Got message");
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/modules/resources/dynamic-import-remote-origin-referrer-checker-worker.sub.js (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/modules/resources/dynamic-import-remote-origin-referrer-checker-worker.sub.js 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/modules/resources/dynamic-import-remote-origin-referrer-checker-worker.sub.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -1,2 +1,3 @@
// Import a remote origin script.
-import('https://{{domains[www1]}}:{{ports[https][0]}}/workers/modules/resources/referrer-checker.py');
+import('https://{{domains[www1]}}:{{ports[https][0]}}/workers/modules/resources/referrer-checker.py')
+ .catch(error => postMessage(`Import failed: ${error}`));
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/modules/resources/dynamic-import-same-origin-referrer-checker-worker.js (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/modules/resources/dynamic-import-same-origin-referrer-checker-worker.js 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/modules/resources/dynamic-import-same-origin-referrer-checker-worker.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -1 +1,2 @@
-import('./referrer-checker.py');
+import('./referrer-checker.py')
+ .catch(error => postMessage(`Import failed: ${error}`));
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.any.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.any.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.any.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,83 @@
+// META: global=!default,sharedworker
+
+var expected = [
+ // https://html.spec.whatwg.org/
+ "ApplicationCache",
+ "WorkerGlobalScope",
+ "SharedWorkerGlobalScope",
+ "Worker",
+ "SharedWorker",
+ "MessagePort",
+ "MessageEvent",
+ "WorkerNavigator",
+ "MessageChannel",
+ "WorkerLocation",
+ "ImageData",
+ "ImageBitmap",
+ "CanvasGradient",
+ "CanvasPattern",
+ "CanvasPath",
+ "Path2D",
+ "PromiseRejectionEvent",
+ "EventSource",
+ "WebSocket",
+ "CloseEvent",
+ "BroadcastChannel",
+ // https://tc39.github.io/ecma262/
+ "ArrayBuffer",
+ "Int8Array",
+ "Uint8Array",
+ "Uint8ClampedArray",
+ "Int16Array",
+ "Uint16Array",
+ "Int32Array",
+ "Uint32Array",
+ "Float32Array",
+ "Float64Array",
+ "DataView",
+ // https://xhr.spec.whatwg.org/
+ "XMLHttpRequestEventTarget",
+ "XMLHttpRequestUpload",
+ "XMLHttpRequest",
+ "ProgressEvent",
+ "FormData",
+ // https://url.spec.whatwg.org/
+ "URL",
+ "URLSearchParams",
+ // https://w3c.github.io/FileAPI/
+ "File",
+ "Blob",
+ "FileList",
+ "FileReader",
+ "FileReaderSync",
+ // https://dom.spec.whatwg.org/
+ "EventTarget",
+ "ErrorEvent",
+ "Event",
+ "CustomEvent",
+ // http://heycam.github.io/webidl/
+ "DOMException",
+ // https://streams.spec.whatwg.org/
+ "ReadableStream",
+ "WritableStream",
+ "ByteLengthQueuingStrategy",
+ "CountQueuingStrategy",
+ // http://w3c.github.io/IndexedDB/
+ "IDBRequest",
+ "IDBOpenDBRequest",
+ "IDBVersionChangeEvent",
+ "IDBFactory",
+ "IDBDatabase",
+ "IDBObjectStore",
+ "IDBIndex",
+ "IDBKeyRange",
+ "IDBCursor",
+ "IDBCursorWithValue",
+ "IDBTransaction",
+];
+
+for (var i = 0; i < expected.length; ++i) {
+ test(function() {
+ assert_true(expected[i] in self);
+ }, "The " + expected[i] + " interface object should be exposed");
+}
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.html (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.html 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -1,19 +0,0 @@
-<!doctype html>
-<title>available interface objects in shared worker</title>
-<script src=""
-<script src=""
-<div id=log></div>
-<script>
-setup(function() {
- window.worker = new SharedWorker('003.js');
- worker.port._onmessage_ = function(e) {
- var result = e.data;
- for (var i = 0; i < result.length; ++i) {
- test(function() {
- assert_true(result[i][1]);
- }, "The " + result[i][0] + " interface object should be exposed");
- }
- done();
- }
-}, {explicit_done: true});
-</script>
\ No newline at end of file
Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.js (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.js 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -1,82 +0,0 @@
-_onconnect_ = function(e) {
- var expected = [
- // https://html.spec.whatwg.org/
- "ApplicationCache",
- "WorkerGlobalScope",
- "SharedWorkerGlobalScope",
- "Worker",
- "SharedWorker",
- "MessagePort",
- "MessageEvent",
- "WorkerNavigator",
- "MessageChannel",
- "WorkerLocation",
- "ImageData",
- "ImageBitmap",
- "CanvasGradient",
- "CanvasPattern",
- "CanvasPath",
- "Path2D",
- "PromiseRejectionEvent",
- "EventSource",
- "WebSocket",
- "CloseEvent",
- "BroadcastChannel",
- // https://tc39.github.io/ecma262/
- "ArrayBuffer",
- "Int8Array",
- "Uint8Array",
- "Uint8ClampedArray",
- "Int16Array",
- "Uint16Array",
- "Int32Array",
- "Uint32Array",
- "Float32Array",
- "Float64Array",
- "DataView",
- // https://xhr.spec.whatwg.org/
- "XMLHttpRequestEventTarget",
- "XMLHttpRequestUpload",
- "XMLHttpRequest",
- "ProgressEvent",
- "FormData",
- // https://url.spec.whatwg.org/
- "URL",
- "URLSearchParams",
- // https://w3c.github.io/FileAPI/
- "File",
- "Blob",
- "FileList",
- "FileReader",
- "FileReaderSync",
- // https://dom.spec.whatwg.org/
- "EventTarget",
- "ErrorEvent",
- "Event",
- "CustomEvent",
- // http://heycam.github.io/webidl/
- "DOMException",
- // https://streams.spec.whatwg.org/
- "ReadableStream",
- "WritableStream",
- "ByteLengthQueuingStrategy",
- "CountQueuingStrategy",
- // http://w3c.github.io/IndexedDB/
- "IDBRequest",
- "IDBOpenDBRequest",
- "IDBVersionChangeEvent",
- "IDBFactory",
- "IDBDatabase",
- "IDBObjectStore",
- "IDBIndex",
- "IDBKeyRange",
- "IDBCursor",
- "IDBCursorWithValue",
- "IDBTransaction",
- ];
- var result = [];
- for (var i = 0; i < expected.length; ++i) {
- result.push([expected[i], expected[i] in self]);
- }
- e.ports[0].postMessage(result);
-}
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.any.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.any.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.any.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.any.js (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.any.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.any.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1,46 @@
+// META: global=!default,sharedworker
+
+var unexpected = [
+ // https://html.spec.whatwg.org/
+ "DedicatedWorkerGlobalScope",
+ "AbstractView",
+ "AbstractWorker",
+ "Location",
+ "Navigator",
+ "DOMImplementation",
+ "Audio",
+ "HTMLCanvasElement",
+ "Path",
+ "TextMetrics",
+ "CanvasProxy",
+ "CanvasRenderingContext2D",
+ "DrawingStyle",
+ "PopStateEvent",
+ "HashChangeEvent",
+ "PageTransitionEvent",
+ // https://streams.spec.whatwg.org/
+ "ReadableStreamDefaultReader",
+ "ReadableStreamBYOBReader",
+ "ReadableStreamDefaultController",
+ "ReadableByteStreamController",
+ "WritableStreamDefaultWriter",
+ "WritableStreamDefaultController",
+ // http://w3c.github.io/IndexedDB/
+ "IDBEnvironment",
+ // https://www.w3.org/TR/2010/NOTE-webdatabase-20101118/
+ "Database",
+ // https://w3c.github.io/uievents/
+ "UIEvent",
+ "FocusEvent",
+ "MouseEvent",
+ "WheelEvent",
+ "InputEvent",
+ "KeyboardEvent",
+ "CompositionEvent",
+];
+
+for (var i = 0; i < unexpected.length; ++i) {
+ test(function() {
+ assert_false(unexpected[i] in self);
+ }, "The " + unexpected[i] + " interface object should not be exposed");
+}
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.any.worker.html (0 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.any.worker.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.any.worker.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.html (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.html 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -1,19 +0,0 @@
-<!doctype html>
-<title>unavailable interface objects in shared worker</title>
-<script src=""
-<script src=""
-<div id=log></div>
-<script>
-setup(function() {
- window.worker = new SharedWorker('004.js');
- worker.port._onmessage_ = function(e) {
- var result = e.data;
- for (var i = 0; i < result.length; ++i) {
- test(function() {
- assert_false(result[i][1]);
- }, "The " + result[i][0] + " interface object should not be exposed");
- }
- done();
- }
-}, {explicit_done: true});
-</script>
\ No newline at end of file
Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.js (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.js 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.js 2019-12-13 00:20:57 UTC (rev 253453)
@@ -1,45 +0,0 @@
-_onconnect_ = function(e) {
- var unexpected = [
- // https://html.spec.whatwg.org/
- "DedicatedWorkerGlobalScope",
- "AbstractView",
- "AbstractWorker",
- "Location",
- "Navigator",
- "DOMImplementation",
- "Audio",
- "HTMLCanvasElement",
- "Path",
- "TextMetrics",
- "CanvasProxy",
- "CanvasRenderingContext2D",
- "DrawingStyle",
- "PopStateEvent",
- "HashChangeEvent",
- "PageTransitionEvent",
- // https://streams.spec.whatwg.org/
- "ReadableStreamDefaultReader",
- "ReadableStreamBYOBReader",
- "ReadableStreamDefaultController",
- "ReadableByteStreamController",
- "WritableStreamDefaultWriter",
- "WritableStreamDefaultController",
- // http://w3c.github.io/IndexedDB/
- "IDBEnvironment",
- // https://www.w3.org/TR/2010/NOTE-webdatabase-20101118/
- "Database",
- // https://w3c.github.io/uievents/
- "UIEvent",
- "FocusEvent",
- "MouseEvent",
- "WheelEvent",
- "InputEvent",
- "KeyboardEvent",
- "CompositionEvent",
- ];
- var result = [];
- for (var i = 0; i < unexpected.length; ++i) {
- result.push([unexpected[i], unexpected[i] in self]);
- }
- e.ports[0].postMessage(result);
-}
\ No newline at end of file
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/w3c-import.log (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/w3c-import.log 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/w3c-import.log 2019-12-13 00:20:57 UTC (rev 253453)
@@ -16,7 +16,5 @@
List of files:
/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/001.worker.js
/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/002.worker.js
-/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.html
-/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.js
-/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.html
-/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.js
+/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.any.js
+/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.any.js
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004-expected.txt (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004-expected.txt 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -1,4 +1,4 @@
-CONSOLE MESSAGE: line 11: ReferenceError: Can't find variable: SharedWorker
+CONSOLE MESSAGE: line 13: ReferenceError: Can't find variable: SharedWorker
CONSOLE MESSAGE: line 5: ReferenceError: Can't find variable: SharedWorker
CONSOLE MESSAGE: line 5: ReferenceError: Can't find variable: SharedWorker
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004.html (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004.html 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -5,6 +5,8 @@
<script src=""
<div id=log></div>
<script>
+setup({ single_test: true });
+
var i = 0;
var load_count = 0;
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/navigation/001.html (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/navigation/001.html 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/navigation/001.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -8,6 +8,7 @@
<script src=""
<div id=log></div>
<script>
+setup({ single_test: true });
var date;
var newDate;
</script>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/shared-worker-name-via-options-expected.txt (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/shared-worker-name-via-options-expected.txt 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/shared-worker-name-via-options-expected.txt 2019-12-13 00:20:57 UTC (rev 253453)
@@ -1,4 +1,4 @@
-CONSOLE MESSAGE: line 16: ReferenceError: Can't find variable: SharedWorker
+CONSOLE MESSAGE: line 17: ReferenceError: Can't find variable: SharedWorker
FAIL Test the name property of shared workers mixing constructor options and constructor strings ReferenceError: Can't find variable: SharedWorker
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/workers/shared-worker-name-via-options.html (253452 => 253453)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/workers/shared-worker-name-via-options.html 2019-12-13 00:10:07 UTC (rev 253452)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/workers/shared-worker-name-via-options.html 2019-12-13 00:20:57 UTC (rev 253453)
@@ -10,6 +10,7 @@
<script>
"use strict";
+setup({ single_test: true });
const name = "my name";