From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../EventTarget.worker.js | 23 +++++++++ .../DedicatedWorkerGlobalScope/onmessage.worker.js | 40 +++++++++++++++ .../postMessage/event-ports-dedicated.html | 25 ++++++++++ .../imagedata-cloned-canvas-in-array.html | 39 +++++++++++++++ .../postMessage/message-event.html | 23 +++++++++ .../postMessage/message-event.js | 1 + .../postMessage/return-value.worker.js | 8 +++ .../postMessage/second-argument-null-in-array.html | 26 ++++++++++ .../postMessage/second-argument-null.html | 25 ++++++++++ .../postMessage/second-argument-undefined.html | 25 ++++++++++ .../postMessage/setting-postMessage.html | 24 +++++++++ .../postMessage/structured-clone-imagedata.html | 30 +++++++++++ .../postMessage/structured-clone-message.html | 58 ++++++++++++++++++++++ .../SharedWorkerGlobalScope/name/getting.html | 34 +++++++++++++ .../SharedWorkerGlobalScope/name/setting.html | 25 ++++++++++ .../SharedWorkerGlobalScope/onconnect.html | 39 +++++++++++++++ .../WorkerGlobalScope/close/incoming-message.html | 29 +++++++++++ .../WorkerGlobalScope/close/sending-messages.html | 27 ++++++++++ .../WorkerGlobalScope/close/setInterval.html | 34 +++++++++++++ .../WorkerGlobalScope/close/setTimeout.html | 28 +++++++++++ .../WorkerGlobalScope/location/helper-redirect.py | 3 ++ .../WorkerGlobalScope/location/members.html | 31 ++++++++++++ .../location/post-location-members.js | 8 +++ .../WorkerGlobalScope/location/redirect.html | 28 +++++++++++ .../location/returns-same-object.html | 21 ++++++++ .../location/setting-members.html | 43 ++++++++++++++++ .../location/worker-separate-file.html | 28 +++++++++++ .../onerror/exception-in-onerror.html | 32 ++++++++++++ .../WorkerGlobalScope/onerror/handled.html | 36 ++++++++++++++ .../WorkerGlobalScope/onerror/not-handled.html | 32 ++++++++++++ .../onerror/propagate-to-window-onerror.html | 31 ++++++++++++ .../workers/interfaces/WorkerGlobalScope/self.html | 39 +++++++++++++++ .../interfaces/WorkerUtils/WindowTimers/001.html | 23 +++++++++ .../interfaces/WorkerUtils/WindowTimers/002.html | 21 ++++++++ .../interfaces/WorkerUtils/WindowTimers/003.html | 22 ++++++++ .../interfaces/WorkerUtils/WindowTimers/004.html | 23 +++++++++ .../WorkerUtils/importScripts/001.worker.js | 7 +++ .../WorkerUtils/importScripts/002.worker.js | 11 ++++ .../interfaces/WorkerUtils/importScripts/003.html | 28 +++++++++++ .../interfaces/WorkerUtils/importScripts/004.html | 34 +++++++++++++ .../interfaces/WorkerUtils/importScripts/005.html | 30 +++++++++++ .../interfaces/WorkerUtils/importScripts/006.html | 33 ++++++++++++ .../interfaces/WorkerUtils/importScripts/007.html | 25 ++++++++++ .../interfaces/WorkerUtils/importScripts/008.html | 23 +++++++++ .../interfaces/WorkerUtils/importScripts/009.html | 29 +++++++++++ .../interfaces/WorkerUtils/importScripts/010.html | 34 +++++++++++++ .../interfaces/WorkerUtils/importScripts/011.html | 34 +++++++++++++ .../interfaces/WorkerUtils/importScripts/012.html | 34 +++++++++++++ .../workers/interfaces/WorkerUtils/importScripts/1 | 1 + .../interfaces/WorkerUtils/importScripts/null | 1 + .../interfaces/WorkerUtils/importScripts/undefined | 1 + .../interfaces/WorkerUtils/navigator/002.html | 21 ++++++++ .../interfaces/WorkerUtils/navigator/003.html | 21 ++++++++ .../interfaces/WorkerUtils/navigator/004.html | 21 ++++++++ .../interfaces/WorkerUtils/navigator/005.html | 21 ++++++++ .../interfaces/WorkerUtils/navigator/006.html | 21 ++++++++ .../interfaces/WorkerUtils/navigator/007.html | 30 +++++++++++ .../interfaces/WorkerUtils/navigator/language.html | 21 ++++++++ .../WorkerUtils/navigator/window-only.worker.js | 22 ++++++++ 59 files changed, 1487 insertions(+) create mode 100644 testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/EventTarget.worker.js create mode 100644 testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/onmessage.worker.js create mode 100644 testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/event-ports-dedicated.html create mode 100644 testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/imagedata-cloned-canvas-in-array.html create mode 100644 testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/message-event.html create mode 100644 testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/message-event.js create mode 100644 testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/return-value.worker.js create mode 100644 testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null-in-array.html create mode 100644 testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null.html create mode 100644 testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-undefined.html create mode 100644 testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/setting-postMessage.html create mode 100644 testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-imagedata.html create mode 100644 testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-message.html create mode 100644 testing/web-platform/tests/workers/interfaces/SharedWorkerGlobalScope/name/getting.html create mode 100644 testing/web-platform/tests/workers/interfaces/SharedWorkerGlobalScope/name/setting.html create mode 100644 testing/web-platform/tests/workers/interfaces/SharedWorkerGlobalScope/onconnect.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/sending-messages.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/helper-redirect.py create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/members.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/post-location-members.js create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/redirect.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/returns-same-object.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/setting-members.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/worker-separate-file.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/exception-in-onerror.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/handled.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/not-handled.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/propagate-to-window-onerror.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/self.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/001.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/002.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/003.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/004.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/001.worker.js create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/002.worker.js create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/003.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/004.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/005.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/006.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/007.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/008.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/009.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/010.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/011.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/012.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/1 create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/null create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/undefined create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/002.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/003.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/004.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/005.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/006.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/007.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/language.html create mode 100644 testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/window-only.worker.js (limited to 'testing/web-platform/tests/workers/interfaces') diff --git a/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/EventTarget.worker.js b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/EventTarget.worker.js new file mode 100644 index 000000000..954c46c07 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/EventTarget.worker.js @@ -0,0 +1,23 @@ +importScripts("/resources/testharness.js"); + +test(function(t) { + var i = 0; + addEventListener("message", function listener(evt) { + t.step(function() { + ++i; + removeEventListener("message", listener, true); + }); + }, true); + self.dispatchEvent(new Event("message")); + self.dispatchEvent(new Event("message")); + assert_equals(i, 1); +}, "removeEventListener"); + +test(function() { + addEventListener("message", this.step_func(function(evt) { + assert_equals(evt.target, self); + }), true); + self.dispatchEvent(new Event("message")); +}, "target"); + +done(); diff --git a/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/onmessage.worker.js b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/onmessage.worker.js new file mode 100644 index 000000000..6f285caac --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/onmessage.worker.js @@ -0,0 +1,40 @@ +importScripts("/resources/testharness.js"); + +test(function() { + self.onmessage = 1; + assert_equals(self.onmessage, null, + "attribute should return null after being set to a primitive"); +}, "Setting onmessage to 1"); + +test(function() { + var object = { + handleEvent: this.unreached_func() + }; + self.onmessage = object; + assert_equals(self.onmessage, object, + "attribute should return the object it was set to."); + + self.dispatchEvent(new Event("message")); +}, "Setting onmessage to an object"); + +test(function() { + var triggered = false; + var f = function(e) { triggered = true; }; + self.onmessage = f; + assert_equals(self.onmessage, f, + "attribute should return the function it was set to."); + + self.dispatchEvent(new Event("message")); + assert_true(triggered, "event handler should have been triggered"); +}, "Setting onmessage to a function"); + + +test(function() { + assert_not_equals(self.onmessage, null, + "attribute should not return null after being set to a function"); + self.onmessage = 1; + assert_equals(self.onmessage, null, + "attribute should return null after being set to a primitive"); +}, "Setting onmessage to 1 (again)"); + +done(); diff --git a/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/event-ports-dedicated.html b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/event-ports-dedicated.html new file mode 100644 index 000000000..7ae4b0704 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/event-ports-dedicated.html @@ -0,0 +1,25 @@ + + +e.ports in dedicated worker + + +
+ + + diff --git a/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/imagedata-cloned-canvas-in-array.html b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/imagedata-cloned-canvas-in-array.html new file mode 100644 index 000000000..204130154 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/imagedata-cloned-canvas-in-array.html @@ -0,0 +1,39 @@ + + +posting an imagedata (from a cloned canvas) in an array + + +
+ + \ No newline at end of file diff --git a/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/message-event.html b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/message-event.html new file mode 100644 index 000000000..91ec63268 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/message-event.html @@ -0,0 +1,23 @@ + + +'message' event properties + + + +
+ diff --git a/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/message-event.js b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/message-event.js new file mode 100644 index 000000000..54a250005 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/message-event.js @@ -0,0 +1 @@ +postMessage("test"); diff --git a/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/return-value.worker.js b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/return-value.worker.js new file mode 100644 index 000000000..521251699 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/return-value.worker.js @@ -0,0 +1,8 @@ +importScripts("/resources/testharness.js"); + +test(function() { + var rv = postMessage(1); + assert_equals(rv, undefined); +}, "return value of postMessage"); + +done(); diff --git a/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null-in-array.html b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null-in-array.html new file mode 100644 index 000000000..df4c9f83e --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null-in-array.html @@ -0,0 +1,26 @@ + + +Using [null] in postMessage's second argument + + +
+ + + diff --git a/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null.html b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null.html new file mode 100644 index 000000000..e81a56bad --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null.html @@ -0,0 +1,25 @@ + + +Using null in postMessage's second argument + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-undefined.html b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-undefined.html new file mode 100644 index 000000000..7d01eba7a --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-undefined.html @@ -0,0 +1,25 @@ + + +Using undefined in postMessage's second argument + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/setting-postMessage.html b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/setting-postMessage.html new file mode 100644 index 000000000..d1a3f0f5c --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/setting-postMessage.html @@ -0,0 +1,24 @@ + + +setting postMessage + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-imagedata.html b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-imagedata.html new file mode 100644 index 000000000..c0ded6a28 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-imagedata.html @@ -0,0 +1,30 @@ + + +structured clone of ImageData + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-message.html b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-message.html new file mode 100644 index 000000000..ba357421f --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-message.html @@ -0,0 +1,58 @@ + + +structured clone of message + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/SharedWorkerGlobalScope/name/getting.html b/testing/web-platform/tests/workers/interfaces/SharedWorkerGlobalScope/name/getting.html new file mode 100644 index 000000000..bfe81a8a9 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/SharedWorkerGlobalScope/name/getting.html @@ -0,0 +1,34 @@ + + +getting name + + +
+ + + + diff --git a/testing/web-platform/tests/workers/interfaces/SharedWorkerGlobalScope/name/setting.html b/testing/web-platform/tests/workers/interfaces/SharedWorkerGlobalScope/name/setting.html new file mode 100644 index 000000000..39cdf7b67 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/SharedWorkerGlobalScope/name/setting.html @@ -0,0 +1,25 @@ + + +setting name + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/SharedWorkerGlobalScope/onconnect.html b/testing/web-platform/tests/workers/interfaces/SharedWorkerGlobalScope/onconnect.html new file mode 100644 index 000000000..2ad155bf7 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/SharedWorkerGlobalScope/onconnect.html @@ -0,0 +1,39 @@ + + +onconnect + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.html new file mode 100644 index 000000000..d65695632 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.html @@ -0,0 +1,29 @@ + + +close() and incoming message + + +
+ + + + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/sending-messages.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/sending-messages.html new file mode 100644 index 000000000..983c422cc --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/sending-messages.html @@ -0,0 +1,27 @@ + + +close() and sending messages + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html new file mode 100644 index 000000000..1d7d178d2 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html @@ -0,0 +1,34 @@ + + +close() and setInterval + + +
+ + + + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.html new file mode 100644 index 000000000..c2fa10dfc --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.html @@ -0,0 +1,28 @@ + + +close() and setTimeout + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/helper-redirect.py b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/helper-redirect.py new file mode 100644 index 000000000..eb1599a57 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/helper-redirect.py @@ -0,0 +1,3 @@ +def main(request, response): + response.status = 302 + response.headers.append("Location", "post-location-members.js?a") diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/members.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/members.html new file mode 100644 index 000000000..31ddf37a1 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/members.html @@ -0,0 +1,31 @@ + + +members of WorkerLocation + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/post-location-members.js b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/post-location-members.js new file mode 100644 index 000000000..e850b76b6 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/post-location-members.js @@ -0,0 +1,8 @@ +postMessage([location.href, + location.protocol, + location.host, + location.hostname, + location.port, + location.pathname, + location.search, + location.hash]); \ No newline at end of file diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/redirect.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/redirect.html new file mode 100644 index 000000000..2fd16a4c1 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/redirect.html @@ -0,0 +1,28 @@ + + +location with a worker in separate file that redirects + + +
+ + + + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/returns-same-object.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/returns-same-object.html new file mode 100644 index 000000000..40559c166 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/returns-same-object.html @@ -0,0 +1,21 @@ + + +location === location + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/setting-members.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/setting-members.html new file mode 100644 index 000000000..d2f470ffc --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/setting-members.html @@ -0,0 +1,43 @@ + + +setting members of WorkerLocation + + +
+ + + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/worker-separate-file.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/worker-separate-file.html new file mode 100644 index 000000000..ac8e64dcc --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/location/worker-separate-file.html @@ -0,0 +1,28 @@ + + +location with a worker in separate file + + +
+ + + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/exception-in-onerror.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/exception-in-onerror.html new file mode 100644 index 000000000..4b5af71d5 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/exception-in-onerror.html @@ -0,0 +1,32 @@ + + +onerror, "not handled" with an error in the onerror function + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/handled.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/handled.html new file mode 100644 index 000000000..56fee8e06 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/handled.html @@ -0,0 +1,36 @@ + + +onerror, "handled" + + +
+ + \ No newline at end of file diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/not-handled.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/not-handled.html new file mode 100644 index 000000000..f6107ada4 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/not-handled.html @@ -0,0 +1,32 @@ + + +onerror, "not handled" + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/propagate-to-window-onerror.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/propagate-to-window-onerror.html new file mode 100644 index 000000000..b6a61e235 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/onerror/propagate-to-window-onerror.html @@ -0,0 +1,31 @@ + + +onerror, "not handled" with only window.onerror defined + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/self.html b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/self.html new file mode 100644 index 000000000..39c2c36c0 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/self.html @@ -0,0 +1,39 @@ + + +self + + +
+ + \ No newline at end of file diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/001.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/001.html new file mode 100644 index 000000000..a80897518 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/001.html @@ -0,0 +1,23 @@ + + +setTimeout + + +
+ + + + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/002.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/002.html new file mode 100644 index 000000000..06685a905 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/002.html @@ -0,0 +1,21 @@ + + +clearTimeout + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/003.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/003.html new file mode 100644 index 000000000..942f139fa --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/003.html @@ -0,0 +1,22 @@ + + +setInterval + + +
+ + + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/004.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/004.html new file mode 100644 index 000000000..5548eec4a --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/WindowTimers/004.html @@ -0,0 +1,23 @@ + + +clearInterval + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/001.worker.js b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/001.worker.js new file mode 100644 index 000000000..aa86c8ef1 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/001.worker.js @@ -0,0 +1,7 @@ +importScripts("/resources/testharness.js"); + +test(function() { + importScripts(); +}); + +done(); diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/002.worker.js b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/002.worker.js new file mode 100644 index 000000000..2cecbcb53 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/002.worker.js @@ -0,0 +1,11 @@ +importScripts("/resources/testharness.js"); + +test(function() { + var ran = false; + assert_throws("SyntaxError", function() { + importScripts('data:text/javascript,ran=true','http://foo bar'); + }); + assert_false(ran, 'first argument to importScripts ran'); +}); + +done(); diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/003.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/003.html new file mode 100644 index 000000000..7ff30ae2a --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/003.html @@ -0,0 +1,28 @@ + + +importScripts running scripts + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/004.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/004.html new file mode 100644 index 000000000..2d39d3ce7 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/004.html @@ -0,0 +1,34 @@ + + +importScripts broken script + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/005.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/005.html new file mode 100644 index 000000000..f8abe14c2 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/005.html @@ -0,0 +1,30 @@ + + +importScripts separate scripts + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/006.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/006.html new file mode 100644 index 000000000..06aea9696 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/006.html @@ -0,0 +1,33 @@ + + +importScripts uncaught exception + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/007.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/007.html new file mode 100644 index 000000000..128fb1b64 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/007.html @@ -0,0 +1,25 @@ + + +postMessage in importScripts + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/008.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/008.html new file mode 100644 index 000000000..07b800ebb --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/008.html @@ -0,0 +1,23 @@ + + +variables and functions crossing importScripts boundary + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/009.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/009.html new file mode 100644 index 000000000..95d3839dc --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/009.html @@ -0,0 +1,29 @@ + + +variables and functions crossing importScripts boundary, take 2 + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/010.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/010.html new file mode 100644 index 000000000..9c76e7d4d --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/010.html @@ -0,0 +1,34 @@ + + +importScripts(undefined) + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/011.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/011.html new file mode 100644 index 000000000..46499318f --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/011.html @@ -0,0 +1,34 @@ + + +importScripts(null) + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/012.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/012.html new file mode 100644 index 000000000..f7622bdc9 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/012.html @@ -0,0 +1,34 @@ + + +importScripts(1) + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/1 b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/1 new file mode 100644 index 000000000..18cea4ff0 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/1 @@ -0,0 +1 @@ +var got = '1'; \ No newline at end of file diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/null b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/null new file mode 100644 index 000000000..8e54b66c5 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/null @@ -0,0 +1 @@ +var got = 'null'; \ No newline at end of file diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/undefined b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/undefined new file mode 100644 index 000000000..f99ba4be7 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/undefined @@ -0,0 +1 @@ +var got = 'undefined'; \ No newline at end of file diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/002.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/002.html new file mode 100644 index 000000000..d3aa2ec65 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/002.html @@ -0,0 +1,21 @@ + + +navigator.appName + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/003.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/003.html new file mode 100644 index 000000000..a2e5c9487 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/003.html @@ -0,0 +1,21 @@ + + +navigator.appVersion + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/004.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/004.html new file mode 100644 index 000000000..2231c4ab8 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/004.html @@ -0,0 +1,21 @@ + + +navigator.platform + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/005.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/005.html new file mode 100644 index 000000000..b3d99588f --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/005.html @@ -0,0 +1,21 @@ + + +navigator.userAgent + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/006.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/006.html new file mode 100644 index 000000000..c027d630d --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/006.html @@ -0,0 +1,21 @@ + + +navigator.onLine + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/007.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/007.html new file mode 100644 index 000000000..a6afc5637 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/007.html @@ -0,0 +1,30 @@ + + +readonlyness of members of Navigator + + +
+ + + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/language.html b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/language.html new file mode 100644 index 000000000..f1aa446cb --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/language.html @@ -0,0 +1,21 @@ + + +navigator.language + + +
+ + diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/window-only.worker.js b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/window-only.worker.js new file mode 100644 index 000000000..7095281ec --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/navigator/window-only.worker.js @@ -0,0 +1,22 @@ +importScripts("/resources/testharness.js"); + +var properties = [ + "appCodeName", + "product", + "productSub", + "vendor", + "vendorSub", + + // Only exist in Window scopes if navigator compatibility mode is Gecko; + // never exist in workers. + "taintEnabled", + "oscpu", +]; + +properties.forEach(function(property) { + test(function() { + assert_false(property in navigator); + }, "NavigatorID properties exposed only for Window: " + property); +}); + +done(); -- cgit v1.2.3