Changeset 249719 in webkit
- Timestamp:
- Sep 10, 2019 9:42:27 AM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 251 added
- 14 deleted
- 143 edited
- 23 copied
- 5 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r249718 r249719 1 2019-09-10 Chris Dumez <cdumez@apple.com> 2 3 Re-sync workers web platform tests from upstream 4 https://bugs.webkit.org/show_bug.cgi?id=201629 5 6 Reviewed by Alex Christensen. 7 8 * TestExpectations: 9 * tests-options.json: 10 1 11 2019-09-10 Youenn Fablet <youenn@apple.com> 2 12 -
trunk/LayoutTests/TestExpectations
r249716 r249719 299 299 imported/w3c/web-platform-tests/workers/semantics/multiple-workers/005.html [ Skip ] 300 300 imported/w3c/web-platform-tests/workers/Worker_cross_origin_security_err.htm [ Skip ] 301 imported/w3c/web-platform-tests/workers/SharedWorker-detach-frame-in-error-event.html [ Skip ] 302 imported/w3c/web-platform-tests/workers/modules/dedicated-worker-import-referrer.html [ Skip ] 303 imported/w3c/web-platform-tests/workers/modules/dedicated-worker-options-credentials.html [ Skip ] 301 304 302 305 imported/w3c/web-platform-tests/workers/constructors/SharedWorker [ Skip ] -
trunk/LayoutTests/imported/w3c/ChangeLog
r249718 r249719 1 2019-09-10 Chris Dumez <cdumez@apple.com> 2 3 Re-sync workers web platform tests from upstream 4 https://bugs.webkit.org/show_bug.cgi?id=201629 5 6 Reviewed by Alex Christensen. 7 8 Re-sync workers web platform tests from upstream 603a271948a7162. 9 10 * web-platform-tests/workers/META.yml: Added. 11 * web-platform-tests/workers/OWNERS: Removed. 12 * web-platform-tests/workers/README.md: 13 * web-platform-tests/workers/SharedWorker-constructor-expected.txt: Added. 14 * web-platform-tests/workers/SharedWorker-constructor.html: Added. 15 * web-platform-tests/workers/SharedWorker-detach-frame-in-error-event-expected.txt: Added. 16 * web-platform-tests/workers/SharedWorker-detach-frame-in-error-event.html: Added. 17 * web-platform-tests/workers/SharedWorker-exception-expected.txt: Added. 18 * web-platform-tests/workers/SharedWorker-exception-propagation-expected.txt: Added. 19 * web-platform-tests/workers/SharedWorker-exception-propagation.html: Added. 20 * web-platform-tests/workers/SharedWorker-exception.html: Added. 21 * web-platform-tests/workers/SharedWorker-script-error-expected.txt: Added. 22 * web-platform-tests/workers/SharedWorker-script-error.html: Added. 23 * web-platform-tests/workers/SharedWorker-simple-expected.txt: Added. 24 * web-platform-tests/workers/SharedWorker-simple.html: Added. 25 * web-platform-tests/workers/SharedWorkerPerformanceNow-expected.txt: Added. 26 * web-platform-tests/workers/SharedWorkerPerformanceNow.html: Added. 27 * web-platform-tests/workers/SharedWorker_dataUrl-expected.txt: Added. 28 * web-platform-tests/workers/SharedWorker_dataUrl.html: Added. 29 * web-platform-tests/workers/Worker-call.worker-expected.txt: Added. 30 * web-platform-tests/workers/Worker-call.worker.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.html. 31 * web-platform-tests/workers/Worker-call.worker.js: Added. 32 (test): 33 * web-platform-tests/workers/Worker-messageport-expected.txt: Added. 34 * web-platform-tests/workers/Worker-messageport.html: Added. 35 * web-platform-tests/workers/Worker-multi-port-expected.txt: Added. 36 * web-platform-tests/workers/Worker-multi-port.html: Added. 37 * web-platform-tests/workers/Worker-nested-importScripts-error-expected.txt: Added. 38 * web-platform-tests/workers/Worker-nested-importScripts-error.html: Added. 39 * web-platform-tests/workers/Worker-simultaneous-errors-expected.txt: Added. 40 * web-platform-tests/workers/Worker-simultaneous-errors.html: Added. 41 * web-platform-tests/workers/Worker-structure-message-expected.txt: Added. 42 * web-platform-tests/workers/Worker-structure-message.html: Added. 43 * web-platform-tests/workers/Worker-terminate-forever-expected.txt: Added. 44 * web-platform-tests/workers/Worker-terminate-forever.html: Added. 45 * web-platform-tests/workers/Worker-termination-with-port-messages-expected.txt: Added. 46 * web-platform-tests/workers/Worker-termination-with-port-messages.html: Added. 47 * web-platform-tests/workers/Worker-timeout-cancel-order-expected.txt: Added. 48 * web-platform-tests/workers/Worker-timeout-cancel-order.html: Added. 49 * web-platform-tests/workers/Worker-timeout-decreasing-order-expected.txt: Added. 50 * web-platform-tests/workers/Worker-timeout-decreasing-order.html: Added. 51 * web-platform-tests/workers/Worker-timeout-increasing-order-expected.txt: Added. 52 * web-platform-tests/workers/Worker-timeout-increasing-order.html: Added. 53 * web-platform-tests/workers/WorkerGlobalScope-close-expected.txt: Added. 54 * web-platform-tests/workers/WorkerGlobalScope-close.html: Added. 55 * web-platform-tests/workers/WorkerGlobalScope_close-expected.txt: Removed. 56 * web-platform-tests/workers/WorkerGlobalScope_close.htm: Removed. 57 * web-platform-tests/workers/WorkerGlobalScope_requestAnimationFrame.tentative.worker-expected.txt: Added. 58 * web-platform-tests/workers/WorkerGlobalScope_requestAnimationFrame.tentative.worker.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.html. 59 * web-platform-tests/workers/WorkerGlobalScope_requestAnimationFrame.tentative.worker.js: Added. 60 * web-platform-tests/workers/WorkerLocation-origin.sub.window.js: Removed. 61 * web-platform-tests/workers/WorkerPerformanceNow-expected.txt: Added. 62 * web-platform-tests/workers/WorkerPerformanceNow.html: Added. 63 * web-platform-tests/workers/Worker_cross_origin_security_err.htm: 64 * web-platform-tests/workers/baseurl/alpha/import-in-moduleworker-expected.txt: Added. 65 * web-platform-tests/workers/baseurl/alpha/import-in-moduleworker.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/importScripts.html. 66 * web-platform-tests/workers/baseurl/alpha/importScripts-in-sharedworker-expected.txt: Added. 67 * web-platform-tests/workers/baseurl/alpha/importScripts-in-sharedworker.html: Added. 68 * web-platform-tests/workers/baseurl/alpha/importScripts-in-worker-expected.txt: Added. 69 * web-platform-tests/workers/baseurl/alpha/importScripts-in-worker.html: Added. 70 * web-platform-tests/workers/baseurl/alpha/sharedworker-in-worker-expected.txt: Added. 71 * web-platform-tests/workers/baseurl/alpha/sharedworker-in-worker.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/sharedworker.html. 72 * web-platform-tests/workers/baseurl/alpha/w3c-import.log: 73 * web-platform-tests/workers/baseurl/alpha/worker-in-worker-expected.txt: Added. 74 * web-platform-tests/workers/baseurl/alpha/worker-in-worker.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/worker.html. 75 * web-platform-tests/workers/baseurl/alpha/xhr-in-moduleworker-expected.txt: Added. 76 * web-platform-tests/workers/baseurl/alpha/xhr-in-moduleworker.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/xhr.html. 77 * web-platform-tests/workers/baseurl/alpha/xhr-in-sharedworker-expected.txt: Added. 78 * web-platform-tests/workers/baseurl/alpha/xhr-in-sharedworker.html: Added. 79 * web-platform-tests/workers/baseurl/alpha/xhr-in-worker-expected.txt: Added. 80 * web-platform-tests/workers/baseurl/alpha/xhr-in-worker.html: Added. 81 * web-platform-tests/workers/baseurl/beta/import.py: Added. 82 (main): 83 * web-platform-tests/workers/baseurl/beta/script.js: 84 * web-platform-tests/workers/baseurl/beta/w3c-import.log: 85 * web-platform-tests/workers/baseurl/beta/xhr-worker.py: Added. 86 (main): 87 * web-platform-tests/workers/baseurl/gamma/import.js: Added. 88 * web-platform-tests/workers/baseurl/gamma/importScripts.js: 89 (test): 90 * web-platform-tests/workers/baseurl/gamma/script-module.js: Added. 91 * web-platform-tests/workers/baseurl/gamma/script.js: 92 * web-platform-tests/workers/baseurl/gamma/w3c-import.log: 93 * web-platform-tests/workers/baseurl/gamma/xhr-worker.js: Added. 94 * web-platform-tests/workers/constructors/SharedWorker/connect-event.html: 95 * web-platform-tests/workers/constructors/SharedWorker/connect-event.js: Added. 96 (onconnect): 97 * web-platform-tests/workers/constructors/SharedWorker/dummy-name.html: 98 * web-platform-tests/workers/constructors/SharedWorker/dummy-shared-worker.html: 99 * web-platform-tests/workers/constructors/SharedWorker/dummy-shared-worker.js: Added. 100 * web-platform-tests/workers/constructors/SharedWorker/empty-name.html: 101 * web-platform-tests/workers/constructors/SharedWorker/empty.js: Added. 102 * web-platform-tests/workers/constructors/SharedWorker/global-members.html: 103 * web-platform-tests/workers/constructors/SharedWorker/global-members.js: Added. 104 (onconnect): 105 * web-platform-tests/workers/constructors/SharedWorker/interface-objects.html: 106 * web-platform-tests/workers/constructors/SharedWorker/interface-objects.js: Added. 107 (handleCall): 108 (onconnect): 109 * web-platform-tests/workers/constructors/SharedWorker/name.html: 110 * web-platform-tests/workers/constructors/SharedWorker/name.js: Added. 111 (onconnect): 112 * web-platform-tests/workers/constructors/SharedWorker/port-onmessage.html: 113 * web-platform-tests/workers/constructors/SharedWorker/port-onmessage.js: Added. 114 (onconnect): 115 * web-platform-tests/workers/constructors/SharedWorker/port-properties.html: 116 * web-platform-tests/workers/constructors/SharedWorker/port-readonly.html: 117 * web-platform-tests/workers/constructors/SharedWorker/same-origin.html: 118 * web-platform-tests/workers/constructors/SharedWorker/unexpected-global-properties.html: 119 * web-platform-tests/workers/constructors/SharedWorker/unexpected-global-properties.js: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/unexpected-global-properties.html. 120 (onconnect): 121 * web-platform-tests/workers/constructors/SharedWorker/w3c-import.log: 122 * web-platform-tests/workers/constructors/Worker/AbstractWorker.onerror-expected.txt: 123 * web-platform-tests/workers/constructors/Worker/AbstractWorker.onerror.html: 124 * web-platform-tests/workers/constructors/Worker/AbstractWorker.onerror.js: Added. 125 * web-platform-tests/workers/constructors/Worker/Worker-constructor-expected.txt: Added. 126 * web-platform-tests/workers/constructors/Worker/Worker-constructor.html: Added. 127 * web-platform-tests/workers/constructors/Worker/no-arguments-ctor-expected.txt: Removed. 128 * web-platform-tests/workers/constructors/Worker/no-arguments-ctor.html: Removed. 129 * web-platform-tests/workers/constructors/Worker/resolve-empty-string-expected.txt: Removed. 130 * web-platform-tests/workers/constructors/Worker/resolve-empty-string.html: Removed. 131 * web-platform-tests/workers/constructors/Worker/same-origin.html: 132 * web-platform-tests/workers/constructors/Worker/sample_worker/w3c-import.log: 133 * web-platform-tests/workers/constructors/Worker/terminate.html: 134 * web-platform-tests/workers/constructors/Worker/terminate.js: Added. 135 (f): 136 * web-platform-tests/workers/constructors/Worker/unresolvable-url-expected.txt: Removed. 137 * web-platform-tests/workers/constructors/Worker/unresolvable-url.html: Removed. 138 * web-platform-tests/workers/constructors/Worker/w3c-import.log: 139 * web-platform-tests/workers/dedicated-worker-from-blob-url.window-expected.txt: Added. 140 * web-platform-tests/workers/dedicated-worker-from-blob-url.window.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.html. 141 * web-platform-tests/workers/dedicated-worker-from-blob-url.window.js: Added. 142 (message_from_port): 143 * web-platform-tests/workers/examples/fetch_tests_from_worker-expected.txt: Added. 144 * web-platform-tests/workers/examples/fetch_tests_from_worker.html: Added. 145 * web-platform-tests/workers/examples/fetch_tests_from_worker.js: Added. 146 (test): 147 * web-platform-tests/workers/examples/general.worker-expected.txt: Added. 148 * web-platform-tests/workers/examples/general.worker.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.html. 149 * web-platform-tests/workers/examples/general.worker.js: Added. 150 (test): 151 * web-platform-tests/workers/examples/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/w3c-import.log. 152 * web-platform-tests/workers/interfaces.worker-expected.txt: Removed. 153 * web-platform-tests/workers/interfaces.worker.js: Removed. 154 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/event-ports-dedicated.html: 155 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/event-ports-dedicated.js: Added. 156 (onmessage): 157 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/imagedata-cloned-canvas-in-array.html: 158 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/imagedata-cloned-canvas-in-array.js: Added. 159 (onmessage): 160 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-dictionary-expected.txt: Added. 161 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-dictionary.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null-in-array.html. 162 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-dictionary.js: Added. 163 (onmessage): 164 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null-expected.txt: 165 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null-in-array.html: 166 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null-in-array.js: Added. 167 (catch): 168 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null.html: 169 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null.js: Added. 170 (catch): 171 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-undefined.html: 172 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-undefined.js: Added. 173 (catch): 174 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/setting-postMessage.html: 175 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/setting-postMessage.js: Added. 176 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-imagedata.html: 177 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-imagedata.js: Added. 178 (onmessage): 179 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-message.html: 180 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-message.js: Added. 181 (i.catch): 182 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/w3c-import.log: 183 * web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/w3c-import.log: 184 * web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/name/getting.html: 185 * web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/name/getting.js: Added. 186 (switch): 187 * web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/name/setting.html: 188 * web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/name/setting.js: Added. 189 * web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/name/w3c-import.log: 190 * web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/onconnect.html: 191 * web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/onconnect.js: Added. 192 (catch): 193 (try.self.onconnect.handleEvent): 194 (f): 195 * web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/w3c-import.log: 196 * web-platform-tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.html: 197 * web-platform-tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.js: Added. 198 (onmessage): 199 * web-platform-tests/workers/interfaces/WorkerGlobalScope/close/sending-messages.html: 200 * web-platform-tests/workers/interfaces/WorkerGlobalScope/close/sending-messages.js: Added. 201 * web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html: 202 * web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setInterval.js: Added. 203 (interval1.setInterval): 204 (interval2.setInterval): 205 * web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.html: 206 * web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.js: Added. 207 (x): 208 * web-platform-tests/workers/interfaces/WorkerGlobalScope/close/w3c-import.log: 209 * web-platform-tests/workers/interfaces/WorkerGlobalScope/location/members.html: 210 * web-platform-tests/workers/interfaces/WorkerGlobalScope/location/members.js: Added. 211 * web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect-expected.txt: 212 * web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect-module-expected.txt: Added. 213 * web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect-module.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect.html. 214 * web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect-sharedworker-expected.txt: Added. 215 * web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect-sharedworker.html: Added. 216 * web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect.html: 217 * web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect.js: Added. 218 * web-platform-tests/workers/interfaces/WorkerGlobalScope/location/returns-same-object.html: 219 * web-platform-tests/workers/interfaces/WorkerGlobalScope/location/returns-same-object.js: Added. 220 * web-platform-tests/workers/interfaces/WorkerGlobalScope/location/setting-members.html: 221 * web-platform-tests/workers/interfaces/WorkerGlobalScope/location/setting-members.js: Added. 222 (catch): 223 * web-platform-tests/workers/interfaces/WorkerGlobalScope/location/w3c-import.log: 224 * web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/exception-in-onerror-expected.txt: 225 * web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/exception-in-onerror.html: 226 * web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/exception-in-onerror.js: Added. 227 (onerror): 228 (x): 229 * web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/handled.html: 230 * web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/handled.js: Added. 231 (onerror): 232 (x): 233 * web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/not-handled.html: 234 * web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/not-handled.js: Added. 235 (onerror): 236 (x): 237 * web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/propagate-to-window-onerror.html: 238 * web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/propagate-to-window-onerror.js: Added. 239 (x): 240 * web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/w3c-import.log: 241 * web-platform-tests/workers/interfaces/WorkerGlobalScope/self.html: 242 * web-platform-tests/workers/interfaces/WorkerGlobalScope/self.js: Added. 243 (check): 244 * web-platform-tests/workers/interfaces/WorkerGlobalScope/w3c-import.log: 245 * web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/001.html: 246 * web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/001.js: Added. 247 (setTimeout): 248 * web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/002.html: 249 * web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/002.js: Added. 250 (t.setTimeout): 251 * web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/003.html: 252 * web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/003.js: Added. 253 (setInterval): 254 * web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/004.html: 255 * web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/004.js: Added. 256 (t.setInterval): 257 * web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/005-expected.txt: Added. 258 * web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/005.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/001.html. 259 * web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/005.js: Added. 260 (t.setInterval): 261 * web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/w3c-import.log: 262 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/003.html: 263 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/003.js: Added. 264 (catch): 265 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/004.html: 266 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/004.js: Added. 267 (catch): 268 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/005.html: 269 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/005.js: Added. 270 (catch): 271 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/006.html: 272 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/006.js: Added. 273 (catch): 274 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/007.html: 275 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/007.js: Added. 276 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/008.html: 277 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/008.js: Added. 278 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/009.html: 279 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/009.js: Added. 280 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/010.html: 281 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/010.js: Added. 282 (catch): 283 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/011.html: 284 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/011.js: Added. 285 (catch): 286 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/012.html: 287 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/012.js: Added. 288 (catch): 289 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/1.headers: Added. 290 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/null.headers: Added. 291 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/undefined.headers: Added. 292 * web-platform-tests/workers/interfaces/WorkerUtils/importScripts/w3c-import.log: 293 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/002.html: 294 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/002.js: Added. 295 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/003.html: 296 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/003.js: Added. 297 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/004.html: 298 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/004.js: Added. 299 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/005.html: 300 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/005.js: Added. 301 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/006.html: 302 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/006.js: Added. 303 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/007.html: 304 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/007.js: Added. 305 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/language.html: 306 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/language.js: Added. 307 * web-platform-tests/workers/interfaces/WorkerUtils/navigator/w3c-import.log: 308 * web-platform-tests/workers/modules/dedicated-worker-import-blob-url.any-expected.txt: Added. 309 * web-platform-tests/workers/modules/dedicated-worker-import-blob-url.any.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.html. 310 * web-platform-tests/workers/modules/dedicated-worker-import-blob-url.any.js: Added. 311 (import_blob_url_test): 312 * web-platform-tests/workers/modules/dedicated-worker-import-blob-url.any.worker-expected.txt: Added. 313 * web-platform-tests/workers/modules/dedicated-worker-import-blob-url.any.worker.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.html. 314 * web-platform-tests/workers/modules/dedicated-worker-import-csp-expected.txt: Added. 315 * web-platform-tests/workers/modules/dedicated-worker-import-csp.html: Added. 316 * web-platform-tests/workers/modules/dedicated-worker-import-data-url.any-expected.txt: Added. 317 * web-platform-tests/workers/modules/dedicated-worker-import-data-url.any.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.html. 318 * web-platform-tests/workers/modules/dedicated-worker-import-data-url.any.js: Added. 319 (import_data_url_test): 320 * web-platform-tests/workers/modules/dedicated-worker-import-data-url.any.worker-expected.txt: Added. 321 * web-platform-tests/workers/modules/dedicated-worker-import-data-url.any.worker.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.html. 322 * web-platform-tests/workers/modules/dedicated-worker-import-failure-expected.txt: Added. 323 * web-platform-tests/workers/modules/dedicated-worker-import-failure.html: Added. 324 * web-platform-tests/workers/modules/dedicated-worker-import-meta-expected.txt: Added. 325 * web-platform-tests/workers/modules/dedicated-worker-import-meta.html: Added. 326 * web-platform-tests/workers/modules/dedicated-worker-import-referrer-expected.txt: Added. 327 * web-platform-tests/workers/modules/dedicated-worker-import-referrer.html: Added. 328 * web-platform-tests/workers/modules/dedicated-worker-import.any-expected.txt: Added. 329 * web-platform-tests/workers/modules/dedicated-worker-import.any.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.html. 330 * web-platform-tests/workers/modules/dedicated-worker-import.any.js: Added. 331 (import_test): 332 * web-platform-tests/workers/modules/dedicated-worker-import.any.worker-expected.txt: Added. 333 * web-platform-tests/workers/modules/dedicated-worker-import.any.worker.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.html. 334 * web-platform-tests/workers/modules/dedicated-worker-options-credentials-expected.txt: Added. 335 * web-platform-tests/workers/modules/dedicated-worker-options-credentials.html: Added. 336 * web-platform-tests/workers/modules/dedicated-worker-options-credentials.html.headers: Added. 337 * web-platform-tests/workers/modules/dedicated-worker-options-type-expected.txt: Added. 338 * web-platform-tests/workers/modules/dedicated-worker-options-type.html: Added. 339 * web-platform-tests/workers/modules/resources/credentials.py: Added. 340 (main): 341 * web-platform-tests/workers/modules/resources/dynamic-import-and-then-static-import-worker.js: Added. 342 * web-platform-tests/workers/modules/resources/dynamic-import-given-url-worker.js: Added. 343 * web-platform-tests/workers/modules/resources/dynamic-import-remote-origin-credentials-checker-worker.sub.js: Added. 344 * web-platform-tests/workers/modules/resources/dynamic-import-remote-origin-referrer-checker-worker.sub.js: Added. 345 * web-platform-tests/workers/modules/resources/dynamic-import-remote-origin-script-worker.sub.js: Added. 346 * web-platform-tests/workers/modules/resources/dynamic-import-same-origin-credentials-checker-worker.js: Added. 347 * web-platform-tests/workers/modules/resources/dynamic-import-same-origin-referrer-checker-worker.js: Added. 348 * web-platform-tests/workers/modules/resources/dynamic-import-worker.js: Added. 349 * web-platform-tests/workers/modules/resources/empty-worker.js: Added. 350 * web-platform-tests/workers/modules/resources/eval-dynamic-import-worker.js: Added. 351 * web-platform-tests/workers/modules/resources/export-on-dynamic-import-script.js: Added. 352 * web-platform-tests/workers/modules/resources/export-on-dynamic-import-script.js.headers: Added. 353 * web-platform-tests/workers/modules/resources/export-on-load-script.js: Added. 354 * web-platform-tests/workers/modules/resources/export-on-load-script.js.headers: Added. 355 * web-platform-tests/workers/modules/resources/export-on-static-import-script.js: Added. 356 * web-platform-tests/workers/modules/resources/export-on-static-import-script.js.headers: Added. 357 * web-platform-tests/workers/modules/resources/import-meta-url-worker.js: Added. 358 * web-platform-tests/workers/modules/resources/import-scripts-worker.js: Added. 359 (catch): 360 * web-platform-tests/workers/modules/resources/import-test-cases.js: Added. 361 * web-platform-tests/workers/modules/resources/nested-dynamic-import-worker.js: Added. 362 * web-platform-tests/workers/modules/resources/nested-static-import-worker.js: Added. 363 * web-platform-tests/workers/modules/resources/new-worker-window.html: Added. 364 * web-platform-tests/workers/modules/resources/post-message-on-load-worker.js: Added. 365 * web-platform-tests/workers/modules/resources/referrer-checker.py: Added. 366 (main): 367 * web-platform-tests/workers/modules/resources/static-import-and-then-dynamic-import-worker.js: Added. 368 * web-platform-tests/workers/modules/resources/static-import-non-existent-script-worker.js: Added. 369 * web-platform-tests/workers/modules/resources/static-import-remote-origin-credentials-checker-worker.sub.js: Added. 370 * web-platform-tests/workers/modules/resources/static-import-remote-origin-referrer-checker-worker.sub.js: Added. 371 * web-platform-tests/workers/modules/resources/static-import-remote-origin-script-worker.sub.js: Added. 372 * web-platform-tests/workers/modules/resources/static-import-same-origin-credentials-checker-worker.js: Added. 373 * web-platform-tests/workers/modules/resources/static-import-same-origin-referrer-checker-worker.js: Added. 374 * web-platform-tests/workers/modules/resources/static-import-worker.js: Added. 375 * web-platform-tests/workers/modules/resources/w3c-import.log: Added. 376 * web-platform-tests/workers/modules/w3c-import.log: Added. 377 * web-platform-tests/workers/name-property-expected.txt: 378 * web-platform-tests/workers/name-property.html: 379 * web-platform-tests/workers/nested_worker.worker.js: 380 (async_test): 381 * web-platform-tests/workers/nested_worker_close_from_parent_worker-expected.txt: Added. 382 * web-platform-tests/workers/nested_worker_close_from_parent_worker.html: Added. 383 * web-platform-tests/workers/nested_worker_close_self.worker-expected.txt: Added. 384 * web-platform-tests/workers/nested_worker_close_self.worker.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.html. 385 * web-platform-tests/workers/nested_worker_close_self.worker.js: Added. 386 (async_test): 387 * web-platform-tests/workers/nested_worker_importScripts.worker-expected.txt: Added. 388 * web-platform-tests/workers/nested_worker_importScripts.worker.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.html. 389 * web-platform-tests/workers/nested_worker_importScripts.worker.js: Added. 390 (async_test): 391 * web-platform-tests/workers/nested_worker_sync_xhr.worker-expected.txt: Added. 392 * web-platform-tests/workers/nested_worker_sync_xhr.worker.html: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.html. 393 * web-platform-tests/workers/nested_worker_sync_xhr.worker.js: Added. 394 (async_test): 395 * web-platform-tests/workers/nested_worker_terminate_from_document-expected.txt: Added. 396 * web-platform-tests/workers/nested_worker_terminate_from_document.html: Added. 397 * web-platform-tests/workers/non-automated/navigator-onLine.html: 398 * web-platform-tests/workers/non-automated/navigator-onLine.js: Added. 399 (string_appeared_here.in.self.onmessage): 400 (else.e.ports.0.onmessage): 401 (else.onconnect): 402 * web-platform-tests/workers/non-automated/w3c-import.log: 403 * web-platform-tests/workers/opaque-origin.html: 404 * web-platform-tests/workers/semantics/encodings/001.html: 405 * web-platform-tests/workers/semantics/encodings/001.html.headers: Removed. 406 * web-platform-tests/workers/semantics/encodings/001.js: Added. 407 * web-platform-tests/workers/semantics/encodings/001.js.headers: Added. 408 * web-platform-tests/workers/semantics/encodings/002.html: 409 * web-platform-tests/workers/semantics/encodings/002.html.headers: Removed. 410 * web-platform-tests/workers/semantics/encodings/002.js: Added. 411 (onconnect): 412 * web-platform-tests/workers/semantics/encodings/002.js.headers: Added. 413 * web-platform-tests/workers/semantics/encodings/003.html: 414 * web-platform-tests/workers/semantics/encodings/003.js: Added. 415 * web-platform-tests/workers/semantics/encodings/004.html: 416 * web-platform-tests/workers/semantics/encodings/004.js: Added. 417 (onconnect): 418 * web-platform-tests/workers/semantics/encodings/w3c-import.log: 419 * web-platform-tests/workers/semantics/interface-objects/001.worker-expected.txt: 420 * web-platform-tests/workers/semantics/interface-objects/001.worker.js: 421 * web-platform-tests/workers/semantics/interface-objects/002.worker-expected.txt: 422 * web-platform-tests/workers/semantics/interface-objects/002.worker.js: 423 * web-platform-tests/workers/semantics/interface-objects/003.html: 424 * web-platform-tests/workers/semantics/interface-objects/003.js: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.html. 425 (onconnect): 426 * web-platform-tests/workers/semantics/interface-objects/004.html: 427 * web-platform-tests/workers/semantics/interface-objects/004.js: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.html. 428 (onconnect): 429 * web-platform-tests/workers/semantics/interface-objects/w3c-import.log: 430 * web-platform-tests/workers/semantics/multiple-workers/001.html: 431 * web-platform-tests/workers/semantics/multiple-workers/001.js: Added. 432 (string_appeared_here.in.self.onmessage): 433 (else.e.ports.0.onmessage): 434 (else.onconnect): 435 * web-platform-tests/workers/semantics/multiple-workers/002.html: 436 * web-platform-tests/workers/semantics/multiple-workers/002.js: Added. 437 * web-platform-tests/workers/semantics/multiple-workers/003.html: 438 * web-platform-tests/workers/semantics/multiple-workers/003.js: Added. 439 (location.hash.string_appeared_here.w2.onmessage): 440 (else.w3.onmessage): 441 (else): 442 * web-platform-tests/workers/semantics/multiple-workers/004-expected.txt: 443 * web-platform-tests/workers/semantics/multiple-workers/004.html: 444 * web-platform-tests/workers/semantics/multiple-workers/005.html: 445 * web-platform-tests/workers/semantics/multiple-workers/006.html: 446 * web-platform-tests/workers/semantics/multiple-workers/007.html: 447 * web-platform-tests/workers/semantics/multiple-workers/008-1.html: 448 * web-platform-tests/workers/semantics/multiple-workers/008.html: 449 * web-platform-tests/workers/semantics/multiple-workers/008.js: Added. 450 (onconnect): 451 * web-platform-tests/workers/semantics/multiple-workers/w3c-import.log: 452 * web-platform-tests/workers/semantics/navigation/001-1.html: 453 * web-platform-tests/workers/semantics/navigation/001-1.js: Added. 454 (setInterval): 455 * web-platform-tests/workers/semantics/navigation/w3c-import.log: 456 * web-platform-tests/workers/semantics/reporting-errors/001.html: 457 * web-platform-tests/workers/semantics/reporting-errors/001.js: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/001.html. 458 (onerror): 459 (onconnect): 460 * web-platform-tests/workers/semantics/reporting-errors/002.html: 461 * web-platform-tests/workers/semantics/reporting-errors/002.js: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/002.html. 462 (onconnect): 463 * web-platform-tests/workers/semantics/reporting-errors/003.html: 464 * web-platform-tests/workers/semantics/reporting-errors/003.js: Added. 465 (onconnect): 466 * web-platform-tests/workers/semantics/reporting-errors/004-1.html: 467 * web-platform-tests/workers/semantics/reporting-errors/004.html: 468 * web-platform-tests/workers/semantics/reporting-errors/004.js: Added. 469 (onconnect): 470 * web-platform-tests/workers/semantics/reporting-errors/w3c-import.log: 471 * web-platform-tests/workers/semantics/run-a-worker/001.html: 472 * web-platform-tests/workers/semantics/run-a-worker/001.js: Added. 473 * web-platform-tests/workers/semantics/run-a-worker/002.html: 474 * web-platform-tests/workers/semantics/run-a-worker/002.js: Added. 475 (onconnect): 476 * web-platform-tests/workers/semantics/run-a-worker/003.html: 477 * web-platform-tests/workers/semantics/run-a-worker/w3c-import.log: 478 * web-platform-tests/workers/semantics/structured-clone/w3c-import.log: 479 * web-platform-tests/workers/semantics/xhr/001.html: 480 * web-platform-tests/workers/semantics/xhr/001.js: Added. 481 (xhr.onreadystatechange): 482 * web-platform-tests/workers/semantics/xhr/002.html: 483 * web-platform-tests/workers/semantics/xhr/002.js: Added. 484 * web-platform-tests/workers/semantics/xhr/003.html: 485 * web-platform-tests/workers/semantics/xhr/003.js: Copied from LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/003.html. 486 (xhr.onreadystatechange): 487 (onconnect): 488 * web-platform-tests/workers/semantics/xhr/004.html: 489 * web-platform-tests/workers/semantics/xhr/004.js: Added. 490 (onconnect): 491 * web-platform-tests/workers/semantics/xhr/support/w3c-import.log: 492 * web-platform-tests/workers/semantics/xhr/w3c-import.log: 493 * web-platform-tests/workers/shared-worker-from-blob-url.window-expected.txt: Added. 494 * web-platform-tests/workers/shared-worker-from-blob-url.window.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.html. 495 * web-platform-tests/workers/shared-worker-from-blob-url.window.js: Added. 496 (message_from_port): 497 * web-platform-tests/workers/support/SharedWorker-common.js: Added. 498 (generateError): 499 (event.ports.0.onmessage): 500 (onconnect): 501 (handleMessage): 502 * web-platform-tests/workers/support/SharedWorker-create-common.js: Added. 503 (createWorker.worker.port.onmessage): 504 (createWorker.worker.postMessage): 505 (createWorker): 506 * web-platform-tests/workers/support/SharedWorker-script-error.js: Added. 507 (event.ports.0.onmessage): 508 (onconnect): 509 (else.onerror): 510 (handleMessage): 511 * web-platform-tests/workers/support/Worker-common.js: Added. 512 (onmessage): 513 * web-platform-tests/workers/support/Worker-create-common.js: Added. 514 (createWorker): 515 * web-platform-tests/workers/support/Worker-messageport.js: Added. 516 (onmessage): 517 (pingBack): 518 * web-platform-tests/workers/support/Worker-run-forever.js: Added. 519 * web-platform-tests/workers/support/Worker-structure-message.js: Added. 520 (self.onmessage): 521 * web-platform-tests/workers/support/Worker-termination-with-port-messages.js: Added. 522 (echo): 523 (onmessage): 524 * web-platform-tests/workers/support/Worker-thread-multi-port.js: Added. 525 (onmessage): 526 (testPassed): 527 (testFailed): 528 * web-platform-tests/workers/support/Worker-timeout-cancel-order.js: Added. 529 (t1.setTimeout): 530 (setTimeout): 531 * web-platform-tests/workers/support/Worker-timeout-decreasing-order.js: Added. 532 (setTimeout): 533 * web-platform-tests/workers/support/Worker-timeout-increasing-order.js: Added. 534 (setTimeout): 535 * web-platform-tests/workers/support/WorkerGlobalScope-close.js: Added. 536 (else.messagePort.onmessage): 537 (onmessage): 538 * web-platform-tests/workers/support/WorkerSendingPerformanceNow.js: Added. 539 (calcResponse): 540 (self.onmessage): 541 (port.onmessage): 542 * web-platform-tests/workers/support/iframe_sw_dataUrl.html: Added. 543 * web-platform-tests/workers/support/importScripts-1.js: Added. 544 * web-platform-tests/workers/support/importScripts-2.js: Added. 545 * web-platform-tests/workers/support/importScripts-3.js: Added. 546 * web-platform-tests/workers/support/imported_script.py: Added. 547 (main): 548 * web-platform-tests/workers/support/invalidScript.js: Added. 549 * web-platform-tests/workers/support/name.js: 550 (test): 551 * web-platform-tests/workers/support/parent_of_nested_worker.js: Added. 552 (try.worker.onmessage): 553 (catch): 554 * web-platform-tests/workers/support/sync_xhr.js: Added. 555 (catch): 556 * web-platform-tests/workers/support/sync_xhr_target.xml: Added. 557 * web-platform-tests/workers/support/throw-on-message-Worker.js: Added. 558 (self.onerror): 559 (self.onmessage): 560 * web-platform-tests/workers/support/w3c-import.log: 561 * web-platform-tests/workers/w3c-import.log: 562 * web-platform-tests/workers/worker-performance.worker-expected.txt: 563 1 564 2019-09-10 Youenn Fablet <youenn@apple.com> 2 565 -
trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/import-module-scripts.https-expected.txt
r238592 r249719 1 CONSOLE MESSAGE: line 27: ReferenceError: Can't find variable: testCases2 1 3 FAIL Tests for module import: ServiceWorker ReferenceError: Can't find variable: testCases 2 FAIL Static import. promise_test: Unhandled rejection with value: object "TypeError: SyntaxError: Unexpected token '*'. import call expects exactly one argument." 3 FAIL Nested static import. promise_test: Unhandled rejection with value: object "TypeError: SyntaxError: Unexpected token '*'. import call expects exactly one argument." 4 FAIL Static import and then dynamic import. promise_test: Unhandled rejection with value: object "TypeError: SyntaxError: Unexpected token '*'. import call expects exactly one argument." 5 FAIL Dynamic import. assert_array_equals: value is "Failed to do dynamic import: Error: Could not import the module './export-on-load-script.js'.", expected array 6 FAIL Nested dynamic import. assert_array_equals: value is "Failed to do dynamic import: Error: Could not import the module './export-on-dynamic-import-script.js'.", expected array 7 FAIL Dynamic import and then static import. assert_array_equals: value is "Failed to do dynamic import: Error: Could not import the module './export-on-static-import-script.js'.", expected array 8 FAIL eval(import()). assert_array_equals: value is "Failed to do dynamic import: Error: Could not import the module './export-on-load-script.js'.", expected array 4 9 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/README.md
r225593 r249719 1 # Worker WPT tests 2 1 3 These are the workers (`Worker`, `SharedWorker`) tests for the 2 4 [Web workers chapter of the HTML Standard](https://html.spec.whatwg.org/multipage/workers.html). 5 6 See also 7 [testharness.js API > Web Workers](https://web-platform-tests.org/writing-tests/testharness-api.html#web-workers). 8 9 Note that because workers are defined in the HTML Standard, the idlharness.js 10 tests are in [/html/dom]([/html/dom) instead of here. 11 12 ## Writing `*.any.js` 13 14 The easiest and most recommended way to write tests for workers 15 is to create .any.js-style tests. 16 17 Official doc: 18 [WPT > File Name Flags > Test Features](https://web-platform-tests.org/writing-tests/file-names.html#test-features). 19 20 - Standard `testharness.js`-style can be used (and is enforced). 21 - The same test can be run on window and many types of workers. 22 - All glue code are automatically generated. 23 - No need to care about how to create and communicate with each type of workers, 24 thanks to `fetch_tests_from_worker` in `testharness.js`. 25 26 Converting existing tests into `.any.js`-style also has benefits: 27 28 - Multiple tests can be merged into one. 29 - Tests written for window can be run on workers 30 with a very low development cost. 31 32 ### How to write tests 33 34 If you write `testharness.js`-based tests in `foo.any.js` and 35 specify types of workers to be tested, 36 the test can run on any of dedicated, shared and service workers. 37 38 See `examples/general.any.js` for example. 39 40 Even for testing specific features in a specific type of workers 41 (e.g. shared worker's `onconnect`), `.any.js`-style tests can be used. 42 43 See `examples/onconnect.any.js` for example. 44 45 ### How to debug tests 46 47 Whether each individual test passed or failed, 48 and its assertion failures (if any) are all reported in the final results. 49 50 `console.log()` might not appear in the test results and 51 thus might not be useful for printf debugging. 52 For example, in Chromium, this message 53 54 - Appears (in stderr) on a window or a dedicated worker, but 55 - Does NOT appear on a shared worker or a service worker. 56 57 ### How it works 58 59 `.any.js`-style tests use 60 `fetch_tests_from_worker` functionality of `testharness.js`. 61 62 The WPT test server generates necessary glue code 63 (including generated Document HTML and worker top-level scripts). 64 See 65 [serve.py](https://github.com/web-platform-tests/wpt/blob/master/tools/serve/serve.py) 66 for the actual glue code. 67 68 Note that `.any.js` file is not the worker top-level script, 69 and currently we cannot set response headers to the worker top-level script, 70 e.g. to set Referrer Policy of the workers. 71 72 ## Writing `*.worker.js` 73 74 Similar to `.any.js`, you can also write `.worker.js` 75 for tests only for dedicated workers. 76 Almost the same as `.any.js`, except for the things listed below. 77 78 Official doc: 79 [WPT > File Name Flags > Test Features](https://web-platform-tests.org/writing-tests/file-names.html#test-features). 80 81 ### How to write tests 82 83 You have to write two things manually (which is generated in `.any.js` tests): 84 85 - `importScripts("/resources/testharness.js");` at the beginning. 86 - `done();` at the bottom. 87 88 Note: Even if you write `async_test()` or `promise_test()`, 89 this global `done()` is always needed 90 (this is different from async_test's `done()`) 91 for dedicated workers and shared workers. 92 See official doc: 93 [testharness.js API > Determining when all tests are complete](https://web-platform-tests.org/writing-tests/testharness-api.html#determining-when-all-tests-are-complete). 94 95 See `examples/general.worker.js` for example. 96 97 ### How it works 98 99 `.worker.js`-style tests also use 100 `fetch_tests_from_worker` functionality of `testharness.js`. 101 102 The WPT test server generates glue code in Document HTML-side, 103 but not for worker top-level scripts. 104 This is why you have to manually write `importScripts()` etc. 105 See 106 [serve.py](https://github.com/web-platform-tests/wpt/blob/master/tools/serve/serve.py) 107 for the actual glue code. 108 109 Unlike `*.any.js` cases, the `*.worker.js` is the worker top-level script. 110 111 ## Using `fetch_tests_from_worker` 112 113 If you need more flexibility, 114 writing tests using `fetch_tests_from_worker` is the way to go. 115 For example, when 116 117 - Additional processing is needed on the parent Document. 118 - Workers should be created in a specific way. 119 - You are writing non-WPT tests using `testharness.js`. 120 121 You have to write the main HTMLs and the worker scripts, 122 but most of the glue code needed for running tests on workers 123 are provided by `fetch_tests_from_worker`. 124 125 ### How to write tests 126 127 See 128 129 - `examples/fetch_tests_from_worker.html` and 130 `examples/fetch_tests_from_worker.js`. 131 132 ## Writing the whole tests manually 133 134 If `fetch_tests_from_worker` isn't suitable for your specific case 135 (which should be rare but might be still possible), 136 you have to write the whole tests, 137 including the main Document HTML, worker scripts, 138 and message passing code between them. 139 140 TODO: Supply the templates for writing this kind of tests. -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/Worker_cross_origin_security_err.htm
r225593 r249719 1 1 <!DOCTYPE html> 2 <title> Worker cross-origin URL </title> 2 <title>Worker cross-origin URL</title> 3 <meta name="timeout" content="long"> 3 4 <script src="/resources/testharness.js"></script> 4 5 <script src="/resources/testharnessreport.js"></script> … … 12 13 }); 13 14 } catch (e) { 14 t.step_func_done(function(e) { assert_true(true); }); 15 assert_throws("SecurityError", () => {throw e}, "DOMExceptions thrown on cross-origin Worker construction must be SecurityErrors"); 16 t.done(); 15 17 } 16 }); 18 }, "Cross-origin classic workers should fail to fetch"); 19 20 async_test(function(t) { 21 try { 22 var w = new Worker("ftp://example.org/support/WorkerBasic.js", {type: "module"}); 23 w.onerror = t.step_func_done(function(e) { 24 assert_true(e instanceof Event); 25 }); 26 } catch (e) { 27 assert_throws("SecurityError", () => {throw e}, "DOMExceptions thrown on cross-origin module Worker construction must be SecurityErrors"); 28 t.done(); 29 } 30 }, "Cross-origin module workers should fail to fetch"); 17 31 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/import-in-moduleworker.html
r249718 r249719 1 1 <!doctype html> 2 2 <meta charset=utf-8> 3 <title>Base URL in workers: importScripts</title>3 <title>Base URL in module dedicated workers: import</title> 4 4 <script src="/resources/testharness.js"></script> 5 5 <script src="/resources/testharnessreport.js"></script> 6 6 <script> 7 7 async_test(function() { 8 var worker = new Worker("../beta/import Scripts.py");8 var worker = new Worker("../beta/import.py", {type: "module"}); 9 9 worker.onmessage = this.step_func_done(function(e) { 10 assert_equals(e.data, "gamma ");10 assert_equals(e.data, "gamma/script-module.js"); 11 11 }); 12 12 worker.onerror = this.unreached_func("Got error event"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 15 15 ------------------------------------------------------------------------ 16 16 List of files: 17 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/importScripts.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/sharedworker.html 19 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/worker.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/xhr.html 17 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/import-in-moduleworker.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/importScripts-in-sharedworker.html 19 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/importScripts-in-worker.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/sharedworker-in-worker.html 21 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/worker-in-worker.html 22 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/xhr-in-moduleworker.html 23 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/xhr-in-sharedworker.html 24 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/xhr-in-worker.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/alpha/xhr-in-moduleworker.html
r249718 r249719 1 1 <!doctype html> 2 2 <meta charset=utf-8> 3 <title>Base URL in workers: XHR</title>3 <title>Base URL in module dedicated workers: XHR</title> 4 4 <script src="/resources/testharness.js"></script> 5 5 <script src="/resources/testharnessreport.js"></script> 6 6 <script> 7 7 async_test(function() { 8 var worker = new Worker("../beta/xhr.py" );8 var worker = new Worker("../beta/xhr.py", {type: "module"}); 9 9 worker.onmessage = this.step_func_done(function(e) { 10 10 assert_equals(e.data, "gamma\n"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/beta/script.js
r225593 r249719 1 postMessage('beta');1 var result = 'beta/script.js'; -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/beta/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 15 15 ------------------------------------------------------------------------ 16 16 List of files: 17 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/beta/import.py 17 18 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/beta/importScripts.py 18 19 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/beta/script.js … … 22 23 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/beta/test.txt 23 24 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/beta/worker.py 25 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/beta/xhr-worker.py 24 26 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/beta/xhr.py -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/gamma/importScripts.js
r225593 r249719 1 importScripts('/resources/testharness.js'); 1 2 importScripts("script.js"); 3 test(() => { 4 assert_equals(result, "gamma/script.js"); 5 }); 6 done(); -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/gamma/script.js
r225593 r249719 1 postMessage('gamma');1 var result = 'gamma/script.js'; -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/gamma/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 15 15 ------------------------------------------------------------------------ 16 16 List of files: 17 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/gamma/import.js 17 18 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/gamma/importScripts.js 19 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/gamma/script-module.js 18 20 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/gamma/script.js 19 21 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/gamma/sharedworker.js … … 22 24 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/gamma/test.txt 23 25 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/gamma/worker.js 26 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/gamma/xhr-worker.js 24 27 /LayoutTests/imported/w3c/web-platform-tests/workers/baseurl/gamma/xhr.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/connect-event.html
r225593 r249719 1 <!--2 onconnect = function(e) {3 e.ports[0].postMessage([e.data === '', e instanceof MessageEvent, e.ports.length == 1]);4 };5 /*6 -->7 1 <!doctype html> 8 2 <title>connect event</title> … … 12 6 <script> 13 7 (async_test()).step(function() { 14 var worker = new SharedWorker(' #');8 var worker = new SharedWorker('connect-event.js'); 15 9 worker.port.addEventListener('message', this.step_func(function(e) { 16 10 assert_true(e.data[0], "e.data === ''"); … … 22 16 }); 23 17 </script> 24 <!--25 */26 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/dummy-name.html
r225593 r249719 1 <!--2 /*3 -->4 1 <!doctype html> 5 2 <title>creating a dummy shared worker with name "foo"</title> … … 10 7 <script> 11 8 test(function() { 12 var worker = new SharedWorker(' #', 'foo');9 var worker = new SharedWorker('empty.js', 'foo'); 13 10 }); 14 11 </script> 15 <!--16 */17 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/dummy-shared-worker.html
r225593 r249719 1 <!--2 /*3 -->4 1 <!doctype html> 5 2 <title>creating a dummy shared worker</title> … … 10 7 <script> 11 8 test(function() { 12 var worker = new SharedWorker(' #');9 var worker = new SharedWorker('dummy-shared-worker.js'); 13 10 }); 14 11 </script> 15 <!--16 */17 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/empty-name.html
r225593 r249719 1 <!--2 /*3 -->4 1 <!doctype html> 5 2 <title>creating a dummy shared worker with explicit name ""</title> … … 10 7 <script> 11 8 test(function() { 12 var worker = new SharedWorker(' #', '');9 var worker = new SharedWorker('empty.js', ''); 13 10 }); 14 11 </script> 15 <!--16 */17 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/global-members.html
r225593 r249719 1 <!--2 var expected = 'self location close onerror importScripts navigator addEventListener removeEventListener dispatchEvent name onconnect setTimeout clearTimeout setInterval clearInterval'.split(' ');3 var log = '';4 for (var i = 0; i < expected.length; ++i) {5 if (!(expected[i] in self))6 log += expected[i] + ' did not exist\n';7 }8 onconnect = function(e) {9 e.ports[0].postMessage(log);10 };11 /*12 -->13 1 <!doctype html> 14 2 <title>members of SharedWorkerGlobalScope</title> … … 18 6 <script> 19 7 (async_test()).step(function() { 20 var worker = new SharedWorker(' #');8 var worker = new SharedWorker('global-members.js'); 21 9 worker.port.addEventListener('message', this.step_func(function(e) { 22 10 assert_equals(e.data, ''); … … 26 14 }); 27 15 </script> 28 <!--29 */30 //-->31 32 33 34 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/interface-objects.html
r225593 r249719 1 <!--2 var prt;3 function handleCall(e) {4 var log = [];5 for (var i = 0; i < e.data.length; ++i) {6 if (!(e.data[i] in self))7 log.push(e.data[i]);8 }9 prt.postMessage('These were missing: '+log.join(', '));10 }11 onconnect = function(e) {12 prt = e.ports[0];13 prt.onmessage = handleCall;14 };15 /*16 -->17 1 <!doctype html> 18 2 <title>expected interface objects/constructors</title> … … 28 12 supported.push(expected[i]); 29 13 } 30 var worker = new SharedWorker(' #');14 var worker = new SharedWorker('interface-objects.js'); 31 15 worker.port.start(); 32 16 worker.port.postMessage(supported); … … 37 21 }); 38 22 </script> 39 <!--40 */41 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/name.html
r225593 r249719 1 <!--2 onconnect = function(e) {3 e.ports[0].postMessage(self.name);4 }5 /*6 -->7 1 <!doctype html> 8 2 <title>self.name</title> … … 12 6 <script> 13 7 (async_test()).step(function() { 14 var worker = new SharedWorker(' #', 'hello');8 var worker = new SharedWorker('name.js', 'hello'); 15 9 worker.port.addEventListener('message', this.step_func(function(e) { 16 10 assert_equals(e.data, 'hello'); … … 20 14 }); 21 15 </script> 22 <!--23 */24 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/port-onmessage.html
r225593 r249719 1 <!--2 onconnect = function(e) {3 e.ports[0].postMessage(true);4 }5 /*6 -->7 1 <!doctype html> 8 2 <title>worker.port.onmessage</title> … … 12 6 <script> 13 7 (async_test()).step(function() { 14 var worker = new SharedWorker(' #', '');8 var worker = new SharedWorker('port-onmessage.js', ''); 15 9 worker.port.onmessage = this.step_func(function(e) { 16 10 assert_true(e.data); … … 19 13 }); 20 14 </script> 21 <!--22 */23 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/port-properties.html
r225593 r249719 1 <!--2 /*3 -->4 1 <!doctype html> 5 2 <title>worker.port</title> … … 11 8 <script> 12 9 test(function() { 13 var worker = new SharedWorker(' #', '');10 var worker = new SharedWorker('empty.js', ''); 14 11 assert_true('port' in worker, "port"); 15 12 assert_true('postMessage' in worker.port, "postMessage"); … … 22 19 }); 23 20 </script> 24 <!--25 */26 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/port-readonly.html
r225593 r249719 1 <!--2 /*3 -->4 1 <!doctype html> 5 2 <title>setting worker.port</title> … … 11 8 <script> 12 9 test(function() { 13 var worker = new SharedWorker(' #', '');10 var worker = new SharedWorker('empty.js', ''); 14 11 var x = worker.port; 15 12 worker.port = 1; … … 17 14 }); 18 15 </script> 19 <!--20 */21 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/same-origin.html
r225593 r249719 4 4 <!doctype html> 5 5 <title>same-origin checks</title> 6 <link rel=help href="http://www.whatwg.org/html/#dom-sharedworker"> 6 <meta name="timeout" content="long"> 7 <link rel=help href="https://html.spec.whatwg.org/multipage/workers.html#dom-sharedworker"> 7 8 <script src="/resources/testharness.js"></script> 8 9 <script src="/resources/testharnessreport.js"></script> … … 20 21 }); 21 22 } catch (e) { 22 t.step_func_done(function(e) { assert_true(true); }); 23 assert_throws("SecurityError", () => {throw e}, "DOMExceptions thrown on cross-origin SharedWorker construction must be SecurityErrors"); 24 t.done(); 23 25 } 24 26 } -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/unexpected-global-properties.html
r225593 r249719 1 <!--2 var unexpected = 'open print stop getComputedStyle getSelection releaseEvents captureEvents alert confirm prompt addEventStream removeEventStream back forward attachEvent detachEvent navigate DOMParser XMLSerializer XPathEvaluator XSLTProcessor opera Image Option frames Audio SVGUnitTypes SVGZoomAndPan java netscape sun Packages ByteArray closed defaultStatus document event frameElement history innerHeight innerWidth opener outerHeight outerWidth pageXOffset pageYOffset parent screen screenLeft screenTop screenX screenY status top window length'.split(' '); // iterated window in opera and removed expected ones3 var log = '';4 for (var i = 0; i < unexpected.length; ++i) {5 if (unexpected[i] in self)6 log += unexpected[i] + ' ';7 }8 onconnect = function(e) {9 e.ports[0].postMessage(log);10 };11 /*12 -->13 1 <!doctype html> 14 2 <title>unexpected members/interface objects/constructors</title> … … 18 6 <script> 19 7 (async_test()).step(function() { 20 var worker = new SharedWorker(' #');8 var worker = new SharedWorker('unexpected-global-properties.js'); 21 9 worker.port.addEventListener('message', this.step_func(function(e) { 22 10 assert_equals(e.data, ''); … … 26 14 }); 27 15 </script> 28 <!--29 */30 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/unexpected-global-properties.js
r249718 r249719 1 <!--2 1 var unexpected = 'open print stop getComputedStyle getSelection releaseEvents captureEvents alert confirm prompt addEventStream removeEventStream back forward attachEvent detachEvent navigate DOMParser XMLSerializer XPathEvaluator XSLTProcessor opera Image Option frames Audio SVGUnitTypes SVGZoomAndPan java netscape sun Packages ByteArray closed defaultStatus document event frameElement history innerHeight innerWidth opener outerHeight outerWidth pageXOffset pageYOffset parent screen screenLeft screenTop screenX screenY status top window length'.split(' '); // iterated window in opera and removed expected ones 3 2 var log = ''; … … 9 8 e.ports[0].postMessage(log); 10 9 }; 11 /*12 -->13 <!doctype html>14 <title>unexpected members/interface objects/constructors</title>15 <script src="/resources/testharness.js"></script>16 <script src="/resources/testharnessreport.js"></script>17 <div id="log"></div>18 <script>19 (async_test()).step(function() {20 var worker = new SharedWorker('#');21 worker.port.addEventListener('message', this.step_func(function(e) {22 assert_equals(e.data, '');23 this.done();24 }), false);25 worker.port.start();26 });27 </script>28 <!--29 */30 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 18 18 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/URLMismatchError.htm 19 19 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/connect-event.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/connect-event.js 20 21 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/dummy-name.html 21 22 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/dummy-shared-worker.html 23 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/dummy-shared-worker.js 22 24 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/empty-name.html 25 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/empty.js 23 26 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/global-members.html 27 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/global-members.js 24 28 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/interface-objects.html 29 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/interface-objects.js 25 30 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/name.html 31 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/name.js 26 32 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/no-arguments-ctor.html 27 33 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/null … … 29 35 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/number-arguments.html 30 36 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/port-onmessage.html 37 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/port-onmessage.js 31 38 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/port-properties.html 32 39 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/port-readonly.html … … 37 44 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/undefined-arguments.html 38 45 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/unexpected-global-properties.html 46 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/unexpected-global-properties.js 39 47 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/SharedWorker/unresolvable-url.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/AbstractWorker.onerror-expected.txt
r225593 r249719 1 CONSOLE MESSAGE: line 2: SyntaxError: Unexpected token ')'1 CONSOLE MESSAGE: line 1: SyntaxError: Unexpected token ')' 2 2 3 3 PASS AbstractWorker.onerror -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/AbstractWorker.onerror.html
r225593 r249719 1 <!--2 for (;) // should cause onerror to be invoked, but onerror is null, so3 // the error is "not handled". should fire an ErrorEvent on the4 // worker.5 break;6 postMessage(1); // shouldn't do anything since the script doesn't compile7 /*8 -->9 1 <!doctype html> 10 2 <title>AbstractWorker.onerror</title> … … 18 10 setup({allow_uncaught_exception:true}); 19 11 async_test(function() { 20 var worker = new Worker(' #');12 var worker = new Worker('AbstractWorker.onerror.js'); 21 13 var error; 22 14 worker.onerror = this.step_func(function(a, b, c) { … … 25 17 assert_true("message" in a, 'ErrorEvent.message'); 26 18 assert_equals(typeof a.message, "string", 'ErrorEvent.message'); 27 assert_equals(a.filename, document.URL + '#', 'ErrorEvent.filename');19 assert_equals(a.filename, document.URL.replace('.html', '.js'), 'ErrorEvent.filename'); 28 20 assert_true("lineno" in a, 'ErrorEvent.lineno'); 29 21 assert_equals(typeof a.lineno, "number", 'ErrorEvent.lineno'); … … 44 36 }); 45 37 </script> 46 <!--47 */48 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/same-origin.html
r225593 r249719 2 2 <meta charset=utf-8> 3 3 <title>same-origin checks; the script is in a script element</title> 4 <link rel=help href="http://www.whatwg.org/html/#dom-worker"> 4 <meta name="timeout" content="long"> 5 <link rel=help href="https://html.spec.whatwg.org/multipage/workers.html#dom-worker"> 5 6 <script src="/resources/testharness.js"></script> 6 7 <script src="/resources/testharnessreport.js"></script> … … 11 12 setup({allow_uncaught_exception: true}); 12 13 13 function test SharedWorkerHelper(t, script) {14 function testWorkerHelper(t, script) { 14 15 try { 15 var worker = new SharedWorker(script, '');16 var worker = new Worker(script); 16 17 worker.onerror = t.step_func_done(function(e) { 17 18 assert_true(e instanceof Event); 18 19 }); 19 20 } catch (e) { 20 t.step_func_done(function(e) { assert_true(true); }); 21 assert_throws("SecurityError", () => {throw e}, "DOMExceptions thrown on cross-origin Worker construction must be SecurityErrors"); 22 t.done(); 21 23 } 22 24 } … … 34 36 35 37 async_test(function(t) { 36 test SharedWorkerHelper(t, 'about:blank');38 testWorkerHelper(t, 'about:blank'); 37 39 }, "about_blank"); 38 40 39 41 async_test(function(t) { 40 test SharedWorkerHelper(t, 'http://www.example.invalid/');42 testWorkerHelper(t, 'http://www.example.invalid/'); 41 43 }, "example_invalid"); 42 44 43 45 async_test(function(t) { 44 test SharedWorkerHelper(t, location.protocol+'//'+location.hostname+':81/');46 testWorkerHelper(t, location.protocol+'//'+location.hostname+':81/'); 45 47 }, "port_81"); 46 48 47 49 async_test(function(t) { 48 test SharedWorkerHelper(t, 'https://'+location.hostname+':80/');50 testWorkerHelper(t, 'https://'+location.hostname+':80/'); 49 51 }, "https_port_80"); 50 52 51 53 async_test(function(t) { 52 test SharedWorkerHelper(t, 'https://'+location.hostname+':8000/');54 testWorkerHelper(t, 'https://'+location.hostname+':8000/'); 53 55 }, "https_port_8000"); 54 56 55 57 async_test(function(t) { 56 test SharedWorkerHelper(t, 'http://'+location.hostname+':8012/');58 testWorkerHelper(t, 'http://'+location.hostname+':8012/'); 57 59 }, "http_post_8012"); 58 60 59 61 async_test(function(t) { 60 test SharedWorkerHelper(t,'javascript:""');62 testWorkerHelper(t,'javascript:""'); 61 63 }, "javascript_url"); 62 64 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/sample_worker/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/terminate.html
r225593 r249719 1 <!--2 (function f() {3 postMessage(1);4 setTimeout(f, 0);5 })();6 /*7 -->8 1 <!doctype html> 9 2 <title>terminate()</title> … … 15 8 var t = async_test(); 16 9 t.step(function() { 17 var worker = new Worker(' #');10 var worker = new Worker('terminate.js'); 18 11 var i = 0; 19 12 var expected; … … 40 33 }); 41 34 </script> 42 <!--43 */44 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/1 18 18 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/AbstractWorker.onerror.html 19 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/AbstractWorker.onerror.js 19 20 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/Blob-url.html 20 21 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/DedicatedWorkerGlobalScope-members.worker.js 22 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/Worker-constructor.html 21 23 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/ctor-1.html 22 24 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/ctor-null.html 23 25 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/ctor-undefined.html 24 26 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/expected-self-properties.worker.js 25 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/no-arguments-ctor.html26 27 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/null 27 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/resolve-empty-string.html28 28 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/same-origin.html 29 29 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/terminate.html 30 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/terminate.js 30 31 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/undefined 31 32 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/unexpected-self-properties.worker.js 32 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/unresolvable-url.html33 33 /LayoutTests/imported/w3c/web-platform-tests/workers/constructors/Worker/use-base-url.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/examples/w3c-import.log
r249718 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 15 15 ------------------------------------------------------------------------ 16 16 List of files: 17 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/EventTarget.worker.js 18 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/onmessage.worker.js 17 /LayoutTests/imported/w3c/web-platform-tests/workers/examples/fetch_tests_from_worker.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/examples/fetch_tests_from_worker.js 19 /LayoutTests/imported/w3c/web-platform-tests/workers/examples/general.any.js 20 /LayoutTests/imported/w3c/web-platform-tests/workers/examples/general.worker.js 21 /LayoutTests/imported/w3c/web-platform-tests/workers/examples/onconnect.any.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/event-ports-dedicated.html
r225593 r249719 1 <!--2 onmessage = function(e) {3 postMessage(e.ports instanceof Array && e.ports.length === 0);4 }5 /*6 -->7 1 <!doctype html> 8 2 <title>e.ports in dedicated worker</title> … … 12 6 <script> 13 7 (async_test()).step(function() { 14 var worker = new Worker(' #');8 var worker = new Worker('event-ports-dedicated.js'); 15 9 worker.postMessage(1); 16 10 worker.onmessage = this.step_func(function(e) { … … 20 14 }); 21 15 </script> 22 <!--23 */24 //-->25 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/imagedata-cloned-canvas-in-array.html
r225593 r249719 1 <!--2 onmessage = function(e) {3 function processPixels(imagedata) {4 var pixeldata = imagedata.data;5 for (var i = 0; i < pixeldata.length; i = i+4) {6 pixeldata[i] = 128;7 }8 postMessage(imagedata);9 }10 processPixels(e.data[0]);11 }12 13 /*14 -->15 1 <!doctype html> 16 2 <title>posting an imagedata (from a cloned canvas) in an array</title> … … 20 6 <script> 21 7 (async_test()).step(function() { 22 var worker = new Worker(' #');8 var worker = new Worker('imagedata-cloned-canvas-in-array.js'); 23 9 var canvas = document.createElement('canvas'); 24 10 var clone = canvas.cloneNode(true); … … 35 21 }); 36 22 </script> 37 <!--38 */39 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-dictionary.html
r249718 r249719 1 <!--2 try {3 postMessage(false, [null]);4 } catch(e) {5 postMessage(e instanceof TypeError);6 }7 /*8 -->9 1 <!doctype html> 10 <title>Using [null] inpostMessage's second argument</title>2 <title>Using dictionary as postMessage's second argument</title> 11 3 <script src="/resources/testharness.js"></script> 12 4 <script src="/resources/testharnessreport.js"></script> … … 14 6 <script> 15 7 (async_test()).step(function() { 16 var worker = new Worker('#'); 8 var worker = new Worker('second-argument-dictionary.js'); 9 var ab = new ArrayBuffer(1); 10 worker.postMessage(ab, {transfer: [ab]}); 17 11 worker.onmessage = this.step_func(function(e) { 18 assert_ true(e.data);12 assert_equals(e.data.byteLength, 1); 19 13 this.done(); 20 14 }); 21 15 }); 22 16 </script> 23 <!--24 */25 //-->26 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null-expected.txt
r225593 r249719 1 1 2 PASS Using null in postMessage's second argument 2 FAIL Using null in postMessage's second argument assert_equals: expected (boolean) true but got (number) 1 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null-in-array.html
r225593 r249719 1 <!--2 try {3 postMessage(false, [null]);4 } catch(e) {5 postMessage(e instanceof TypeError);6 }7 /*8 -->9 1 <!doctype html> 10 2 <title>Using [null] in postMessage's second argument</title> … … 14 6 <script> 15 7 (async_test()).step(function() { 16 var worker = new Worker(' #');8 var worker = new Worker('second-argument-null-in-array.js'); 17 9 worker.onmessage = this.step_func(function(e) { 18 10 assert_true(e.data); … … 21 13 }); 22 14 </script> 23 <!--24 */25 //-->26 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null.html
r225593 r249719 1 <!--2 try {3 postMessage(1, null);4 } catch(e) {5 postMessage(e instanceof TypeError);6 }7 /*8 -->9 1 <!doctype html> 10 2 <title>Using null in postMessage's second argument</title> … … 14 6 <script> 15 7 (async_test()).step(function() { 16 var worker = new Worker(' #');8 var worker = new Worker('second-argument-null.js'); 17 9 worker.onmessage = this.step_func(function(e) { 18 assert_ true(e.data);10 assert_equals(1, e.data); 19 11 this.done(); 20 12 }); 21 13 }); 22 14 </script> 23 <!--24 */25 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-undefined.html
r225593 r249719 1 <!--2 try {3 postMessage(1, undefined);4 } catch(e) {5 postMessage(''+e);6 }7 /*8 -->9 1 <!doctype html> 10 2 <title>Using undefined in postMessage's second argument</title> … … 14 6 <script> 15 7 (async_test()).step(function() { 16 var worker = new Worker(' #');8 var worker = new Worker('second-argument-undefined.js'); 17 9 worker.onmessage = this.step_func(function(e) { 18 10 assert_equals(e.data, 1); … … 21 13 }); 22 14 </script> 23 <!--24 */25 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/setting-postMessage.html
r225593 r249719 1 <!--2 var x = postMessage;3 postMessage = 1;4 x(postMessage == 1);5 6 /*7 -->8 1 <!doctype html> 9 2 <title>setting postMessage</title> … … 13 6 <script> 14 7 (async_test()).step(function() { 15 var worker = new Worker(' #');8 var worker = new Worker('setting-postMessage.js'); 16 9 worker.onmessage = this.step_func(function(e) { 17 10 assert_true(e.data); … … 20 13 }); 21 14 </script> 22 <!--23 */24 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-imagedata.html
r225593 r249719 1 <!--2 onmessage = function(e) {3 var imagedata = e.data;4 imagedata.data[0] = 128;5 postMessage(imagedata);6 }7 8 /*9 -->10 1 <!doctype html> 11 2 <title>structured clone of ImageData</title> … … 15 6 <script> 16 7 (async_test()).step(function() { 17 var worker = new Worker(' #');8 var worker = new Worker('structured-clone-imagedata.js'); 18 9 var ctx = document.createElement('canvas').getContext('2d'); 19 10 var imagedata = ctx.getImageData(0, 0, 300, 150); … … 26 17 }); 27 18 </script> 28 <!--29 */30 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-message.html
r225593 r249719 1 <!--2 var err = new Error('foo');3 var date = new Date();4 // commented out bits are either tested elsewhere or not supported yet. or uncloneable.5 var tests = [undefined, null, false, true, 1, NaN, Infinity, 'foo', date, /foo/, /* ImageData, File, FileData, FileList,*/ null/*self*/,6 [undefined, null, false, true, 1, NaN, Infinity, 'foo', /*date, /foo/,*/ null/*self*/, /*[], {},*/ null/*err*/],7 {a:undefined, b:null, c:false, d:true, e:1, f:NaN, g:Infinity, h:'foo', /*i:date, j:/foo/,*/ k:null/*self*/, /*l:[], m:{},*/ n:null/*err*/},8 null/*err*/];9 for (var i = 0; i < tests.length; ++i) {10 try {11 postMessage(tests[i]);12 } catch(e) {13 postMessage(''+e);14 }15 }16 /*17 -->18 1 <!doctype html> 19 2 <title>structured clone of message</title> … … 46 29 47 30 wrapper_test.step(function() { 48 var worker = new Worker(' #');31 var worker = new Worker('structured-clone-message.js'); 49 32 var i = 0; 50 33 worker.onmessage = function(e) { … … 54 37 }); 55 38 </script> 56 <!--57 */58 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/event-ports-dedicated.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/event-ports-dedicated.js 18 19 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/imagedata-cloned-canvas-in-array.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/imagedata-cloned-canvas-in-array.js 19 21 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/message-event.html 20 22 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/message-event.js 21 23 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/return-value.worker.js 24 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-dictionary.html 25 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-dictionary.js 22 26 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null-in-array.html 27 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null-in-array.js 23 28 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null.html 29 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-null.js 24 30 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-undefined.html 31 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/second-argument-undefined.js 25 32 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/setting-postMessage.html 33 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/setting-postMessage.js 26 34 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-imagedata.html 35 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-imagedata.js 27 36 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-message.html 37 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/postMessage/structured-clone-message.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/DedicatedWorkerGlobalScope/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/name/getting.html
r225593 r249719 1 <!--2 addEventListener('connect', function(e) {3 var passed;4 switch (location.hash) {5 case '#1': passed = name == ''; break;6 case '#2': passed = name == 'a'; break;7 case '#3': passed = name == '0'; break;8 }9 e.ports[0].postMessage(passed);10 }, false);11 /*12 -->13 1 <!doctype html> 14 2 <title>getting name</title> … … 17 5 <div id="log"></div> 18 6 <script> 19 var tests = [[' #1', ''], ['#2', 'a'], ['#3', -0]];7 var tests = [['getting.js#1', ''], ['getting.js#2', 'a'], ['getting.js#3', -0]]; 20 8 tests.forEach(function(t) { 21 9 async_test(function() { … … 28 16 }); 29 17 </script> 30 <!--31 */32 //-->33 34 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/name/setting.html
r225593 r249719 1 <!--2 addEventListener('connect', function(e) {3 name = 1;4 e.ports[0].postMessage(name);5 }, false);6 /*7 -->8 1 <!doctype html> 9 2 <title>setting name</title> … … 13 6 <script> 14 7 async_test(function() { 15 var w1 = new SharedWorker(' #1', 'x');8 var w1 = new SharedWorker('setting.js#1', 'x'); 16 9 w1.port.addEventListener('message', this.step_func(function(e) { 17 assert_equals(e.data, 'x');10 assert_equals(e.data, 1); 18 11 this.done(); 19 12 }), false); … … 21 14 }); 22 15 </script> 23 <!--24 */25 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/name/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/name/getting.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/name/getting.js 18 19 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/name/setting.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/name/setting.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/onconnect.html
r225593 r249719 1 <!--2 var results = [];3 try {4 self.onconnect = 1;5 results.push(String(onconnect));6 } catch(e) {7 results.push(''+e);8 }9 try {10 self.onconnect = {handleEvent:function(){}};11 results.push(String(onconnect));12 } catch(e) {13 results.push(''+e);14 }15 var f = function(e) {16 results.push(e.data);17 e.ports[0].postMessage(results);18 };19 onconnect = f;20 results.push(typeof onconnect);21 /*22 -->23 1 <!doctype html> 24 2 <title>onconnect</title> … … 28 6 <script> 29 7 async_test(function() { 30 var w1 = new SharedWorker(' #', '');8 var w1 = new SharedWorker('onconnect.js', ''); 31 9 w1.port.addEventListener('message', this.step_func(function(e) { 32 10 assert_array_equals(e.data, ['null', 'null', 'function', '']); … … 35 13 }); 36 14 </script> 37 <!--38 */39 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/onconnect.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/SharedWorkerGlobalScope/onconnect.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.html
r225593 r249719 1 <!--2 onmessage = function(e) {3 postMessage(1);4 throw new Error();5 }6 close();7 /*8 -->9 1 <!doctype html> 10 2 <title>close() and incoming message</title> … … 13 5 <div id="log"></div> 14 6 <script> 15 var worker = new Worker(' #');7 var worker = new Worker('incoming-message.js'); 16 8 worker.onmessage = function(e) { 17 9 assert_unreached("Got message"); … … 23 15 setTimeout(done, 2000); 24 16 </script> 25 <!--26 */27 //-->28 29 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/sending-messages.html
r225593 r249719 1 <!--2 postMessage(1);3 close();4 postMessage(2);5 /*6 -->7 1 <!doctype html> 8 2 <title>close() and sending messages</title> … … 12 6 <script> 13 7 async_test(function() { 14 var worker = new Worker(' #');8 var worker = new Worker('sending-messages.js'); 15 9 var i = 0; 16 10 worker.onmessage = this.step_func(function(e) { … … 23 17 }); 24 18 </script> 25 <!--26 */27 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html
r225593 r249719 1 <!--2 var interval1 = setInterval(function() {3 clearInterval(interval1);4 postMessage(1);5 throw new Error();6 }, 10);7 close();8 var interval2 = setInterval(function() {9 clearInterval(interval2);10 postMessage(1);11 throw new Error();12 }, 10);13 /*14 -->15 1 <!doctype html> 16 2 <title>close() and setInterval</title> … … 19 5 <div id="log"></div> 20 6 <script> 21 var worker = new Worker(' #');7 var worker = new Worker('setInterval.js'); 22 8 worker.onmessage = function(e) { 23 9 assert_unreached("Got message"); … … 28 14 setTimeout(done, 2000); 29 15 </script> 30 <!--31 */32 //-->33 34 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.html
r225593 r249719 1 <!--2 function x() {3 postMessage(1);4 throw new Error();5 }6 setTimeout(x, 0);7 close();8 setTimeout(x, 0);9 /*10 -->11 1 <!doctype html> 12 2 <title>close() and setTimeout</title> … … 15 5 <div id="log"></div> 16 6 <script> 17 var worker = new Worker(' #');7 var worker = new Worker('setTimeout.js'); 18 8 worker.onmessage = function(e) { 19 9 assert_unreached("Got message"); … … 24 14 setTimeout(done, 2000); 25 15 </script> 26 <!--27 */28 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.js 18 19 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/sending-messages.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/sending-messages.js 19 21 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html 22 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setInterval.js 20 23 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.html 24 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/members.html
r225593 r249719 1 <!--2 postMessage([null, location.href, location.protocol, location.host,3 location.hostname, location.port, location.pathname,4 location.search, location.hash]);5 /*6 -->7 1 <!doctype html> 8 2 <title>members of WorkerLocation</title> … … 12 6 <script> 13 7 async_test(function() { 14 var worker = new Worker(' #');8 var worker = new Worker('members.js'); 15 9 worker.onmessage = this.step_func(function(e) { 16 10 assert_equals(e.data[0], null); 17 assert_equals(e.data[1], location.href + '#', 'href');11 assert_equals(e.data[1], location.href.replace('.html', '.js'), 'href'); 18 12 assert_equals(e.data[2], location.protocol, 'protocol'); 19 13 assert_equals(e.data[3], location.host, 'host'); 20 14 assert_equals(e.data[4], location.hostname, 'hostname'); 21 15 assert_equals(e.data[5], location.port, 'port'); 22 assert_equals(e.data[6], location.pathname , 'pathname');16 assert_equals(e.data[6], location.pathname.replace('.html', '.js'), 'pathname'); 23 17 assert_equals(e.data[7], location.search, 'search'); 24 18 assert_equals(e.data[8], '', 'hash'); … … 27 21 }); 28 22 </script> 29 <!--30 */31 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect-expected.txt
r225593 r249719 1 1 2 FAIL location with a worker in separate file that redirects assert_equals: expected "http://localhost:8800/workers/interfaces/WorkerGlobalScope/location/post-location-members.js?a" but got "http://localhost:8800/workers/interfaces/WorkerGlobalScope/location/helper-redirect.py?fail"2 FAIL WorkerLocation with redirects: classic dedicated workers assert_equals: expected "http://localhost:8800/workers/interfaces/WorkerGlobalScope/location/post-location-members.js?a" but got "http://localhost:8800/workers/interfaces/WorkerGlobalScope/location/helper-redirect.py?fail" 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect-module.html
r249718 r249719 1 <!--2 /*3 -->4 1 <!doctype html> 5 <title> location with a worker in separate file that redirects</title>2 <title>WorkerLocation with redirects: module dedicated workers</title> 6 3 <script src="/resources/testharness.js"></script> 7 4 <script src="/resources/testharnessreport.js"></script> … … 9 6 <script> 10 7 async_test(function() { 11 var worker = new Worker('helper-redirect.py?fail' );8 var worker = new Worker('helper-redirect.py?fail', {type: 'module'}); 12 9 worker.onmessage = this.step_func_done(function(e) { 13 10 assert_equals(e.data[0], location.href.replace(/\/[^\/]+$/, '/post-location-members.js?a')); … … 22 19 }); 23 20 </script> 24 <!--25 */26 //-->27 28 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect.html
r225593 r249719 3 3 --> 4 4 <!doctype html> 5 <title> location with a worker in separate file that redirects</title>5 <title>WorkerLocation with redirects: classic dedicated workers</title> 6 6 <script src="/resources/testharness.js"></script> 7 7 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/returns-same-object.html
r225593 r249719 1 <!--2 postMessage(location === location);3 /*4 -->5 1 <!doctype html> 6 2 <title>location === location</title> … … 10 6 <script> 11 7 async_test(function() { 12 var worker = new Worker(' #');8 var worker = new Worker('returns-same-object.js'); 13 9 worker.onmessage = this.step_func(function(e) { 14 10 assert_true(e.data); … … 17 13 }); 18 14 </script> 19 <!--20 */21 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/setting-members.html
r225593 r249719 1 <!--2 var exceptions = [];3 try { location.href = 1; } catch(e) { exceptions.push('href'); }4 try { location.protocol = 1; } catch(e) { exceptions.push('protocol'); }5 try { location.host = 1; } catch(e) { exceptions.push('host'); }6 try { location.hostname = 1; } catch(e) { exceptions.push('hostname');}7 try { location.port = 1; } catch(e) { exceptions.push('port'); }8 try { location.pathname = 1; } catch(e) { exceptions.push('pathname'); }9 try { location.search = 1; } catch(e) { exceptions.push('search'); }10 try { location.hash = 1; } catch(e) { exceptions.push('hash'); }11 12 postMessage([null, location.href, location.protocol, location.host,13 location.hostname, location.port, location.pathname,14 location.search, location.hash, exceptions]);15 /*16 -->17 1 <!doctype html> 18 2 <title>setting members of WorkerLocation</title> … … 22 6 <script> 23 7 async_test(function() { 24 var worker = new Worker(' #');8 var worker = new Worker('setting-members.js'); 25 9 worker.onmessage = this.step_func(function(e) { 26 10 assert_equals(e.data[0], null); 27 assert_equals(e.data[1], location.href + '#', 'href');11 assert_equals(e.data[1], location.href.replace('.html', '.js'), 'href'); 28 12 assert_equals(e.data[2], location.protocol, 'protocol'); 29 13 assert_equals(e.data[3], location.host, 'host'); 30 14 assert_equals(e.data[4], location.hostname, 'hostname'); 31 15 assert_equals(e.data[5], location.port, 'port'); 32 assert_equals(e.data[6], location.pathname , 'pathname');16 assert_equals(e.data[6], location.pathname.replace('.html', '.js'), 'pathname'); 33 17 assert_equals(e.data[7], location.search, 'search'); 34 18 assert_equals(e.data[8], '', 'hash'); … … 38 22 }); 39 23 </script> 40 <!--41 */42 //-->43 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/helper-redirect.py 18 18 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/members.html 19 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/members.js 19 20 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/post-location-members.js 21 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect-module.html 22 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect-sharedworker.html 20 23 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect.html 24 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/redirect.js 21 25 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/returns-same-object.html 26 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/returns-same-object.js 22 27 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/setting-members.html 28 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/setting-members.js 23 29 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/location/worker-separate-file.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/exception-in-onerror-expected.txt
r225593 r249719 1 CONSOLE MESSAGE: line 3: ReferenceError: Can't find variable: y1 CONSOLE MESSAGE: line 2: ReferenceError: Can't find variable: y 2 2 3 3 PASS onerror, "not handled" with an error in the onerror function -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/exception-in-onerror.html
r225593 r249719 1 <!--2 onerror = function(a, b, c, d) {3 y(); // the error is "not handled"4 }5 function x() {6 y();7 }8 x();9 /*10 -->11 1 <!doctype html> 12 2 <title>onerror, "not handled" with an error in the onerror function</title> … … 16 6 <script> 17 7 async_test(function() { 18 var worker = new Worker(' #');8 var worker = new Worker('exception-in-onerror.js'); 19 9 worker.onerror = this.step_func(function(e) { 20 10 assert_true(e instanceof ErrorEvent, 'e instanceof ErrorEvent'); 21 11 assert_equals(typeof e.message, 'string', 'typeof e.message'); 22 assert_equals(e.filename, document.URL +'#', 'e.filename');12 assert_equals(e.filename, document.URL.replace('.html', '.js'), 'e.filename'); 23 13 assert_equals(typeof e.lineno, 'number', 'typeof e.lineno'); 24 14 assert_equals(typeof e.colno, 'number', 'typeof e.column'); … … 28 18 }); 29 19 </script> 30 <!--31 */32 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/handled.html
r225593 r249719 1 <!--2 onerror = function(a, b, c, d) {3 postMessage([a, b, c, d]);4 return true; // the error is "handled"5 }6 function x() {7 y();8 }9 x();10 /*11 -->12 1 <!doctype html> 13 2 <title>onerror, "handled"</title> … … 17 6 <script> 18 7 async_test(function() { 19 var worker = new Worker(' #');8 var worker = new Worker('handled.js'); 20 9 worker.onmessage = this.step_func(function(e) { 21 10 assert_equals(typeof e.data[0], 'string', 'first argument'); 22 assert_equals(e.data[1], document.URL +'#', 'second argument');11 assert_equals(e.data[1], document.URL.replace('.html', '.js'), 'second argument'); 23 12 assert_equals(typeof e.data[2], 'number', 'third argument'); 24 13 assert_equals(typeof e.data[3], 'number', 'fourth argument'); … … 32 21 }); 33 22 </script> 34 <!--35 */36 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/not-handled.html
r225593 r249719 1 <!--2 onerror = function(a, b, c, d) {3 return false; // the error is "not handled"4 }5 function x() {6 y();7 }8 x();9 /*10 -->11 1 <!doctype html> 12 2 <title>onerror, "not handled"</title> … … 16 6 <script> 17 7 async_test(function() { 18 var worker = new Worker(' #');8 var worker = new Worker('not-handled.js'); 19 9 worker.onerror = this.step_func(function(e) { 20 10 assert_true(e instanceof ErrorEvent, 'e instanceof ErrorEvent'); 21 11 assert_equals(typeof e.message, 'string', 'typeof e.message'); 22 assert_equals(e.filename, document.URL +'#', 'e.filename');12 assert_equals(e.filename, document.URL.replace('.html', '.js'), 'e.filename'); 23 13 assert_equals(typeof e.lineno, 'number', 'typeof e.lineno'); 24 14 assert_equals(typeof e.colno, 'number', 'typeof e.column'); … … 28 18 }); 29 19 </script> 30 <!--31 */32 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/propagate-to-window-onerror.html
r225593 r249719 1 <!--2 function x() {3 y();4 }5 x();6 /*7 -->8 1 <!doctype html> 9 2 <title>onerror, "not handled" with only window.onerror defined</title> … … 16 9 }); 17 10 async_test(function() { 18 var worker = new Worker(' #');11 var worker = new Worker('propagate-to-window-onerror.js'); 19 12 window.onerror = this.step_func(function(a, b, c, d) { 20 13 assert_equals(typeof a, 'string', 'first argument'); 21 assert_equals(b, document.URL +'#', 'second argument');14 assert_equals(b, document.URL.replace('.html', '.js'), 'second argument'); 22 15 assert_equals(typeof c, 'number', 'third argument'); 23 16 assert_equals(typeof d, 'number', 'fourth argument'); … … 27 20 }); 28 21 </script> 29 <!--30 */31 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/exception-in-onerror.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/exception-in-onerror.js 18 19 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/handled.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/handled.js 19 21 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/not-handled.html 22 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/not-handled.js 20 23 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/propagate-to-window-onerror.html 24 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/onerror/propagate-to-window-onerror.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/self.html
r225593 r249719 1 <!--2 var results = [];3 function check(func, msg) {4 try {5 results.push([func(), msg]);6 } catch(ex) {7 results.push([String(ex), msg]);8 }9 }10 check(function() { return self === self; }, 'self === self');11 check(function() { return self instanceof WorkerGlobalScope; }, 'self instanceof WorkerGlobalScope');12 check(function() { return 'self' in self; }, '\'self\' in self');13 check(function() {14 var x = self;15 self = 1;16 return x === self;17 }, 'self = 1');18 postMessage(results);19 /*20 -->21 1 <!doctype html> 22 2 <title>self</title> … … 26 6 <script> 27 7 async_test(function() { 28 var worker = new Worker(' #');8 var worker = new Worker('self.js'); 29 9 worker.onmessage = this.step_func(function(e) { 30 10 for (var i = 0; i < e.data.length; ++i) { … … 35 15 }); 36 16 </script> 37 <!--38 */39 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/self.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerGlobalScope/self.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/001.html
r225593 r249719 1 <!--2 setTimeout(function() { postMessage(1) }, 10);3 /*4 -->5 1 <!doctype html> 6 2 <title>setTimeout</title> … … 10 6 <script> 11 7 async_test(function() { 12 var worker = new Worker(' #');8 var worker = new Worker('001.js'); 13 9 worker.onmessage = this.step_func(function(e) { 14 10 assert_equals(e.data, 1); … … 17 13 }); 18 14 </script> 19 <!--20 */21 //-->22 23 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/002.html
r225593 r249719 1 <!--2 var t = setTimeout(function() { postMessage(1); }, 10);3 clearTimeout(t);4 /*5 -->6 1 <!doctype html> 7 2 <title>clearTimeout</title> … … 11 6 <script> 12 7 async_test(function() { 13 var worker = new Worker(' #');8 var worker = new Worker('002.js'); 14 9 var gotMessage = false; 15 10 worker.onmessage = function() { gotMessage = true; }; … … 17 12 }); 18 13 </script> 19 <!--20 */21 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/003.html
r225593 r249719 1 <!--2 setInterval(function() { postMessage(1); }, 10);3 /*4 -->5 1 <!doctype html> 6 2 <title>setInterval</title> … … 10 6 <script> 11 7 async_test(function() { 12 var worker = new Worker(' #');8 var worker = new Worker('003.js'); 13 9 worker.onmessage = this.step_func(function(e) { 14 10 assert_equals(e.data, 1); … … 17 13 }); 18 14 </script> 19 <!--20 */21 //-->22 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/004.html
r225593 r249719 1 <!--2 var t = setInterval(function() {3 postMessage(1);4 }, 10);5 clearInterval(t);6 /*7 -->8 1 <!doctype html> 9 2 <title>clearInterval</title> … … 13 6 <script> 14 7 async_test(function() { 15 var worker = new Worker(' #');8 var worker = new Worker('004.js'); 16 9 var i = 0; 17 10 worker.onmessage = function() { i++; } … … 19 12 }); 20 13 </script> 21 <!--22 */23 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/005.html
r249718 r249719 1 <!--2 setTimeout(function() { postMessage(1) }, 10);3 /*4 -->5 1 <!doctype html> 6 <title>set Timeout</title>2 <title>setInterval when closing</title> 7 3 <script src="/resources/testharness.js"></script> 8 4 <script src="/resources/testharnessreport.js"></script> … … 10 6 <script> 11 7 async_test(function() { 12 var worker = new Worker(' #');8 var worker = new Worker('005.js'); 13 9 worker.onmessage = this.step_func(function(e) { 14 10 assert_equals(e.data, 1); … … 17 13 }); 18 14 </script> 19 <!--20 */21 //-->22 23 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/001.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/001.js 18 19 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/002.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/002.js 19 21 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/003.html 22 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/003.js 20 23 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/004.html 24 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/004.js 25 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/005.html 26 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/WindowTimers/005.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/003.html
r225593 r249719 1 <!--2 var x = 'a';3 try {4 importScripts('data:text/javascript,x+="b"',5 'data:text/javascript,x+="c"');6 } catch(e) {7 x += "d"8 }9 postMessage(x);10 /*11 -->12 1 <!doctype html> 13 2 <title>importScripts running scripts</title> … … 17 6 <script> 18 7 async_test(function() { 19 var worker = new Worker(' #');8 var worker = new Worker('003.js'); 20 9 worker.onmessage = this.step_func(function(e) { 21 10 assert_equals(e.data, "abc"); … … 24 13 }); 25 14 </script> 26 <!--27 */28 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/004.html
r225593 r249719 1 <!--2 var x = '';3 var exception;4 try {5 importScripts('data:text/javascript,x+="first script successful. "',6 'data:text/javascript,x+="FAIL (second script). "; for(;) break;', // doesn't compile7 'data:text/javascript,x+="FAIL (third script)"');8 } catch(ex) {9 if (ex instanceof SyntaxError)10 exception = true;11 else12 exception = String(ex);13 }14 postMessage([x, exception]);15 /*16 -->17 1 <!doctype html> 18 2 <title>importScripts broken script</title> … … 22 6 <script> 23 7 async_test(function() { 24 var worker = new Worker(' #');8 var worker = new Worker('004.js'); 25 9 worker.onmessage = this.step_func(function(e) { 26 10 assert_equals(e.data[0], "first script successful. "); … … 30 14 }); 31 15 </script> 32 <!--33 */34 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/005.html
r225593 r249719 1 <!--2 var x;3 var y;4 try {5 importScripts('data:text/javascript,x={',6 'data:text/javascript,}');7 } catch(e) {8 y = true;9 }10 postMessage([x, y]);11 /*12 -->13 1 <!doctype html> 14 2 <title>importScripts separate scripts</title> … … 18 6 <script> 19 7 async_test(function() { 20 var worker = new Worker(' #');8 var worker = new Worker('005.js'); 21 9 worker.onmessage = this.step_func(function(e) { 22 10 assert_equals(e.data[0], undefined); … … 26 14 }); 27 15 </script> 28 <!--29 */30 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/006.html
r225593 r249719 1 <!--2 var x;3 var y;4 var z;5 try {6 importScripts('data:text/javascript,x=1',7 'data:text/javascript,throw 2',8 'data:text/javascript,z=3');9 } catch(e) {10 y = e;11 }12 postMessage([x, y, z]);13 /*14 -->15 1 <!doctype html> 16 2 <title>importScripts uncaught exception</title> 3 <meta name="timeout" content="long"> 17 4 <script src="/resources/testharness.js"></script> 18 5 <script src="/resources/testharnessreport.js"></script> … … 20 7 <script> 21 8 async_test(function() { 22 var worker = new Worker(' #');9 var worker = new Worker('006.js'); 23 10 worker.onmessage = this.step_func(function(e) { 24 11 assert_equals(e.data[0], 1); … … 29 16 }); 30 17 </script> 31 <!--32 */33 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/007.html
r225593 r249719 1 <!--2 importScripts('data:text/javascript,postMessage(1)');3 postMessage(2);4 /*5 -->6 1 <!doctype html> 7 2 <title>postMessage in importScripts</title> … … 11 6 <script> 12 7 async_test(function() { 13 var worker = new Worker(' #');8 var worker = new Worker('007.js'); 14 9 var i = 0; 15 10 worker.onmessage = this.step_func(function(e) { … … 21 16 }); 22 17 </script> 23 <!--24 */25 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/008.html
r225593 r249719 1 <!--2 var log = postMessage;3 importScripts('data:text/javascript,function run() { log(true) }');4 run();5 /*6 -->7 1 <!doctype html> 8 2 <title>variables and functions crossing importScripts boundary</title> … … 12 6 <script> 13 7 async_test(function() { 14 var worker = new Worker(' #');8 var worker = new Worker('008.js'); 15 9 worker.onmessage = this.step_func(function(e) { 16 10 assert_true(e.data); … … 19 13 }); 20 14 </script> 21 <!--22 */23 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/009.html
r225593 r249719 1 <!--2 var log = postMessage;3 importScripts('data:text/javascript,function run() { for(var i = 0; i < 1000; ++i) { if (i == 500) log(true); } return 1; }');4 postMessage(run());5 /*6 -->7 1 <!doctype html> 8 2 <title>variables and functions crossing importScripts boundary, take 2</title> … … 12 6 <script> 13 7 async_test(function() { 14 var worker = new Worker(' #');8 var worker = new Worker('009.js'); 15 9 var i = 0; 16 10 worker.onmessage = this.step_func(function(e) { … … 25 19 }); 26 20 </script> 27 <!--28 */29 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/010.html
r225593 r249719 1 <!--2 // prevent recursion3 if ('beenThere' in self) {4 throw 'undefined stringified to the empty string';5 }6 beenThere = true;7 try {8 importScripts(undefined);9 postMessage(got);10 } catch(ex) {11 postMessage(String(ex));12 }13 /*14 -->15 1 <!doctype html> 16 2 <title>importScripts(undefined)</title> … … 20 6 <script> 21 7 async_test(function() { 22 var worker = new Worker(' #');8 var worker = new Worker('010.js'); 23 9 worker.onmessage = this.step_func(function(e) { 24 10 assert_equals(e.data, 'undefined'); … … 30 16 }); 31 17 </script> 32 <!--33 */34 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/011.html
r225593 r249719 1 <!--2 // prevent recursion3 if ('beenThere' in self) {4 throw 'null stringified to the empty string';5 }6 beenThere = true;7 try {8 importScripts(null);9 postMessage(got);10 } catch(ex) {11 postMessage(String(ex));12 }13 /*14 -->15 1 <!doctype html> 16 2 <title>importScripts(null)</title> … … 20 6 <script> 21 7 async_test(function() { 22 var worker = new Worker(' #');8 var worker = new Worker('011.js'); 23 9 worker.onmessage = this.step_func(function(e) { 24 10 assert_equals(e.data, 'null'); … … 30 16 }); 31 17 </script> 32 <!--33 */34 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/012.html
r225593 r249719 1 <!--2 // prevent recursion3 if ('beenThere' in self) {4 throw '1 stringified to the empty string';5 }6 beenThere = true;7 try {8 importScripts(1);9 postMessage(got);10 } catch(ex) {11 postMessage(String(ex));12 }13 /*14 -->15 1 <!doctype html> 16 2 <title>importScripts(1)</title> … … 20 6 <script> 21 7 async_test(function() { 22 var worker = new Worker(' #');8 var worker = new Worker('012.js'); 23 9 worker.onmessage = this.step_func(function(e) { 24 10 assert_equals(e.data, '1'); … … 30 16 }); 31 17 </script> 32 <!--33 */34 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 18 18 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/002.worker.js 19 19 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/003.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/003.js 20 21 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/004.html 22 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/004.js 21 23 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/005.html 24 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/005.js 22 25 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/006.html 26 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/006.js 23 27 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/007.html 28 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/007.js 24 29 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/008.html 30 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/008.js 25 31 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/009.html 32 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/009.js 26 33 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/010.html 34 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/010.js 27 35 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/011.html 36 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/011.js 28 37 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/012.html 38 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/012.js 29 39 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/1 40 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/1.headers 30 41 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/null 42 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/null.headers 31 43 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/undefined 44 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/undefined.headers -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/002.html
r225593 r249719 1 <!--2 postMessage(navigator.appName);3 /*4 -->5 1 <!doctype html> 6 2 <title>navigator.appName</title> … … 10 6 <script> 11 7 async_test(function() { 12 var worker = new Worker(' #');8 var worker = new Worker('002.js'); 13 9 worker.onmessage = this.step_func(function(e) { 14 10 assert_equals(e.data, navigator.appName); … … 17 13 }); 18 14 </script> 19 <!--20 */21 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/003.html
r225593 r249719 1 <!--2 postMessage(navigator.appVersion);3 /*4 -->5 1 <!doctype html> 6 2 <title>navigator.appVersion</title> … … 10 6 <script> 11 7 async_test(function() { 12 var worker = new Worker(' #');8 var worker = new Worker('003.js'); 13 9 worker.onmessage = this.step_func(function(e) { 14 10 assert_equals(e.data, navigator.appVersion); … … 17 13 }); 18 14 </script> 19 <!--20 */21 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/004.html
r225593 r249719 1 <!--2 postMessage(navigator.platform);3 /*4 -->5 1 <!doctype html> 6 2 <title>navigator.platform</title> … … 10 6 <script> 11 7 async_test(function() { 12 var worker = new Worker(' #');8 var worker = new Worker('004.js'); 13 9 worker.onmessage = this.step_func(function(e) { 14 10 assert_equals(e.data, navigator.platform); … … 17 13 }); 18 14 </script> 19 <!--20 */21 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/005.html
r225593 r249719 1 <!--2 postMessage(navigator.userAgent);3 /*4 -->5 1 <!doctype html> 6 2 <title>navigator.userAgent</title> … … 10 6 <script> 11 7 async_test(function() { 12 var worker = new Worker(' #');8 var worker = new Worker('005.js'); 13 9 worker.onmessage = this.step_func(function(e) { 14 10 assert_equals(e.data, navigator.userAgent); … … 17 13 }); 18 14 </script> 19 <!--20 */21 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/006.html
r225593 r249719 1 <!--2 postMessage(navigator.onLine);3 /*4 -->5 1 <!doctype html> 6 2 <title>navigator.onLine</title> … … 10 6 <script> 11 7 async_test(function() { 12 var worker = new Worker(' #');8 var worker = new Worker('006.js'); 13 9 worker.onmessage = this.step_func(function(e) { 14 10 assert_equals(e.data, navigator.onLine); … … 17 13 }); 18 14 </script> 19 <!--20 */21 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/007.html
r225593 r249719 1 <!--2 var log = [];3 var neverEncounteredValue = "This is not the value you are looking for.";4 for (x in navigator) {5 // this should silently fail and not throw per webidl6 navigator[x] = neverEncounteredValue;7 if (navigator[x] === neverEncounteredValue)8 log.push(x);9 }10 postMessage(log.join(', '));11 /*12 -->13 1 <!doctype html> 14 2 <title>readonlyness of members of Navigator</title> … … 18 6 <script> 19 7 async_test(function() { 20 var worker = new Worker(' #');8 var worker = new Worker('007.js'); 21 9 worker.onmessage = this.step_func(function(e) { 22 10 assert_equals(e.data, ''); … … 25 13 }); 26 14 </script> 27 <!--28 */29 //-->30 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/language.html
r225593 r249719 1 <!--2 postMessage(navigator.language);3 /*4 -->5 1 <!doctype html> 6 2 <title>navigator.language</title> … … 10 6 <script> 11 7 async_test(function() { 12 var worker = new Worker(' #');8 var worker = new Worker('language.js'); 13 9 worker.onmessage = this.step_func(function(e) { 14 10 assert_equals(e.data, navigator.language); … … 17 13 }); 18 14 </script> 19 <!--20 */21 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/002.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/002.js 18 19 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/003.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/003.js 19 21 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/004.html 22 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/004.js 20 23 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/005.html 24 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/005.js 21 25 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/006.html 26 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/006.js 22 27 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/007.html 28 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/007.js 23 29 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/language.html 30 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/navigator/language.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/name-property-expected.txt
r235159 r249719 1 CONSOLE MESSAGE: line 2 0: ReferenceError: Can't find variable: SharedWorker1 CONSOLE MESSAGE: line 22: Unhandled Promise Rejection: ReferenceError: Can't find variable: SharedWorker 2 2 3 FAIL Test the name property of shared and dedicated workers via the name constructor option ReferenceError: Can't find variable: SharedWorker 3 FAIL Test the name property of shared and dedicated workers via the name constructor option Can't find variable: SharedWorker 4 PASS Declaring name as an accidental global must not cause a harness error for DedicatedWorkerGlobalScope 4 5 PASS name property value for DedicatedWorkerGlobalScope 5 6 PASS name property is replaceable for DedicatedWorkerGlobalScope 6 PASS Declaring name as an accidental global must not cause a harness error for DedicatedWorkerGlobalScope7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/name-property.html
r225593 r249719 11 11 <script> 12 12 "use strict"; 13 setup({explicit_done: true}); 13 14 14 const worker = new Worker("support/name.js", { name: "my name" }); 15 fetch_tests_from_worker(worker); 15 (async function() { 16 const worker = new Worker("support/name.js", { name: "my name" }); 17 await fetch_tests_from_worker(worker); 16 18 17 const worker2 = new Worker("support/name-as-accidental-global.js");18 fetch_tests_from_worker(worker2);19 const worker2 = new Worker("support/name-as-accidental-global.js"); 20 await fetch_tests_from_worker(worker2); 19 21 20 const sharedWorker = new SharedWorker("support/name.js", { name: "my name" });21 fetch_tests_from_worker(sharedWorker);22 const sharedWorker = new SharedWorker("support/name.js", { name: "my name" }); 23 await fetch_tests_from_worker(sharedWorker); 22 24 23 const sharedWorker2 = new SharedWorker("support/name-as-accidental-global.js"); 24 fetch_tests_from_worker(sharedWorker2); 25 const sharedWorker2 = new SharedWorker("support/name-as-accidental-global.js"); 26 await fetch_tests_from_worker(sharedWorker2); 27 28 done(); 29 })(); 25 30 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/nested_worker.worker.js
r225593 r249719 7 7 assert_equals(evt.data, "Pass"); 8 8 worker1.terminate(); 9 done();10 9 }); 11 10 }, "Nested worker"); 11 done(); -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/non-automated/navigator-onLine.html
r225593 r249719 1 <!--2 if ('onmessage' in self) { // dedicated worker3 onmessage = function(e) {4 postMessage(navigator.onLine);5 }6 } else { // shared worker7 onconnect = function(e) {8 e.ports[0].onmessage = function(e) {9 this.postMessage(navigator.onLine);10 }11 }12 }13 /*14 -->15 1 <!doctype html> 16 2 <title>navigator.onLine in dedicated worker</title> … … 20 6 var pre = document.querySelector('pre'); 21 7 var worker, shared; 22 try { worker = new Worker(' #'); } catch(e) { pre.textContent += '\nnew Worker threw: ' + e.message; }8 try { worker = new Worker('navigator-onLine.js'); } catch(e) { pre.textContent += '\nnew Worker threw: ' + e.message; } 23 9 try { shared = new SharedWorker('#', ''); } catch(e) { pre.textContent += '\nnew SharedWorker threw: ' + e.message; } 24 10 if (worker) { … … 42 28 <p>As you go online and offline, the log should be filled with the correct status of navigator.onLine.</p> 43 29 <p><button onclick="update()">Check navigator.onLine status</button></p> 44 <!--45 */46 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/non-automated/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 25 25 /LayoutTests/imported/w3c/web-platform-tests/workers/non-automated/infinite-sibling.js 26 26 /LayoutTests/imported/w3c/web-platform-tests/workers/non-automated/navigator-onLine.html 27 /LayoutTests/imported/w3c/web-platform-tests/workers/non-automated/navigator-onLine.js 27 28 /LayoutTests/imported/w3c/web-platform-tests/workers/non-automated/post-a-1.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/opaque-origin.html
r225593 r249719 12 12 }; 13 13 fetch_tests_from_worker(channel.port1); 14 channel.port1.start(); 14 15 </script> 15 16 <iframe sandbox="allow-scripts" src="support/sandboxed-tests.html?pipe=sub"></iframe> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/001.html
r225593 r249719 1 <!--2 postMessage('å');3 /*4 -->5 1 <!doctype html> 6 2 <title>encoding, dedicated worker</title> … … 10 6 <script> 11 7 async_test(function() { 12 var worker = new Worker(' #');8 var worker = new Worker('001.js'); 13 9 worker.onmessage = this.step_func(function(e) { 14 10 assert_equals(e.data, '\u00e5'); … … 17 13 }); 18 14 </script> 19 <!--20 */21 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/002.html
r225593 r249719 1 <!--2 onconnect = function(e) {3 e.ports[0].postMessage('å');4 }5 /*6 -->7 1 <!doctype html> 8 2 <title>encoding, shared worker</title> … … 12 6 <script> 13 7 async_test(function() { 14 var worker = new SharedWorker(' #', '');8 var worker = new SharedWorker('002.js', ''); 15 9 worker.port.onmessage = this.step_func(function(e) { 16 10 assert_equals(e.data, '\u00e5'); … … 19 13 }); 20 14 </script> 21 <!--22 */23 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/003.html
r225593 r249719 1 <!--2 var xhr = new XMLHttpRequest();3 xhr.open('GET', '003-1.py?x=å', false);4 xhr.send();5 var passed = xhr.responseText == 'PASS';6 postMessage(passed);7 8 /*9 -->10 1 <!doctype html> 11 2 <title>URL encoding, dedicated worker</title> … … 15 6 <script> 16 7 async_test(function() { 17 var worker = new Worker(' #');8 var worker = new Worker('003.js'); 18 9 worker.onmessage = this.step_func(function(e) { 19 10 assert_true(e.data); … … 22 13 }); 23 14 </script> 24 <!--25 */26 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/004.html
r225593 r249719 1 <!--2 onconnect = function(e) {3 var xhr = new XMLHttpRequest();4 xhr.open('GET', '003-1.py?x=å', false);5 xhr.send();6 var passed = xhr.responseText == 'PASS';7 e.ports[0].postMessage(passed);8 }9 /*10 -->11 1 <!doctype html> 12 2 <title>URL encoding, shared worker</title> … … 16 6 <script> 17 7 async_test(function() { 18 var worker = new SharedWorker(' #');8 var worker = new SharedWorker('004.js'); 19 9 worker.port.onmessage = this.step_func(function(e) { 20 10 assert_true(e.data); … … 23 13 }); 24 14 </script> 25 <!--26 */27 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/001.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/001.html.headers 18 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/001.js 19 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/001.js.headers 19 20 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/002.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/002.html.headers 21 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/002.js 22 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/002.js.headers 21 23 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/003-1.py 22 24 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/003.html 25 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/003.js 23 26 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/004.html 27 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/004.js 24 28 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/encodings/004.worker.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/001.worker-expected.txt
r234846 r249719 11 11 PASS The ImageData interface object should be exposed. 12 12 PASS The ImageBitmap interface object should be exposed. 13 PASS The CanvasGradient interface object should be exposed. 14 PASS The CanvasPattern interface object should be exposed. 13 15 FAIL The CanvasPath interface object should be exposed. assert_own_property: expected property "CanvasPath" missing 16 FAIL The TextMetrics interface object should be exposed. assert_own_property: expected property "TextMetrics" missing 14 17 PASS The Path2D interface object should be exposed. 15 18 PASS The PromiseRejectionEvent interface object should be exposed. -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/001.worker.js
r225593 r249719 13 13 "ImageData", 14 14 "ImageBitmap", 15 "CanvasGradient", 16 "CanvasPattern", 15 17 "CanvasPath", 18 "TextMetrics", 16 19 "Path2D", 17 20 "PromiseRejectionEvent", -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/002.worker-expected.txt
r225593 r249719 9 9 PASS The HTMLCanvasElement interface object should not be exposed. 10 10 PASS The Path interface object should not be exposed. 11 PASS The TextMetrics interface object should not be exposed.12 11 PASS The CanvasProxy interface object should not be exposed. 13 12 PASS The CanvasRenderingContext2D interface object should not be exposed. 14 13 PASS The DrawingStyle interface object should not be exposed. 15 FAIL The CanvasGradient interface object should not be exposed. assert_false: expected false got true16 FAIL The CanvasPattern interface object should not be exposed. assert_false: expected false got true17 14 PASS The BeforeUnloadEvent interface object should not be exposed. 18 15 PASS The PopStateEvent interface object should not be exposed. -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/002.worker.js
r225593 r249719 11 11 "HTMLCanvasElement", 12 12 "Path", 13 "TextMetrics",14 13 "CanvasProxy", 15 14 "CanvasRenderingContext2D", 16 15 "DrawingStyle", 17 "CanvasGradient",18 "CanvasPattern",19 16 "BeforeUnloadEvent", 20 17 "PopStateEvent", -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.html
r225593 r249719 1 <!--2 onconnect = function(e) {3 var expected = [4 // https://html.spec.whatwg.org/5 "ApplicationCache",6 "WorkerGlobalScope",7 "SharedWorkerGlobalScope",8 "Worker",9 "SharedWorker",10 "MessagePort",11 "MessageEvent",12 "WorkerNavigator",13 "MessageChannel",14 "WorkerLocation",15 "ImageData",16 "ImageBitmap",17 "CanvasPath",18 "Path2D",19 "PromiseRejectionEvent",20 "EventSource",21 "WebSocket",22 "CloseEvent",23 "BroadcastChannel",24 // https://tc39.github.io/ecma262/25 "ArrayBuffer",26 "Int8Array",27 "Uint8Array",28 "Uint8ClampedArray",29 "Int16Array",30 "Uint16Array",31 "Int32Array",32 "Uint32Array",33 "Float32Array",34 "Float64Array",35 "DataView",36 // https://xhr.spec.whatwg.org/37 "XMLHttpRequestEventTarget",38 "XMLHttpRequestUpload",39 "XMLHttpRequest",40 "ProgressEvent",41 "FormData",42 // https://url.spec.whatwg.org/43 "URL",44 "URLSearchParams",45 // https://w3c.github.io/FileAPI/46 "File",47 "Blob",48 "FileList",49 "FileReader",50 "FileReaderSync",51 // https://dom.spec.whatwg.org/52 "EventTarget",53 "ErrorEvent",54 "Event",55 "CustomEvent",56 // http://heycam.github.io/webidl/57 "DOMException",58 // https://streams.spec.whatwg.org/59 "ReadableStream",60 "WritableStream",61 "ByteLengthQueuingStrategy",62 "CountQueuingStrategy",63 // http://w3c.github.io/IndexedDB/64 "IDBRequest",65 "IDBOpenDBRequest",66 "IDBVersionChangeEvent",67 "IDBFactory",68 "IDBDatabase",69 "IDBObjectStore",70 "IDBIndex",71 "IDBKeyRange",72 "IDBCursor",73 "IDBCursorWithValue",74 "IDBTransaction",75 ];76 var result = [];77 for (var i = 0; i < expected.length; ++i) {78 result.push([expected[i], expected[i] in self]);79 }80 e.ports[0].postMessage(result);81 }82 /*83 -->84 1 <!doctype html> 85 2 <title>available interface objects in shared worker</title> … … 89 6 <script> 90 7 setup(function() { 91 window.worker = new SharedWorker(' #');8 window.worker = new SharedWorker('003.js'); 92 9 worker.port.onmessage = function(e) { 93 10 var result = e.data; … … 101 18 }, {explicit_done: true}); 102 19 </script> 103 <!--104 */105 //-->106 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.js
r249718 r249719 1 <!--2 1 onconnect = function(e) { 3 2 var expected = [ … … 15 14 "ImageData", 16 15 "ImageBitmap", 16 "CanvasGradient", 17 "CanvasPattern", 17 18 "CanvasPath", 18 19 "Path2D", … … 80 81 e.ports[0].postMessage(result); 81 82 } 82 /*83 -->84 <!doctype html>85 <title>available interface objects in shared worker</title>86 <script src="/resources/testharness.js"></script>87 <script src="/resources/testharnessreport.js"></script>88 <div id=log></div>89 <script>90 setup(function() {91 window.worker = new SharedWorker('#');92 worker.port.onmessage = function(e) {93 var result = e.data;94 for (var i = 0; i < result.length; ++i) {95 test(function() {96 assert_true(result[i][1]);97 }, "The " + result[i][0] + " interface object should be exposed");98 }99 done();100 }101 }, {explicit_done: true});102 </script>103 <!--104 */105 //-->106 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.html
r225593 r249719 1 <!--2 onconnect = function(e) {3 var unexpected = [4 // https://html.spec.whatwg.org/5 "DedicatedWorkerGlobalScope",6 "AbstractView",7 "AbstractWorker",8 "Location",9 "Navigator",10 "DOMImplementation",11 "Audio",12 "HTMLCanvasElement",13 "Path",14 "TextMetrics",15 "CanvasProxy",16 "CanvasRenderingContext2D",17 "DrawingStyle",18 "CanvasGradient",19 "CanvasPattern",20 "PopStateEvent",21 "HashChangeEvent",22 "PageTransitionEvent",23 // https://streams.spec.whatwg.org/24 "ReadableStreamDefaultReader",25 "ReadableStreamBYOBReader",26 "ReadableStreamDefaultController",27 "ReadableByteStreamController",28 "WritableStreamDefaultWriter",29 "WritableStreamDefaultController",30 // http://w3c.github.io/IndexedDB/31 "IDBEnvironment",32 // https://www.w3.org/TR/2010/NOTE-webdatabase-20101118/33 "Database",34 // https://w3c.github.io/uievents/35 "UIEvent",36 "FocusEvent",37 "MouseEvent",38 "WheelEvent",39 "InputEvent",40 "KeyboardEvent",41 "CompositionEvent",42 ];43 var result = [];44 for (var i = 0; i < unexpected.length; ++i) {45 result.push([unexpected[i], unexpected[i] in self]);46 }47 e.ports[0].postMessage(result);48 }49 /*50 -->51 1 <!doctype html> 52 2 <title>unavailable interface objects in shared worker</title> … … 56 6 <script> 57 7 setup(function() { 58 window.worker = new SharedWorker(' #');8 window.worker = new SharedWorker('004.js'); 59 9 worker.port.onmessage = function(e) { 60 10 var result = e.data; … … 68 18 }, {explicit_done: true}); 69 19 </script> 70 <!--71 */72 //-->73 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.js
r249718 r249719 1 <!--2 1 onconnect = function(e) { 3 2 var unexpected = [ … … 16 15 "CanvasRenderingContext2D", 17 16 "DrawingStyle", 18 "CanvasGradient",19 "CanvasPattern",20 17 "PopStateEvent", 21 18 "HashChangeEvent", … … 47 44 e.ports[0].postMessage(result); 48 45 } 49 /*50 -->51 <!doctype html>52 <title>unavailable interface objects in shared worker</title>53 <script src="/resources/testharness.js"></script>54 <script src="/resources/testharnessreport.js"></script>55 <div id=log></div>56 <script>57 setup(function() {58 window.worker = new SharedWorker('#');59 worker.port.onmessage = function(e) {60 var result = e.data;61 for (var i = 0; i < result.length; ++i) {62 test(function() {63 assert_false(result[i][1]);64 }, "The " + result[i][0] + " interface object should not be exposed");65 }66 done();67 }68 }, {explicit_done: true});69 </script>70 <!--71 */72 //-->73 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 18 18 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/002.worker.js 19 19 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/003.js 20 21 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.html 22 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/interface-objects/004.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/001.html
r225593 r249719 1 <!--2 if ('onmessage' in self) { // dedicated worker3 onmessage = function(e) {4 postMessage(e.data);5 }6 } else { // shared worker7 onconnect = function(e) {8 e.ports[0].onmessage = function(e) {9 this.postMessage(e.data);10 }11 }12 }13 /*14 -->15 1 <!doctype html> 16 2 <title>dedicated and shared worker in same page</title> … … 20 6 <script> 21 7 async_test(function() { 22 var worker = new Worker(' #');8 var worker = new Worker('001.js'); 23 9 worker.onmessage = this.step_func(function(e) { 24 10 assert_equals(e.data, 'dedicated'); … … 28 14 }, 'dedicated'); 29 15 async_test(function() { 30 var shared = new SharedWorker(' #', '');16 var shared = new SharedWorker('001.js', ''); 31 17 shared.port.onmessage = this.step_func(function(e) { 32 18 assert_equals(e.data, 'shared'); … … 36 22 }, 'shared'); 37 23 </script> 38 <!--39 */40 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/002.html
r225593 r249719 1 <!--2 postMessage(1);3 /*4 -->5 1 <!doctype html> 6 2 <title>creating 3 sibling dedicated workers</title> … … 10 6 <script> 11 7 async_test(function(t) { 12 var w1 = new Worker(' #');13 var w2 = new Worker(' #');14 var w3 = new Worker(' #');8 var w1 = new Worker('002.js'); 9 var w2 = new Worker('002.js'); 10 var w3 = new Worker('002.js'); 15 11 var got = [false, false, false]; 16 12 var check_done = t.step_func(function() { … … 24 20 }); 25 21 </script> 26 <!--27 */28 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/003.html
r225593 r249719 1 <!--2 if (location.hash == '#1') {3 var w2 = new Worker('#2');4 w2.onmessage = function(e) {5 postMessage('1'+e.data);6 }7 } else if (location.hash == '#2') {8 var w3 = new Worker('#3');9 w3.onmessage = function(e) {10 postMessage('2'+e.data);11 }12 } else {13 postMessage('3');14 }15 16 /*17 -->18 1 <!doctype html> 19 2 <title>creating 3 nested dedicated workers</title> 3 <meta name="timeout" content="long"> 20 4 <script src="/resources/testharness.js"></script> 21 5 <script src="/resources/testharnessreport.js"></script> … … 23 7 <script> 24 8 async_test(function() { 25 var w1 = new Worker(' #1');9 var w1 = new Worker('003.js#1'); 26 10 w1.onmessage = this.step_func(function(e) { 27 11 assert_equals(e.data, '123'); 28 12 this.done(); 29 13 }); 14 w1.onerror = this.unreached_func("error"); 30 15 }); 31 16 </script> 32 <!--33 */34 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004-expected.txt
r225593 r249719 1 CONSOLE MESSAGE: line 1 0: ReferenceError: Can't find variable: SharedWorker1 CONSOLE MESSAGE: line 11: ReferenceError: Can't find variable: SharedWorker 2 2 CONSOLE MESSAGE: line 5: ReferenceError: Can't find variable: SharedWorker 3 3 CONSOLE MESSAGE: line 5: ReferenceError: Can't find variable: SharedWorker -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004.html
r225593 r249719 1 1 <!doctype html> 2 2 <title>shared worker with multiple documents</title> 3 <meta name="timeout" content="long"> 3 4 <script src="/resources/testharness.js"></script> 4 5 <script src="/resources/testharnessreport.js"></script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/005.html
r225593 r249719 31 31 this.done(); 32 32 }); 33 w1.onerror = this.unreached_func("error"); 33 34 }); 34 35 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/006.html
r225593 r249719 3 3 onconnect = function(e) { 4 4 var port = e.ports[0]; 5 onerror = e => { 6 port.postMessage(String(e)) 7 } 5 8 var w2 = new Worker('#2'); 6 9 w2.onmessage = function(e) { … … 29 32 this.done(); 30 33 }); 34 w1.onerror = this.unreached_func("error"); 31 35 }); 32 36 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/007.html
r225593 r249719 23 23 <!doctype html> 24 24 <title>shared worker in dedicated worker in shared worker</title> 25 <meta name="timeout" content="long"> 25 26 <script src="/resources/testharness.js"></script> 26 27 <script src="/resources/testharnessreport.js"></script> … … 33 34 this.done(); 34 35 }); 36 w1.onerror = this.unreached_func("error"); 35 37 }); 36 38 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/008-1.html
r225593 r249719 2 2 <title>008-1</title> 3 3 <script> 4 var w1 = new SharedWorker('008. html#');4 var w1 = new SharedWorker('008.js'); 5 5 w1.port.onmessage = function(e) { 6 6 e.ports[0].postMessage(2); -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/008.html
r225593 r249719 1 <!--2 var channel = new MessageChannel();3 var i = 0;4 onconnect = function(e) {5 i++;6 e.ports[0].postMessage(1, [channel['port' + i]]);7 }8 9 /*10 -->11 1 <!doctype html> 12 2 <title>messagechannel in shared worker</title> … … 18 8 var t = async_test(); 19 9 onload = t.step_func(function() { 20 var w1 = new SharedWorker(' #');10 var w1 = new SharedWorker('008.js'); 21 11 w1.port.onmessage = this.step_func(function(e) { 22 12 e.ports[0].onmessage = this.step_func(function(e) { … … 25 15 }); 26 16 }); 17 w1.onerror = this.unreached_func("error"); 27 18 }); 28 19 </script> 29 <!--30 */31 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/001.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/001.js 18 19 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/002.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/002.js 19 21 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/003.html 22 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/003.js 20 23 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004-1.html 21 24 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004-2.js … … 27 30 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/008-1.html 28 31 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/008.html 32 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/multiple-workers/008.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/navigation/001-1.html
r225593 r249719 1 <!--2 setInterval(function() { postMessage(new Date()) }, 10)3 /*4 -->5 1 <!doctype html> 6 2 <title>001-1</title> 7 3 <script> 8 4 onload = function() { 9 var worker = new Worker(' #');5 var worker = new Worker('001-1.js'); 10 6 worker.onmessage = function(e) { 11 7 var started = !!parent.date; … … 18 14 </script> 19 15 <a href='data:text/html,<title>foo</title><script>onload=function(){window.parent.postMessage({title: window.document.title}, "*")}</script>'>link</a> 20 <!--21 */22 //-->23 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/navigation/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/navigation/001-1.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/navigation/001-1.js 18 19 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/navigation/001.html 19 20 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/navigation/002.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/001.html
r225593 r249719 1 <!--2 var port;3 var timeout;4 onerror = function(a,b,c,d,e) {5 // will return undefined, thus the error is "not handled"6 // so error should be reported to the user, but this test doesn't check7 // that.8 // just make sure that this method is invoked with five arguments9 clearTimeout(timeout);10 var log = '';11 if (arguments.length != 5)12 log += 'got ' + arguments.length + ' arguments, expected 5. ';13 if (typeof a != 'string')14 log += 'first argument wasn\'t a string. ';15 if (b != location.href)16 log += 'second argument was ' + b + ', expected ' + location.href + '. ';17 if (typeof c != 'number')18 log += 'third argument wasn\'t a number. ';19 if (typeof d != 'number')20 log += 'fourth argument wasn\'t a number. ';21 if (e != 42)22 log += 'fifth argument wasn\'t the thrown exception. ';23 port.postMessage(log);24 }25 onconnect = function (e) {26 port = e.ports[0];27 timeout = setTimeout(function() { port.postMessage('self.onerror was not invoked'); }, 250);28 throw 42; // will "report the error"29 }30 31 32 /*33 -->34 1 <!doctype html> 35 2 <title>shared worker, not handled</title> … … 43 10 assert_unreached('window.onerror invoked: ' + a); 44 11 }); 45 var worker = new SharedWorker(' #', '');12 var worker = new SharedWorker('001.js', ''); 46 13 worker.port.onmessage = this.step_func_done(function(e) { 47 14 assert_equals(e.data, ''); … … 49 16 }); 50 17 </script> 51 <!--52 */53 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/001.js
r249718 r249719 1 <!--2 1 var port; 3 2 var timeout; … … 28 27 throw 42; // will "report the error" 29 28 } 30 31 32 /*33 -->34 <!doctype html>35 <title>shared worker, not handled</title>36 <script src="/resources/testharness.js"></script>37 <script src="/resources/testharnessreport.js"></script>38 <div id=log></div>39 <script>40 setup({allow_uncaught_exception:true});41 async_test(function() {42 window.onerror = this.step_func(function(a) {43 assert_unreached('window.onerror invoked: ' + a);44 });45 var worker = new SharedWorker('#', '');46 worker.port.onmessage = this.step_func_done(function(e) {47 assert_equals(e.data, '');48 });49 });50 </script>51 <!--52 */53 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/002.html
r225593 r249719 1 <!--2 var port;3 var timeout;4 addEventListener('error', function(e) {5 // event is not canceled, thus the error is "not handled"6 // so error should be reported to the user, but this test doesn't check7 // that.8 // just make sure that this event has the right properties9 clearTimeout(timeout);10 var log = '';11 if (!self.ErrorEvent || Object.getPrototypeOf(e) != ErrorEvent.prototype)12 log += 'event should be an ErrorEvent. ';13 if (e.bubbles)14 log += 'event should not bubble. ';15 if (!e.cancelable)16 log += 'event should be cancelable. ';17 if (!e.isTrusted)18 log += 'event should be trusted. ';19 if (typeof e.message != 'string')20 log += 'message wasn\'t a string. ';21 if (e.filename != location.href)22 log += 'filename was ' + e.filename + ', expected ' + location.href + '. ';23 if (typeof e.lineno != 'number')24 log += 'lineno wasn\'t a number. ';25 if (typeof e.colno != 'number')26 log += 'colno argument wasn\'t a number. ';27 if (e.error != 42)28 log += 'fifth argument wasn\'t the thrown exception. ';29 port.postMessage(log);30 }, false);31 onconnect = function (e) {32 port = e.ports[0];33 timeout = setTimeout(function() { port.postMessage('No error event fired'); }, 250);34 throw 42; // will "report the error"35 }36 37 38 /*39 -->40 1 <!doctype html> 41 2 <title>shared worker, addEventListener</title> … … 49 10 assert_unreached('window.onerror invoked: ' + a); 50 11 }); 51 var worker = new SharedWorker(' #', '');12 var worker = new SharedWorker('002.js', ''); 52 13 worker.port.onmessage = this.step_func_done(function(e) { 53 14 assert_equals(e.data, ''); … … 55 16 }); 56 17 </script> 57 <!--58 */59 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/002.js
r249718 r249719 1 <!--2 1 var port; 3 2 var timeout; … … 34 33 throw 42; // will "report the error" 35 34 } 36 37 38 /*39 -->40 <!doctype html>41 <title>shared worker, addEventListener</title>42 <script src="/resources/testharness.js"></script>43 <script src="/resources/testharnessreport.js"></script>44 <div id=log></div>45 <script>46 setup({allow_uncaught_exception:true});47 async_test(function() {48 window.onerror = this.step_func(function(a) {49 assert_unreached('window.onerror invoked: ' + a);50 });51 var worker = new SharedWorker('#', '');52 worker.port.onmessage = this.step_func_done(function(e) {53 assert_equals(e.data, '');54 });55 });56 </script>57 <!--58 */59 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/003.html
r225593 r249719 1 <!--2 onconnect = function (e) {3 setTimeout(function() { e.ports[0].postMessage(''); }, 250);4 y(); // will "report the error"5 // onerror is null so it'll be "not handled", and the error should be6 // reported to the user, although we don't test that here7 // make sure we don't fire an error event on the message port or the8 // SharedWorker object9 }10 11 12 /*13 -->14 1 <!doctype html> 15 2 <title>shared worker, no error event on worker or port</title> … … 23 10 assert_unreached('window.onerror invoked: ' + a); 24 11 }); 25 var worker = new SharedWorker(' #', '');12 var worker = new SharedWorker('003.js', ''); 26 13 worker.addEventListener('error', this.step_func(function(e) { 27 14 assert_unreached('error on worker'); … … 35 22 }); 36 23 </script> 37 <!--38 */39 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/004-1.html
r225593 r249719 5 5 assert_unreached('(inner) window.onerror invoked: ' + a); 6 6 }); 7 var worker = new SharedWorker('004. html#', '');7 var worker = new SharedWorker('004.js', ''); 8 8 worker.addEventListener('error', this.step_func(function(e) { 9 9 parent.assert_unreached('(inner) error on worker'); -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/004.html
r225593 r249719 1 <!--2 var i = 0;3 onconnect = function (e) {4 i++;5 setTimeout(function() { e.ports[0].postMessage(i); }, 250);6 y(); // will "report the error"7 }8 9 /*10 -->11 1 <!doctype html> 12 2 <title>shared worker in two documents and window.onerror</title> … … 20 10 assert_unreached('(outer) window.onerror invoked: ' + a); 21 11 }); 22 var worker = new SharedWorker(' #', '');12 var worker = new SharedWorker('004.js', ''); 23 13 worker.addEventListener('error', this.step_func(function(e) { 24 14 assert_unreached('(outer) error on worker'); … … 35 25 }); 36 26 </script> 37 <!--38 */39 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/001.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/001.js 18 19 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/002.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/002.js 19 21 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/003.html 22 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/003.js 20 23 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/004-1.html 21 24 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/004.html 25 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/reporting-errors/004.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/run-a-worker/001.html
r225593 r249719 1 <!--2 postMessage(this === self);3 4 /*5 -->6 1 <!doctype html> 7 2 <title>worker global scope, dedicated worker</title> … … 11 6 <script> 12 7 async_test(function() { 13 var worker = new Worker(' #');8 var worker = new Worker('001.js'); 14 9 worker.onmessage = this.step_func(function(e) { 15 10 assert_true(e.data); … … 18 13 }); 19 14 </script> 20 <!--21 */22 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/run-a-worker/002.html
r225593 r249719 1 <!--2 var passed = this === self;3 onconnect = function(e) {4 e.ports[0].postMessage(passed);5 }6 /*7 -->8 1 <!doctype html> 9 2 <title>worker global scope, shared worker</title> … … 13 6 <script> 14 7 async_test(function() { 15 var worker = new SharedWorker(' #');8 var worker = new SharedWorker('002.js'); 16 9 worker.port.onmessage = this.step_func(function(e) { 17 10 assert_true(e.data); … … 20 13 }); 21 14 </script> 22 <!--23 */24 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/run-a-worker/003.html
r225593 r249719 3 3 <script src="/resources/testharness.js"></script> 4 4 <script src="/resources/testharnessreport.js"></script> 5 <div id=log></div>6 5 <script> 7 setup({allow_uncaught_exception: true}); 8 9 async_test(function() { 10 var worker = new Worker('404_worker'); 11 worker.onerror = this.step_func(function(e) { this.done(); }); 6 async_test(t => { 7 const worker = new Worker('404_worker'); 8 worker.onerror = e => t.done(); 12 9 }, 'worker'); 13 10 14 async_test(function() { 15 var shared = new SharedWorker('404_shared'); 16 // NOTE: this handler will not fire, as runtime scripting errors 17 // are not forwarded to SharedWorker objects, but instead reported to the user directly. 18 shared.onerror = this.step_func(function(e) { assert_unreached(); }, shared, 'error'); 19 step_timeout(this.step_func(function() { this.done(); }), 5000); 11 async_test(t => { 12 const shared = new SharedWorker('404_shared'); 13 shared.onerror = e => t.done(); 20 14 }, 'shared'); 21 15 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/run-a-worker/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/run-a-worker/001.html 18 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/run-a-worker/001.js 18 19 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/run-a-worker/002.html 20 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/run-a-worker/002.js 19 21 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/run-a-worker/003.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/structured-clone/w3c-import.log
r232043 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/001.html
r225593 r249719 1 <!--2 var xhr = new XMLHttpRequest();3 var log = '';4 xhr.onreadystatechange = function(e) {5 if (this.readyState == 4) {6 if (this.responseXML != null)7 log += 'responseXML was not null. ';8 if (this.responseText != '<x>foo</x>')9 log += 'responseText was ' + this.responseText + ', expected <x>foo</x>. ';10 postMessage(log);11 }12 }13 xhr.open('GET', '001-1.xml', true);14 xhr.send();15 /*16 -->17 1 <!doctype html> 18 2 <title>async XMLHttpRequest in dedicated worker</title> … … 23 7 var t = async_test(); 24 8 function runtest() { 25 var worker = new Worker(' #');9 var worker = new Worker('001.js'); 26 10 worker.onmessage = this.step_func(function(e) { 27 11 assert_equals(e.data, ''); … … 31 15 </script> 32 16 <iframe src=001-1.xml onload="t.step(runtest);"></iframe> 33 <!--34 */35 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/002.html
r225593 r249719 1 <!--2 var xhr = new XMLHttpRequest();3 var log = '';4 xhr.open('GET', '001-1.xml', false);5 xhr.send();6 if (xhr.responseXML != null)7 log += 'responseXML was not null. ';8 if (xhr.responseText != '<x>foo</x>')9 log += 'responseText was ' + this.responseText + ', expected <x>foo</x>. ';10 postMessage(log);11 12 /*13 -->14 1 <!doctype html> 15 2 <title>sync XMLHttpRequest in dedicated worker</title> … … 20 7 var t = async_test(); 21 8 function runtest() { 22 var worker = new Worker(' #');9 var worker = new Worker('002.js'); 23 10 worker.onmessage = this.step_func(function(e) { 24 11 assert_equals(e.data, ''); … … 28 15 </script> 29 16 <iframe src=001-1.xml onload="t.step(runtest);"></iframe> 30 <!--31 */32 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/003.html
r225593 r249719 1 <!--2 onconnect = function(e) {3 var xhr = new XMLHttpRequest();4 var log = '';5 var port = e.ports[0];6 var postMessage = port.postMessage;7 xhr.onreadystatechange = function(e) {8 if (this.readyState == 4) {9 if (this.responseXML != null)10 log += 'responseXML was not null. ';11 if (this.responseText && this.responseText != '<x>foo</x>')12 log += 'responseText was ' + this.responseText + ', expected <x>foo</x>. ';13 postMessage.call(port, log);14 }15 }16 xhr.open('GET', '001-1.xml', true);17 xhr.send();18 }19 20 /*21 -->22 1 <!doctype html> 23 2 <title>async XMLHttpRequest in shared worker</title> … … 28 7 var t = async_test(); 29 8 function runtest() { 30 var worker = new SharedWorker(' #', '');9 var worker = new SharedWorker('003.js', ''); 31 10 worker.port.onmessage = this.step_func(function(e) { 32 11 assert_equals(e.data, ''); … … 36 15 </script> 37 16 <iframe src=001-1.xml onload="t.step(runtest);"></iframe> 38 <!--39 */40 //-->41 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/003.js
r249718 r249719 1 <!--2 1 onconnect = function(e) { 3 2 var xhr = new XMLHttpRequest(); … … 17 16 xhr.send(); 18 17 } 19 20 /*21 -->22 <!doctype html>23 <title>async XMLHttpRequest in shared worker</title>24 <script src="/resources/testharness.js"></script>25 <script src="/resources/testharnessreport.js"></script>26 <div id=log></div>27 <script>28 var t = async_test();29 function runtest() {30 var worker = new SharedWorker('#', '');31 worker.port.onmessage = this.step_func(function(e) {32 assert_equals(e.data, '');33 this.done();34 });35 }36 </script>37 <iframe src=001-1.xml onload="t.step(runtest);"></iframe>38 <!--39 */40 //-->41 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/004.html
r225593 r249719 1 <!--2 onconnect = function(e) {3 var xhr = new XMLHttpRequest();4 var log = '';5 xhr.open('GET', '001-1.xml', false);6 xhr.send();7 if (xhr.responseXML != null)8 log += 'responseXML was not null. ';9 if (xhr.responseText != '<x>foo</x>')10 log += 'responseText was ' + xhr.responseText + ', expected <x>foo</x>. ';11 e.ports[0].postMessage(log);12 }13 14 /*15 -->16 1 <!doctype html> 17 2 <title>sync XMLHttpRequest in shared worker</title> … … 22 7 var t = async_test(); 23 8 function runtest() { 24 var worker = new SharedWorker(' #', '');9 var worker = new SharedWorker('004.js', ''); 25 10 worker.port.onmessage = this.step_func(function(e) { 26 11 assert_equals(e.data, ''); … … 30 15 </script> 31 16 <iframe src=001-1.xml onload="t.step(runtest);"></iframe> 32 <!--33 */34 //--> -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/support/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 17 17 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/001-1.xml 18 18 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/001.html 19 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/001.js 19 20 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/002.html 21 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/002.js 20 22 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/003.html 23 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/003.js 21 24 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/004.html 25 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/004.js 22 26 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/005.html 23 27 /LayoutTests/imported/w3c/web-platform-tests/workers/semantics/xhr/006.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/support/name.js
r225593 r249719 3 3 4 4 test(() => { 5 assert_true(self.hasOwnProperty("name"), "property exists on the global") 6 assert_equals(self.name, "my name") 5 assert_true(self.hasOwnProperty("name"), "property exists on the global"); 6 assert_equals(self.name, "my name"); 7 7 }, `name property value for ${self.constructor.name}`); 8 8 -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/support/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 20 20 /LayoutTests/imported/w3c/web-platform-tests/workers/support/ImportScriptsNetworkErr.js 21 21 /LayoutTests/imported/w3c/web-platform-tests/workers/support/ImportScriptsNosniffErr.js 22 /LayoutTests/imported/w3c/web-platform-tests/workers/support/SharedWorker-common.js 23 /LayoutTests/imported/w3c/web-platform-tests/workers/support/SharedWorker-create-common.js 24 /LayoutTests/imported/w3c/web-platform-tests/workers/support/SharedWorker-script-error.js 22 25 /LayoutTests/imported/w3c/web-platform-tests/workers/support/Timer.js 26 /LayoutTests/imported/w3c/web-platform-tests/workers/support/Worker-common.js 27 /LayoutTests/imported/w3c/web-platform-tests/workers/support/Worker-create-common.js 28 /LayoutTests/imported/w3c/web-platform-tests/workers/support/Worker-messageport.js 29 /LayoutTests/imported/w3c/web-platform-tests/workers/support/Worker-run-forever.js 30 /LayoutTests/imported/w3c/web-platform-tests/workers/support/Worker-structure-message.js 31 /LayoutTests/imported/w3c/web-platform-tests/workers/support/Worker-termination-with-port-messages.js 32 /LayoutTests/imported/w3c/web-platform-tests/workers/support/Worker-thread-multi-port.js 33 /LayoutTests/imported/w3c/web-platform-tests/workers/support/Worker-timeout-cancel-order.js 34 /LayoutTests/imported/w3c/web-platform-tests/workers/support/Worker-timeout-decreasing-order.js 35 /LayoutTests/imported/w3c/web-platform-tests/workers/support/Worker-timeout-increasing-order.js 23 36 /LayoutTests/imported/w3c/web-platform-tests/workers/support/WorkerBasic.js 24 37 /LayoutTests/imported/w3c/web-platform-tests/workers/support/WorkerClose.js 25 38 /LayoutTests/imported/w3c/web-platform-tests/workers/support/WorkerDataCloneErr.js 26 39 /LayoutTests/imported/w3c/web-platform-tests/workers/support/WorkerFetchURL.js 40 /LayoutTests/imported/w3c/web-platform-tests/workers/support/WorkerGlobalScope-close.js 27 41 /LayoutTests/imported/w3c/web-platform-tests/workers/support/WorkerLocation-origin.html 28 42 /LayoutTests/imported/w3c/web-platform-tests/workers/support/WorkerLocation.js 29 43 /LayoutTests/imported/w3c/web-platform-tests/workers/support/WorkerNavigator.js 44 /LayoutTests/imported/w3c/web-platform-tests/workers/support/WorkerSendingPerformanceNow.js 30 45 /LayoutTests/imported/w3c/web-platform-tests/workers/support/WorkerTerminate.js 31 46 /LayoutTests/imported/w3c/web-platform-tests/workers/support/WorkerText.txt 47 /LayoutTests/imported/w3c/web-platform-tests/workers/support/iframe_sw_dataUrl.html 48 /LayoutTests/imported/w3c/web-platform-tests/workers/support/importScripts-1.js 49 /LayoutTests/imported/w3c/web-platform-tests/workers/support/importScripts-2.js 50 /LayoutTests/imported/w3c/web-platform-tests/workers/support/importScripts-3.js 51 /LayoutTests/imported/w3c/web-platform-tests/workers/support/imported_script.py 52 /LayoutTests/imported/w3c/web-platform-tests/workers/support/invalidScript.js 32 53 /LayoutTests/imported/w3c/web-platform-tests/workers/support/name-as-accidental-global.js 33 54 /LayoutTests/imported/w3c/web-platform-tests/workers/support/name.js 34 55 /LayoutTests/imported/w3c/web-platform-tests/workers/support/nosiniff-error-worker.py 56 /LayoutTests/imported/w3c/web-platform-tests/workers/support/parent_of_nested_worker.js 35 57 /LayoutTests/imported/w3c/web-platform-tests/workers/support/sandboxed-tests.html 36 58 /LayoutTests/imported/w3c/web-platform-tests/workers/support/shared-name.js 59 /LayoutTests/imported/w3c/web-platform-tests/workers/support/sync_xhr.js 60 /LayoutTests/imported/w3c/web-platform-tests/workers/support/sync_xhr_target.xml 61 /LayoutTests/imported/w3c/web-platform-tests/workers/support/throw-on-message-Worker.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/w3c-import.log
r225593 r249719 2 2 Do NOT modify these tests directly in WebKit. 3 3 Instead, create a pull request on the WPT github: 4 https://github.com/w 3c/web-platform-tests4 https://github.com/web-platform-tests/wpt 5 5 6 6 Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport … … 15 15 ------------------------------------------------------------------------ 16 16 List of files: 17 /LayoutTests/imported/w3c/web-platform-tests/workers/ OWNERS17 /LayoutTests/imported/w3c/web-platform-tests/workers/META.yml 18 18 /LayoutTests/imported/w3c/web-platform-tests/workers/README.md 19 /LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-MessageEvent-source.any.js 20 /LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-constructor.html 21 /LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-detach-frame-in-error-event.html 22 /LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-exception-propagation.html 23 /LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-exception.html 24 /LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-replace-EventHandler.any.js 25 /LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-script-error.html 26 /LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker-simple.html 27 /LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorkerPerformanceNow.html 19 28 /LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker_blobUrl.html 29 /LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorker_dataUrl.html 30 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-base64.any.js 31 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-call.worker.js 32 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-constructor-proto.any.js 33 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-custom-event.any.js 34 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-formdata.any.js 35 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-location.sub.any.js 36 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-messageport.html 37 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-multi-port.html 38 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-nested-importScripts-error.html 39 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-event-handler.any.js 40 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-global-constructor.any.js 41 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-replace-self.any.js 42 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-simultaneous-errors.html 43 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-structure-message.html 44 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-terminate-forever.html 45 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-termination-with-port-messages.html 46 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-timeout-cancel-order.html 47 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-timeout-decreasing-order.html 48 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker-timeout-increasing-order.html 49 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope-close.html 20 50 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope_ErrorEvent_colno.htm 21 51 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope_ErrorEvent_filename.htm 22 52 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope_ErrorEvent_lineno.htm 23 53 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope_ErrorEvent_message.htm 24 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope_close.htm25 54 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope_importScripts.htm 26 55 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope_importScripts_NetworkErr.htm 27 56 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope_importScripts_NosniffErr.htm 57 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope_requestAnimationFrame.tentative.worker.js 28 58 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope_setInterval.htm 29 59 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerGlobalScope_setTimeout.htm … … 43 73 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerLocation_search_fragment.htm 44 74 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerLocation_search_nonexist.htm 75 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator-hardware-concurrency.any.js 76 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator.any.js 45 77 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator_appName.htm 46 78 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator_appVersion.htm … … 48 80 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator_platform.htm 49 81 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerNavigator_userAgent.htm 82 /LayoutTests/imported/w3c/web-platform-tests/workers/WorkerPerformanceNow.html 50 83 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker_ErrorEvent_bubbles_cancelable.htm 51 84 /LayoutTests/imported/w3c/web-platform-tests/workers/Worker_ErrorEvent_error.htm … … 63 96 /LayoutTests/imported/w3c/web-platform-tests/workers/data-url-shared.html 64 97 /LayoutTests/imported/w3c/web-platform-tests/workers/data-url.html 65 /LayoutTests/imported/w3c/web-platform-tests/workers/interfaces.worker.js 98 /LayoutTests/imported/w3c/web-platform-tests/workers/dedicated-worker-from-blob-url.window.js 99 /LayoutTests/imported/w3c/web-platform-tests/workers/importscripts_mime.any.js 66 100 /LayoutTests/imported/w3c/web-platform-tests/workers/name-property.html 67 101 /LayoutTests/imported/w3c/web-platform-tests/workers/nested_worker.worker.js 102 /LayoutTests/imported/w3c/web-platform-tests/workers/nested_worker_close_from_parent_worker.html 103 /LayoutTests/imported/w3c/web-platform-tests/workers/nested_worker_close_self.worker.js 104 /LayoutTests/imported/w3c/web-platform-tests/workers/nested_worker_importScripts.worker.js 105 /LayoutTests/imported/w3c/web-platform-tests/workers/nested_worker_sync_xhr.worker.js 106 /LayoutTests/imported/w3c/web-platform-tests/workers/nested_worker_terminate_from_document.html 68 107 /LayoutTests/imported/w3c/web-platform-tests/workers/opaque-origin.html 69 108 /LayoutTests/imported/w3c/web-platform-tests/workers/postMessage_DataCloneErr.htm … … 73 112 /LayoutTests/imported/w3c/web-platform-tests/workers/postMessage_ports_readonly_array.htm 74 113 /LayoutTests/imported/w3c/web-platform-tests/workers/postMessage_target_source.htm 114 /LayoutTests/imported/w3c/web-platform-tests/workers/shared-worker-from-blob-url.window.js 75 115 /LayoutTests/imported/w3c/web-platform-tests/workers/shared-worker-name-via-options.html 76 116 /LayoutTests/imported/w3c/web-platform-tests/workers/worker-performance.worker.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/workers/worker-performance.worker-expected.txt
r225593 r249719 12 12 FAIL performance.timing is not available in workers assert_equals: performance.timing is undefined expected "undefined" but got "object" 13 13 FAIL performance.navigation is not available in workers assert_equals: performance.navigation is undefined expected "undefined" but got "object" 14 PASS performance.toJSON is not available in workers 14 FAIL performance.toJSON is available in workers assert_equals: performance.toJSON is a function expected "function" but got "undefined" 15 15 PASS There are no navigation type performance entries in workers 16 16 -
trunk/LayoutTests/tests-options.json
r249672 r249719 1866 1866 "slow" 1867 1867 ], 1868 "imported/w3c/web-platform-tests/workers/Worker_cross_origin_security_err.htm": [ 1869 "slow" 1870 ], 1871 "imported/w3c/web-platform-tests/workers/constructors/SharedWorker/same-origin.html": [ 1872 "slow" 1873 ], 1874 "imported/w3c/web-platform-tests/workers/constructors/Worker/same-origin.html": [ 1875 "slow" 1876 ], 1877 "imported/w3c/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/006.html": [ 1878 "slow" 1879 ], 1880 "imported/w3c/web-platform-tests/workers/modules/dedicated-worker-options-credentials.html": [ 1881 "slow" 1882 ], 1883 "imported/w3c/web-platform-tests/workers/semantics/multiple-workers/003.html": [ 1884 "slow" 1885 ], 1886 "imported/w3c/web-platform-tests/workers/semantics/multiple-workers/004.html": [ 1887 "slow" 1888 ], 1889 "imported/w3c/web-platform-tests/workers/semantics/multiple-workers/007.html": [ 1890 "slow" 1891 ], 1868 1892 "imported/w3c/web-platform-tests/xhr/progress-events-response-data-gzip.htm": [ 1869 1893 "slow"
Note: See TracChangeset
for help on using the changeset viewer.