Import WPT websockets tests
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Jun 2019 18:35:26 +0000 (18:35 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Jun 2019 18:35:26 +0000 (18:35 +0000)
https://bugs.webkit.org/show_bug.cgi?id=198774

Reviewed by Geoffrey Garen.

LayoutTests/imported/w3c:

* resources/import-expectations.json:
* resources/resource-files.json:
* web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/abort.sub.window-expected.txt:
Rebasing since we now have some websockets specific handlers.
* web-platform-tests/websockets: Added.

LayoutTests:

* platform/mac-wk1/TestExpectations:
* TestExpectations:
* tests-options.json:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246406 268f45cc-cd09-0410-ab3c-d52691b4dbfc

636 files changed:
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/resources/import-expectations.json
LayoutTests/imported/w3c/resources/resource-files.json
LayoutTests/imported/w3c/web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/abort.sub.window-expected.txt
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-extensions-empty.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-extensions-empty.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-extensions-empty.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-binaryType-blob.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-binaryType-blob.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-binaryType-blob.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-setCorrectly.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-setCorrectly.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-setCorrectly.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-string.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-string.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-string.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-on-worker-shutdown.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-on-worker-shutdown.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-on-worker-shutdown.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-on-worker-shutdown.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/META.yml [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/README.md [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-reason.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-reason.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-reason.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-verify-code.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-verify-code.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-verify-code.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005-verify-code.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005-verify-code.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005-verify-code.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-2999-reason.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-2999-reason.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-2999-reason.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-reason.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-reason.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-reason.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-verify-code.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-verify-code.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-verify-code.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-4999-reason.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-4999-reason.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-4999-reason.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-124Bytes.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-124Bytes.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-124Bytes.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-onlyReason.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-onlyReason.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-onlyReason.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closed.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closed.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closed.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closing.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closing.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closing.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-server-initiated-close.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-server-initiated-close.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-server-initiated-close.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-undefined.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-undefined.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-undefined.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-65K-data.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-65K-data.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-65K-data.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-65K-arraybuffer.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-65K-arraybuffer.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-65K-arraybuffer.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybuffer.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybuffer.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybuffer.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float32.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float32.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float32.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float64.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float64.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float64.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-int32.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-int32.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-int32.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint16-offset-length.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint16-offset-length.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint16-offset-length.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint32-offset.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint32-offset.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint32-offset.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint8-offset-length.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint8-offset-length.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint8-offset-length.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint8-offset.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint8-offset.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint8-offset.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-blob.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-blob.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-blob.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-data.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-data.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-data.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-null.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-null.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-null.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-paired-surrogates.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-paired-surrogates.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-paired-surrogates.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-unicode-data.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-unicode-data.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-unicode-data.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-unpaired-surrogates.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-unpaired-surrogates.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-unpaired-surrogates.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-0byte-data.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-0byte-data.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-0byte-data.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-0byte-data.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-0byte-data.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-65K-data.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-65K-data.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-65K-data.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-65K-data.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-65K-data.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-Unpaired-Surrogates.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-Unpaired-Surrogates.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-Unpaired-Surrogates.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-Unpaired-Surrogates.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-Unpaired-Surrogates.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-before-open.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-before-open.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-before-open.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-before-open.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-before-open.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-65K-arraybuffer.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-65K-arraybuffer.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-65K-arraybuffer.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-65K-arraybuffer.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-65K-arraybuffer.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybuffer.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybuffer.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybuffer.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybuffer.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybuffer.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybufferview-int16-offset.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybufferview-int16-offset.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybufferview-int16-offset.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybufferview-int16-offset.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybufferview-int16-offset.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybufferview-int8.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybufferview-int8.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybufferview-int8.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybufferview-int8.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-arraybufferview-int8.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-blob.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-blob.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-blob.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-blob.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-binary-blob.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-data.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-data.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-data.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-data.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-data.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-data.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-data.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-data.worker.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-null.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-null.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-null.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-null.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-null.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-paired-surrogates.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-paired-surrogates.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-paired-surrogates.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-paired-surrogates.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-paired-surrogates.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-unicode-data.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-unicode-data.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-unicode-data.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-unicode-data.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/Send-unicode-data.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/basic-auth.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/basic-auth.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/basic-auth.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/basic-auth.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/basic-auth.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/binary/001-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/binary/001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/binary/002-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/binary/002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/binary/004-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/binary/004.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/binary/005-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/binary/005.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/binary/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/binaryType-wrong-value.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/binaryType-wrong-value.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/binaryType-wrong-value.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/bufferedAmount-unchanged-by-sync-xhr.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/bufferedAmount-unchanged-by-sync-xhr.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/bufferedAmount-unchanged-by-sync-xhr.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/bufferedAmount-unchanged-by-sync-xhr.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/close-invalid.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/close-invalid.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/close-invalid.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/close-invalid.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/close-invalid.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/closing-handshake/002-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/closing-handshake/002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/closing-handshake/003-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/closing-handshake/003.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/closing-handshake/004-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/closing-handshake/004.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/closing-handshake/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constants.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/001-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/002-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/004-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/004.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/005-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/005.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/006-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/006.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/007-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/007.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/008-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/008.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/009-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/009.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/010-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/010.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/011-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/011.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/012-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/012.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/013-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/013.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/014-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/014.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/016-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/016.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/017-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/017.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/018-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/018.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/019-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/019.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/020-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/020.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/021-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/021.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/022-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/022.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/constructor/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/001-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/002-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/003-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/003.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/004-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/004.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/005-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/005.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/006-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/006.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/007-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/007.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/support/set-cookie.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/support/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/cookies/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/eventhandlers.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/eventhandlers.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/eventhandlers.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/eventhandlers.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/eventhandlers.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/extended-payload-length-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/extended-payload-length.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/basic_auth_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/echo-cookie_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/echo-query_v13_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/echo-query_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/echo_close_data_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/echo_exit_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/echo_raw_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/echo_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/empty-message_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/handshake_no_protocol_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/handshake_protocol_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/handshake_sleep_2_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/invalid_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/origin_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/protocol_array_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/protocol_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/referrer_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/set-cookie-secure_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/set-cookie_http_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/set-cookie_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/simple_handshake_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/sleep_10_v13_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/stash_responder_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/handlers/wrong_accept_key_wsh.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/CloseEvent/clean-close-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/CloseEvent/clean-close.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/CloseEvent/constructor-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/CloseEvent/constructor.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/CloseEvent/historical-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/CloseEvent/historical.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/CloseEvent/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-arraybuffer-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-arraybuffer.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-blob-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-blob.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-defineProperty-getter-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-defineProperty-getter.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-defineProperty-setter-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-defineProperty-setter.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-deleting-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-deleting.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-getting-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-getting.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-initial-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-initial.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-large-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-large.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-readonly-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-readonly.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-unicode-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-unicode.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/close-basic-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/close-basic.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/close-connecting-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/close-connecting.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/close-multiple-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/close-multiple.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/close-nested-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/close-nested.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/close-replace-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/close-replace.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/close-return-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/close-return.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/constants/001-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/constants/001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/constants/002-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/constants/002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/constants/003-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/constants/003.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/constants/004-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/constants/004.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/constants/005-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/constants/005.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/constants/006-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/constants/006.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/constants/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/001-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/002-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/003-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/003.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/004-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/004.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/006-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/006.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/007-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/007.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/008-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/008.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/009-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/009.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/010-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/010.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/011-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/011.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/012-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/012.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/013-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/013.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/014-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/014.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/015-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/015.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/016-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/016.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/017-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/017.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/018-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/018.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/019-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/019.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/020-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/020.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/extensions/001-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/extensions/001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/extensions/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/protocol/protocol-initial-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/protocol/protocol-initial.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/protocol/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/001-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/002-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/003-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/003.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/004-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/004.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/005-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/005.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/006-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/006.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/007-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/007.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/008-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/008.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/001-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/002-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/003-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/003.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/004-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/004.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/005-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/005.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/006-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/006.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/007-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/007.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/008-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/008.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/009-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/009.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/010-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/010.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/011-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/011.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/012-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/012.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/send/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/001-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/002-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/003-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/003.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/004-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/004.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/005-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/005.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/006-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/006.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/resolve-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/resolve.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/keeping-connection-open/001-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/keeping-connection-open/001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/keeping-connection-open/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/multi-globals/message-received-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/multi-globals/message-received.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/multi-globals/support/incumbent.sub.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/multi-globals/support/relevant.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/multi-globals/support/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/multi-globals/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/opening-handshake/001-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/opening-handshake/001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/opening-handshake/002-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/opening-handshake/002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/opening-handshake/003-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/opening-handshake/003-sets-origin.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/opening-handshake/003-sets-origin.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/opening-handshake/003-sets-origin.worker.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/opening-handshake/003.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/opening-handshake/005-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/opening-handshake/005.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/opening-handshake/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/referrer.any-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/referrer.any.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/referrer.any.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/referrer.any.worker-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/referrer.any.worker.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/security/001-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/security/001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/security/002-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/security/002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/security/check.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/security/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/001-1.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/001-2.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/001-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/001.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/002-1.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/002-2.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/002-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/002.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/003-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/003.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/004-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/004.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/005-1.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/005-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/005.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/unload-a-document/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/websockets/websocket.sub.js [new file with mode: 0644]
LayoutTests/platform/mac-wk1/TestExpectations
LayoutTests/tests-options.json

index 6a8c64e..5d5a20d 100644 (file)
@@ -1,3 +1,14 @@
+2019-06-13  Youenn Fablet  <youenn@apple.com>
+
+        Import WPT websockets tests
+        https://bugs.webkit.org/show_bug.cgi?id=198774
+
+        Reviewed by Geoffrey Garen.
+
+        * platform/mac-wk1/TestExpectations:
+        * TestExpectations:
+        * tests-options.json:
+
 2019-06-13  Antoine Quint  <graouts@apple.com>
 
         "display: contents" Content click does not trigger
index 8420200..0cacad5 100644 (file)
@@ -3291,5 +3291,125 @@ webkit.org/b/157743 imported/w3c/web-platform-tests/resize-observer/eventloop.ht
 
 webkit.org/b/198103 imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/offsets-into-the-media-resource/currentTime.html [ Pass Failure ]
 
+imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/005.html [ DumpJSConsoleLogInStdErr ]
+imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/006.html [ DumpJSConsoleLogInStdErr ]
+imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-defineProperty-setter.html [ DumpJSConsoleLogInStdErr ]
+imported/w3c/web-platform-tests/websockets/constructor/008.html [ DumpJSConsoleLogInStdErr ]
+imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/020.html [ DumpJSConsoleLogInStdErr ]
+imported/w3c/web-platform-tests/websockets/opening-handshake/003.html [ DumpJSConsoleLogInStdErr ]
+imported/w3c/web-platform-tests/websockets/close-invalid.any.worker.html [ DumpJSConsoleLogInStdErr ]
+imported/w3c/web-platform-tests/websockets/bufferedAmount-unchanged-by-sync-xhr.any.worker.html [ DumpJSConsoleLogInStdErr ]
+imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any.worker.html [ DumpJSConsoleLogInStdErr ]
+imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-defineProperty-getter.html [ DumpJSConsoleLogInStdErr ]
+imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/004.html [ DumpJSConsoleLogInStdErr ]
+imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/url/005.html [ DumpJSConsoleLogInStdErr ]
+
+# Flaky WebSocket tests.
+imported/w3c/web-platform-tests/websockets/cookies/005.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/constructor/014.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Send-unicode-data.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Send-65K-data.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Send-Unpaired-Surrogates.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/close-connecting.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/close/close-basic.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any.worker.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/Close-undefined.any.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/bufferedAmount/bufferedAmount-getting.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/006.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/events/015.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/constructor/011.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/interfaces/WebSocket/readyState/007.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/constructor/010.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/Close-1000-reason.any.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/binary/001.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/closing-handshake/002.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/constructor/006.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/cookies/001.html [ Pass Failure ]
+imported/w3c/web-platform-tests/websockets/interfaces/CloseEvent/clean-close.html [ Pass Failure ]
+
+# Timing out WebSocket tests.
+imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/binaryType-wrong-value.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/binaryType-wrong-value.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/bufferedAmount-unchanged-by-sync-xhr.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-124Bytes.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-3000-verify-code.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-string.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-65K-data.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-1005.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Create-on-worker-shutdown.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-server-initiated-close.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybuffer.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-1000-verify-code.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-2999-reason.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Create-Secure-extensions-empty.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-3000-reason.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybuffer.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-undefined.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-onlyReason.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float32.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-3000-reason.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-4999-reason.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-int32.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint8-offset.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float64.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-undefined.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint16-offset-length.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closing.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-1005-verify-code.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-4999-reason.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-1000-reason.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closed.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint16-offset-length.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-1005-verify-code.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-1000.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-124Bytes.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint8-offset-length.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-3000-verify-code.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-binaryType-blob.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-binaryType-blob.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-string.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-2999-reason.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-1000.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Create-Secure-extensions-empty.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-1005.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-65K-data.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-server-initiated-close.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-setCorrectly.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closing.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-onlyReason.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-setCorrectly.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-1000-verify-code.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-65K-arraybuffer.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-1000-reason.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-65K-arraybuffer.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closed.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint8-offset-length.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float32.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float64.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-int32.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint32-offset.any.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint32-offset.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint8-offset.any.worker.html [ Skip ]
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-blob.any.html
+imported/w3c/web-platform-tests/websockets/Secure-Send-binary-blob.any.worker.html
+imported/w3c/web-platform-tests/websockets/Secure-Send-data.any.html
+imported/w3c/web-platform-tests/websockets/Secure-Send-data.any.worker.html
+imported/w3c/web-platform-tests/websockets/Secure-Send-null.any.html
+imported/w3c/web-platform-tests/websockets/Secure-Send-null.any.worker.html
+imported/w3c/web-platform-tests/websockets/Secure-Send-paired-surrogates.any.html
+imported/w3c/web-platform-tests/websockets/Secure-Send-paired-surrogates.any.worker.html
+imported/w3c/web-platform-tests/websockets/Secure-Send-unicode-data.any.html
+imported/w3c/web-platform-tests/websockets/Secure-Send-unicode-data.any.worker.html
+imported/w3c/web-platform-tests/websockets/Secure-Send-unpaired-surrogates.any.html
+imported/w3c/web-platform-tests/websockets/Secure-Send-unpaired-surrogates.any.worker.html
+
 # iOS only
 fast/dom/linkify-phone-numbers.html [ ImageOnlyFailure ]
index b515fbb..daacf16 100644 (file)
@@ -1,5 +1,18 @@
 2019-06-13  Youenn Fablet  <youenn@apple.com>
 
+        Import WPT websockets tests
+        https://bugs.webkit.org/show_bug.cgi?id=198774
+
+        Reviewed by Geoffrey Garen.
+
+        * resources/import-expectations.json:
+        * resources/resource-files.json:
+        * web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/abort.sub.window-expected.txt:
+        Rebasing since we now have some websockets specific handlers.
+        * web-platform-tests/websockets: Added.
+
+2019-06-13  Youenn Fablet  <youenn@apple.com>
+
         Update service worker test and expectation after revision 246363
         https://bugs.webkit.org/show_bug.cgi?id=198808
 
index 22a538a..07e644f 100644 (file)
     "web-platform-tests/webmessaging/": "import", 
     "web-platform-tests/webrtc": "import", 
     "web-platform-tests/webrtc/legacy": "skip", 
-    "web-platform-tests/websockets": "skip", 
+    "web-platform-tests/websockets": "import", 
     "web-platform-tests/webstorage": "skip", 
     "web-platform-tests/webusb": "skip", 
     "web-platform-tests/webvr": "skip", 
index e942698..a7c960c 100644 (file)
         "web-platform-tests/webmessaging/support/ChildWindowPostMessage.htm",
         "web-platform-tests/webmessaging/without-ports/019-1.html",
         "web-platform-tests/webmessaging/without-ports/020-1.html",
+        "web-platform-tests/websockets/multi-globals/support/incumbent.sub.html",
+        "web-platform-tests/websockets/multi-globals/support/relevant.html",
+        "web-platform-tests/websockets/unload-a-document/001-1.html",
+        "web-platform-tests/websockets/unload-a-document/001-2.html",
+        "web-platform-tests/websockets/unload-a-document/002-1.html",
+        "web-platform-tests/websockets/unload-a-document/002-2.html",
+        "web-platform-tests/websockets/unload-a-document/005-1.html",
         "web-platform-tests/workers/data-url-shared-window.html",
         "web-platform-tests/workers/non-automated/application-cache-dedicated.html",
         "web-platform-tests/workers/non-automated/infinite-nested.html",
index 78cb8e6..fed938f 100644 (file)
@@ -1,9 +1,7 @@
-CONSOLE MESSAGE: WebSocket connection to 'ws://localhost:49001/echo' failed: Unexpected response code: 404
-CONSOLE MESSAGE: WebSocket connection to 'ws://localhost:49001/echo' failed: Unexpected response code: 404
 
 PASS document.open() does not abort documents that are not navigating (XMLHttpRequest) 
 PASS document.open() does not abort documents that are not navigating (fetch()) 
 PASS document.open() does not abort documents that are not navigating (image loading) 
-FAIL document.open() does not abort documents that are not navigating (establish a WebSocket connection) assert_unreached: WebSocket should have no error Reached unreachable code
-FAIL document.open() does not abort documents that are not navigating (already established WebSocket connection) assert_unreached: WebSocket should have no error Reached unreachable code
+PASS document.open() does not abort documents that are not navigating (establish a WebSocket connection) 
+PASS document.open() does not abort documents that are not navigating (already established WebSocket connection) 
 
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any-expected.txt
new file mode 100644 (file)
index 0000000..eed24cc
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Create WebSocket - Close the Connection - Connection should be opened 
+PASS Create WebSocket - Close the Connection - close(1000, reason) - readyState should be in CLOSED state and wasClean is TRUE - Connection should be closed 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any.js
new file mode 100644 (file)
index 0000000..e8b49b5
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create WebSocket - Close the Connection - Connection should be opened");
+var testClose = async_test("Create WebSocket - Close the Connection - close(1000, reason) - readyState should be in CLOSED state and wasClean is TRUE - Connection should be closed");
+
+var wsocket = CreateWebSocket(false, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.close(1000, "Clean Close");
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be opened");
+  assert_equals(wsocket.readyState, 3, "readyState should be 3(CLOSED)");
+  assert_equals(evt.wasClean, true, "wasClean should be TRUE");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..eed24cc
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Create WebSocket - Close the Connection - Connection should be opened 
+PASS Create WebSocket - Close the Connection - close(1000, reason) - readyState should be in CLOSED state and wasClean is TRUE - Connection should be closed 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000-reason.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any-expected.txt
new file mode 100644 (file)
index 0000000..5354778
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Create WebSocket - Connection should be opened 
+PASS Create WebSocket - Close the Connection - close(1000) - readyState should be in CLOSED state and wasClean is TRUE - Connection should be closed 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any.js
new file mode 100644 (file)
index 0000000..bcfceff
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create WebSocket - Connection should be opened");
+var testClose = async_test("Create WebSocket - Close the Connection - close(1000) - readyState should be in CLOSED state and wasClean is TRUE - Connection should be closed");
+
+var wsocket = CreateWebSocket(false, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.close(1000);
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be opened");
+  assert_equals(wsocket.readyState, 3, "readyState should be 3(CLOSED)");
+  assert_equals(evt.wasClean, true, "wasClean should be TRUE");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..5354778
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Create WebSocket - Connection should be opened 
+PASS Create WebSocket - Close the Connection - close(1000) - readyState should be in CLOSED state and wasClean is TRUE - Connection should be closed 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-1000.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any-expected.txt
new file mode 100644 (file)
index 0000000..5673bdf
--- /dev/null
@@ -0,0 +1,4 @@
+CONSOLE MESSAGE: line 12: WebSocket close message is too long.
+
+PASS Create WebSocket - Close the Connection - close(code, 'reason more than 123 bytes') - SYNTAX_ERR is thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any.js
new file mode 100644 (file)
index 0000000..357748a
--- /dev/null
@@ -0,0 +1,15 @@
+// META: script=websocket.sub.js
+
+var test = async_test("Create WebSocket - Close the Connection - close(code, 'reason more than 123 bytes') - SYNTAX_ERR is thrown");
+
+var wsocket = CreateWebSocket(false, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', test.step_func(function(evt) {
+  var reason = "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123";
+  assert_equals(reason.length, 124);
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket.close(1000, reason)
+  });
+  test.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..4fb47eb
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Create WebSocket - Close the Connection - close(code, 'reason more than 123 bytes') - SYNTAX_ERR is thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-Reason-124Bytes.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any-expected.txt
new file mode 100644 (file)
index 0000000..d40f65d
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Create WebSocket - Close the Connection - close(reason with unpaired surrogates) - connection should get opened 
+FAIL Create WebSocket - Close the Connection - close(reason with unpaired surrogates) - connection should get closed assert_equals: reason replaced with replacement character expected "\ufffd" but got ""
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any.js
new file mode 100644 (file)
index 0000000..0b2e681
--- /dev/null
@@ -0,0 +1,21 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create WebSocket - Close the Connection - close(reason with unpaired surrogates) - connection should get opened");
+var testClose = async_test("Create WebSocket - Close the Connection - close(reason with unpaired surrogates) - connection should get closed");
+
+var wsocket = CreateWebSocket(false, false, false);
+var isOpenCalled = false;
+var replacementChar = "\uFFFD";
+var reason = "\uD807";
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.close(1000, reason);
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be opened");
+  assert_equals(evt.reason, replacementChar, "reason replaced with replacement character");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..d40f65d
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Create WebSocket - Close the Connection - close(reason with unpaired surrogates) - connection should get opened 
+FAIL Create WebSocket - Close the Connection - close(reason with unpaired surrogates) - connection should get closed assert_equals: reason replaced with replacement character expected "\ufffd" but got ""
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-reason-unpaired-surrogates.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any-expected.txt
new file mode 100644 (file)
index 0000000..c2c15e0
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Untitled 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any.js
new file mode 100644 (file)
index 0000000..67bc9b2
--- /dev/null
@@ -0,0 +1,11 @@
+// META: script=websocket.sub.js
+
+var test = async_test();
+
+var wsocket = CreateWebSocket(false, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', test.step_func(function(evt) {
+  wsocket.close(undefined);
+  test.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..c2c15e0
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Untitled 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Close-undefined.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-extensions-empty.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-extensions-empty.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-extensions-empty.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-extensions-empty.any.js
new file mode 100644 (file)
index 0000000..0a2d883
--- /dev/null
@@ -0,0 +1,21 @@
+// META: timeout=long
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - wsocket.extensions should be set to '' after connection is established - Connection should be opened");
+var testClose = async_test("Create Secure WebSocket - wsocket.extensions should be set to '' after connection is established - Connection should be closed");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  assert_equals(wsocket.extensions, "", "extensions should be empty");
+  wsocket.close();
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be closed");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-extensions-empty.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-extensions-empty.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any-expected.txt
new file mode 100644 (file)
index 0000000..ae0072b
--- /dev/null
@@ -0,0 +1,4 @@
+CONSOLE MESSAGE: line 49: Invalid url for WebSocket ws://web platform.test:49001/echo
+
+PASS Create Secure WebSocket - Pass a URL with a space - SYNTAX_ERR should be thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any.js
new file mode 100644 (file)
index 0000000..f6ca19e
--- /dev/null
@@ -0,0 +1,9 @@
+// META: script=websocket.sub.js
+
+test(function() {
+  var wsocket;
+  var spaceUrl = "web platform.test";
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket = CreateWebSocketWithSpaceInUrl(spaceUrl)
+  });
+}, "Create Secure WebSocket - Pass a URL with a space - SYNTAX_ERR should be thrown")
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..bb832a6
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Create Secure WebSocket - Pass a URL with a space - SYNTAX_ERR should be thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-url-with-space.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.js
new file mode 100644 (file)
index 0000000..b0ebe6a
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - Pass a valid URL and array of protocol strings - Connection should be opened");
+var testClose = async_test("Create Secure WebSocket - Pass a valid URL and array of protocol strings - Connection should be closed");
+
+var wsocket = CreateWebSocket(true, false, true);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  assert_equals(wsocket.readyState, 1, "readyState should be 1(OPEN)");
+  wsocket.close();
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-binaryType-blob.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-binaryType-blob.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-binaryType-blob.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-binaryType-blob.any.js
new file mode 100644 (file)
index 0000000..a639ee8
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - wsocket.binaryType should be set to 'blob' after connection is established - Connection should be opened");
+var testClose = async_test("Create Secure WebSocket - wsocket.binaryType should be set to 'blob' after connection is established - Connection should be closed");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  assert_equals(wsocket.binaryType, "blob", "binaryType should be set to Blob");
+  wsocket.close();
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-binaryType-blob.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-binaryType-blob.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-setCorrectly.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-setCorrectly.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-setCorrectly.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-setCorrectly.any.js
new file mode 100644 (file)
index 0000000..768e1bc
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - Pass a valid URL and protocol string - protocol should be set correctly - Connection should be opened");
+var testClose = async_test("Create Secure WebSocket - Pass a valid URL and protocol string - Connection should be closed");
+
+var wsocket = CreateWebSocket(true, true, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  assert_equals(wsocket.protocol, "echo", "protocol should be set to echo");
+  wsocket.close();
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-setCorrectly.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-setCorrectly.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-string.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-string.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-string.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-string.any.js
new file mode 100644 (file)
index 0000000..e1e661c
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - Check readyState is 1");
+var testClose = async_test("Create Secure WebSocket - Pass a valid URL and protocol string - Connection should be closed");
+
+var wsocket = CreateWebSocket(true, true, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  assert_equals(wsocket.readyState, 1, "readyState should be 1(OPEN)");
+  wsocket.close();
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-string.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url-protocol-string.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url.any.js
new file mode 100644 (file)
index 0000000..ab02a19
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - Pass a valid URL  - Connection should be opened");
+var testClose = async_test("Create Secure WebSocket - Pass a valid URL - Connection should be closed");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  assert_equals(wsocket.readyState, 1, "readyState should be 1(OPEN)");
+  wsocket.close();
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-valid-url.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any-expected.txt
new file mode 100644 (file)
index 0000000..e18e7ef
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Create Secure WebSocket - wsocket.url should be set correctly 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any.js
new file mode 100644 (file)
index 0000000..8ed985b
--- /dev/null
@@ -0,0 +1,7 @@
+// META: script=websocket.sub.js
+
+test(function() {
+  var urlNonDefaultPort = "wss://" + __SERVER__NAME + ":" + __NEW__SECURE__PORT + "/" + __PATH;
+  var wsocket = new WebSocket(urlNonDefaultPort);
+  assert_equals(wsocket.url, urlNonDefaultPort, "wsocket.url is set correctly");
+}, "Create Secure WebSocket - wsocket.url should be set correctly")
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..e18e7ef
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Create Secure WebSocket - wsocket.url should be set correctly 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any-expected.txt
new file mode 100644 (file)
index 0000000..9f0b0de
--- /dev/null
@@ -0,0 +1,4 @@
+CONSOLE MESSAGE: line 37: Wrong protocol for WebSocket '/echo'
+
+PASS Create WebSocket - Pass a valid URL and a protocol string with an ascii separator character - SYNTAX_ERR is thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any.js
new file mode 100644 (file)
index 0000000..37657f1
--- /dev/null
@@ -0,0 +1,9 @@
+// META: script=websocket.sub.js
+
+test(function() {
+  var asciiWithSep = "/echo";
+  var wsocket;
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket = CreateWebSocketWithAsciiSep(asciiWithSep)
+  });
+}, "Create WebSocket - Pass a valid URL and a protocol string with an ascii separator character - SYNTAX_ERR is thrown")
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..92af6c2
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Create WebSocket - Pass a valid URL and a protocol string with an ascii separator character - SYNTAX_ERR is thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-asciiSep-protocol-string.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any-expected.txt
new file mode 100644 (file)
index 0000000..9505c21
--- /dev/null
@@ -0,0 +1,137 @@
+CONSOLE MESSAGE: line 43: WebSocket port 1 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 7 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 9 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 11 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 13 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 15 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 17 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 19 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 20 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 21 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 22 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 23 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 25 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 37 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 42 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 43 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 53 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 77 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 79 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 87 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 95 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 101 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 102 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 103 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 104 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 109 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 110 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 111 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 113 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 115 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 117 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 119 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 123 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 135 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 139 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 143 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 179 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 389 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 427 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 465 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 512 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 513 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 514 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 515 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 526 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 530 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 531 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 532 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 540 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 548 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 556 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 563 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 587 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 601 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 636 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 993 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 995 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 2049 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 3659 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 4045 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 6000 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 6665 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 6666 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 6667 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 6668 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 6669 blocked
+CONSOLE MESSAGE: line 43: WebSocket port 6697 blocked
+
+PASS Basic check 
+FAIL WebSocket blocked port test 1 The operation is insecure.
+FAIL WebSocket blocked port test 7 The operation is insecure.
+FAIL WebSocket blocked port test 9 The operation is insecure.
+FAIL WebSocket blocked port test 11 The operation is insecure.
+FAIL WebSocket blocked port test 13 The operation is insecure.
+FAIL WebSocket blocked port test 15 The operation is insecure.
+FAIL WebSocket blocked port test 17 The operation is insecure.
+FAIL WebSocket blocked port test 19 The operation is insecure.
+FAIL WebSocket blocked port test 20 The operation is insecure.
+FAIL WebSocket blocked port test 21 The operation is insecure.
+FAIL WebSocket blocked port test 22 The operation is insecure.
+FAIL WebSocket blocked port test 23 The operation is insecure.
+FAIL WebSocket blocked port test 25 The operation is insecure.
+FAIL WebSocket blocked port test 37 The operation is insecure.
+FAIL WebSocket blocked port test 42 The operation is insecure.
+FAIL WebSocket blocked port test 43 The operation is insecure.
+FAIL WebSocket blocked port test 53 The operation is insecure.
+FAIL WebSocket blocked port test 77 The operation is insecure.
+FAIL WebSocket blocked port test 79 The operation is insecure.
+FAIL WebSocket blocked port test 87 The operation is insecure.
+FAIL WebSocket blocked port test 95 The operation is insecure.
+FAIL WebSocket blocked port test 101 The operation is insecure.
+FAIL WebSocket blocked port test 102 The operation is insecure.
+FAIL WebSocket blocked port test 103 The operation is insecure.
+FAIL WebSocket blocked port test 104 The operation is insecure.
+FAIL WebSocket blocked port test 109 The operation is insecure.
+FAIL WebSocket blocked port test 110 The operation is insecure.
+FAIL WebSocket blocked port test 111 The operation is insecure.
+FAIL WebSocket blocked port test 113 The operation is insecure.
+FAIL WebSocket blocked port test 115 The operation is insecure.
+FAIL WebSocket blocked port test 117 The operation is insecure.
+FAIL WebSocket blocked port test 119 The operation is insecure.
+FAIL WebSocket blocked port test 123 The operation is insecure.
+FAIL WebSocket blocked port test 135 The operation is insecure.
+FAIL WebSocket blocked port test 139 The operation is insecure.
+FAIL WebSocket blocked port test 143 The operation is insecure.
+FAIL WebSocket blocked port test 179 The operation is insecure.
+FAIL WebSocket blocked port test 389 The operation is insecure.
+FAIL WebSocket blocked port test 427 The operation is insecure.
+FAIL WebSocket blocked port test 465 The operation is insecure.
+FAIL WebSocket blocked port test 512 The operation is insecure.
+FAIL WebSocket blocked port test 513 The operation is insecure.
+FAIL WebSocket blocked port test 514 The operation is insecure.
+FAIL WebSocket blocked port test 515 The operation is insecure.
+FAIL WebSocket blocked port test 526 The operation is insecure.
+FAIL WebSocket blocked port test 530 The operation is insecure.
+FAIL WebSocket blocked port test 531 The operation is insecure.
+FAIL WebSocket blocked port test 532 The operation is insecure.
+FAIL WebSocket blocked port test 540 The operation is insecure.
+FAIL WebSocket blocked port test 548 The operation is insecure.
+FAIL WebSocket blocked port test 556 The operation is insecure.
+FAIL WebSocket blocked port test 563 The operation is insecure.
+FAIL WebSocket blocked port test 587 The operation is insecure.
+FAIL WebSocket blocked port test 601 The operation is insecure.
+FAIL WebSocket blocked port test 636 The operation is insecure.
+FAIL WebSocket blocked port test 993 The operation is insecure.
+FAIL WebSocket blocked port test 995 The operation is insecure.
+FAIL WebSocket blocked port test 2049 The operation is insecure.
+FAIL WebSocket blocked port test 3659 The operation is insecure.
+FAIL WebSocket blocked port test 4045 The operation is insecure.
+FAIL WebSocket blocked port test 6000 The operation is insecure.
+FAIL WebSocket blocked port test 6665 The operation is insecure.
+FAIL WebSocket blocked port test 6666 The operation is insecure.
+FAIL WebSocket blocked port test 6667 The operation is insecure.
+FAIL WebSocket blocked port test 6668 The operation is insecure.
+FAIL WebSocket blocked port test 6669 The operation is insecure.
+FAIL WebSocket blocked port test 6697 The operation is insecure.
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.js
new file mode 100644 (file)
index 0000000..0ac5b62
--- /dev/null
@@ -0,0 +1,84 @@
+// META: script=websocket.sub.js
+
+async_test(t => {
+  const ws = CreateWebSocketWithBlockedPort(__PORT)
+  ws.onerror = t.unreached_func()
+  ws.onopen = t.step_func_done()
+}, 'Basic check');
+// list of bad ports according to
+// https://fetch.spec.whatwg.org/#port-blocking
+[
+  1,    // tcpmux
+  7,    // echo
+  9,    // discard
+  11,   // systat
+  13,   // daytime
+  15,   // netstat
+  17,   // qotd
+  19,   // chargen
+  20,   // ftp-data
+  21,   // ftp
+  22,   // ssh
+  23,   // telnet
+  25,   // smtp
+  37,   // time
+  42,   // name
+  43,   // nicname
+  53,   // domain
+  77,   // priv-rjs
+  79,   // finger
+  87,   // ttylink
+  95,   // supdup
+  101,  // hostriame
+  102,  // iso-tsap
+  103,  // gppitnp
+  104,  // acr-nema
+  109,  // pop2
+  110,  // pop3
+  111,  // sunrpc
+  113,  // auth
+  115,  // sftp
+  117,  // uucp-path
+  119,  // nntp
+  123,  // ntp
+  135,  // loc-srv / epmap
+  139,  // netbios
+  143,  // imap2
+  179,  // bgp
+  389,  // ldap
+  427,  // afp (alternate)
+  465,  // smtp (alternate)
+  512,  // print / exec
+  513,  // login
+  514,  // shell
+  515,  // printer
+  526,  // tempo
+  530,  // courier
+  531,  // chat
+  532,  // netnews
+  540,  // uucp
+  548,  // afp
+  556,  // remotefs
+  563,  // nntp+ssl
+  587,  // smtp (outgoing)
+  601,  // syslog-conn
+  636,  // ldap+ssl
+  993,  // ldap+ssl
+  995,  // pop3+ssl
+  2049, // nfs
+  3659, // apple-sasl
+  4045, // lockd
+  6000, // x11
+  6665, // irc (alternate)
+  6666, // irc (alternate)
+  6667, // irc (default)
+  6668, // irc (alternate)
+  6669, // irc (alternate)
+  6697, // irc+tls
+].forEach(blockedPort => {
+  async_test(t => {
+    const ws = CreateWebSocketWithBlockedPort(blockedPort)
+    ws.onerror = t.step_func_done()
+    ws.onopen = t.unreached_func()
+  }, "WebSocket blocked port test " + blockedPort)
+})
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..85ae546
--- /dev/null
@@ -0,0 +1,70 @@
+
+PASS Basic check 
+FAIL WebSocket blocked port test 1 The operation is insecure.
+FAIL WebSocket blocked port test 7 The operation is insecure.
+FAIL WebSocket blocked port test 9 The operation is insecure.
+FAIL WebSocket blocked port test 11 The operation is insecure.
+FAIL WebSocket blocked port test 13 The operation is insecure.
+FAIL WebSocket blocked port test 15 The operation is insecure.
+FAIL WebSocket blocked port test 17 The operation is insecure.
+FAIL WebSocket blocked port test 19 The operation is insecure.
+FAIL WebSocket blocked port test 20 The operation is insecure.
+FAIL WebSocket blocked port test 21 The operation is insecure.
+FAIL WebSocket blocked port test 22 The operation is insecure.
+FAIL WebSocket blocked port test 23 The operation is insecure.
+FAIL WebSocket blocked port test 25 The operation is insecure.
+FAIL WebSocket blocked port test 37 The operation is insecure.
+FAIL WebSocket blocked port test 42 The operation is insecure.
+FAIL WebSocket blocked port test 43 The operation is insecure.
+FAIL WebSocket blocked port test 53 The operation is insecure.
+FAIL WebSocket blocked port test 77 The operation is insecure.
+FAIL WebSocket blocked port test 79 The operation is insecure.
+FAIL WebSocket blocked port test 87 The operation is insecure.
+FAIL WebSocket blocked port test 95 The operation is insecure.
+FAIL WebSocket blocked port test 101 The operation is insecure.
+FAIL WebSocket blocked port test 102 The operation is insecure.
+FAIL WebSocket blocked port test 103 The operation is insecure.
+FAIL WebSocket blocked port test 104 The operation is insecure.
+FAIL WebSocket blocked port test 109 The operation is insecure.
+FAIL WebSocket blocked port test 110 The operation is insecure.
+FAIL WebSocket blocked port test 111 The operation is insecure.
+FAIL WebSocket blocked port test 113 The operation is insecure.
+FAIL WebSocket blocked port test 115 The operation is insecure.
+FAIL WebSocket blocked port test 117 The operation is insecure.
+FAIL WebSocket blocked port test 119 The operation is insecure.
+FAIL WebSocket blocked port test 123 The operation is insecure.
+FAIL WebSocket blocked port test 135 The operation is insecure.
+FAIL WebSocket blocked port test 139 The operation is insecure.
+FAIL WebSocket blocked port test 143 The operation is insecure.
+FAIL WebSocket blocked port test 179 The operation is insecure.
+FAIL WebSocket blocked port test 389 The operation is insecure.
+FAIL WebSocket blocked port test 427 The operation is insecure.
+FAIL WebSocket blocked port test 465 The operation is insecure.
+FAIL WebSocket blocked port test 512 The operation is insecure.
+FAIL WebSocket blocked port test 513 The operation is insecure.
+FAIL WebSocket blocked port test 514 The operation is insecure.
+FAIL WebSocket blocked port test 515 The operation is insecure.
+FAIL WebSocket blocked port test 526 The operation is insecure.
+FAIL WebSocket blocked port test 530 The operation is insecure.
+FAIL WebSocket blocked port test 531 The operation is insecure.
+FAIL WebSocket blocked port test 532 The operation is insecure.
+FAIL WebSocket blocked port test 540 The operation is insecure.
+FAIL WebSocket blocked port test 548 The operation is insecure.
+FAIL WebSocket blocked port test 556 The operation is insecure.
+FAIL WebSocket blocked port test 563 The operation is insecure.
+FAIL WebSocket blocked port test 587 The operation is insecure.
+FAIL WebSocket blocked port test 601 The operation is insecure.
+FAIL WebSocket blocked port test 636 The operation is insecure.
+FAIL WebSocket blocked port test 993 The operation is insecure.
+FAIL WebSocket blocked port test 995 The operation is insecure.
+FAIL WebSocket blocked port test 2049 The operation is insecure.
+FAIL WebSocket blocked port test 3659 The operation is insecure.
+FAIL WebSocket blocked port test 4045 The operation is insecure.
+FAIL WebSocket blocked port test 6000 The operation is insecure.
+FAIL WebSocket blocked port test 6665 The operation is insecure.
+FAIL WebSocket blocked port test 6666 The operation is insecure.
+FAIL WebSocket blocked port test 6667 The operation is insecure.
+FAIL WebSocket blocked port test 6668 The operation is insecure.
+FAIL WebSocket blocked port test 6669 The operation is insecure.
+FAIL WebSocket blocked port test 6697 The operation is insecure.
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-blocked-port.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any-expected.txt
new file mode 100644 (file)
index 0000000..3b5689d
--- /dev/null
@@ -0,0 +1,12 @@
+CONSOLE MESSAGE: line 6: Wrong url scheme for WebSocket http://localhost:8800/echo
+CONSOLE MESSAGE: line 12: Wrong url scheme for WebSocket mailto:microsoft@microsoft.com
+CONSOLE MESSAGE: line 18: Wrong url scheme for WebSocket about:blank
+CONSOLE MESSAGE: line 24: Wrong url scheme for WebSocket http://localhost:8800/websockets/Create-invalid-urls.any.html?test
+CONSOLE MESSAGE: line 30: Wrong url scheme for WebSocket http://localhost:8800/websockets/Create-invalid-urls.any.html#test
+
+PASS Url is /echo - should throw SYNTAX_ERR 
+PASS Url is a mail address - should throw SYNTAX_ERR 
+PASS Url is about:blank - should throw SYNTAX_ERR 
+PASS Url is ?test - should throw SYNTAX_ERR 
+PASS Url is #test - should throw SYNTAX_ERR 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any.js
new file mode 100644 (file)
index 0000000..5ae25a2
--- /dev/null
@@ -0,0 +1,32 @@
+// META: script=websocket.sub.js
+
+var wsocket;
+test(function() {
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket = new WebSocket("/echo")
+  });
+}, "Url is /echo - should throw SYNTAX_ERR");
+
+test(function() {
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket = new WebSocket("mailto:microsoft@microsoft.com")
+  });
+}, "Url is a mail address - should throw SYNTAX_ERR");
+
+test(function() {
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket = new WebSocket("about:blank")
+  });
+}, "Url is about:blank - should throw SYNTAX_ERR");
+
+test(function() {
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket = new WebSocket("?test")
+  });
+}, "Url is ?test - should throw SYNTAX_ERR");
+
+test(function() {
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket = new WebSocket("#test")
+  });
+}, "Url is #test - should throw SYNTAX_ERR");
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..b0390a8
--- /dev/null
@@ -0,0 +1,7 @@
+
+PASS Url is /echo - should throw SYNTAX_ERR 
+PASS Url is a mail address - should throw SYNTAX_ERR 
+PASS Url is about:blank - should throw SYNTAX_ERR 
+PASS Url is ?test - should throw SYNTAX_ERR 
+PASS Url is #test - should throw SYNTAX_ERR 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-invalid-urls.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any-expected.txt
new file mode 100644 (file)
index 0000000..a811ad5
--- /dev/null
@@ -0,0 +1,4 @@
+CONSOLE MESSAGE: line 19: Wrong url scheme for WebSocket http://localhost:8800/websockets/localhost
+
+PASS Create WebSocket - Pass a non absolute URL - SYNTAX_ERR is thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any.js
new file mode 100644 (file)
index 0000000..9ac9707
--- /dev/null
@@ -0,0 +1,8 @@
+// META: script=websocket.sub.js
+
+test(function() {
+  var wsocket;
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket = CreateWebSocketNonAbsolute()
+  });
+}, "Create WebSocket - Pass a non absolute URL - SYNTAX_ERR is thrown")
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..f217acd
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Create WebSocket - Pass a non absolute URL - SYNTAX_ERR is thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-non-absolute-url.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any-expected.txt
new file mode 100644 (file)
index 0000000..a0186f0
--- /dev/null
@@ -0,0 +1,4 @@
+CONSOLE MESSAGE: line 31: Wrong protocol for WebSocket '\u0080echo'
+
+PASS Create WebSocket - Pass a valid URL and a protocol string with non-ascii values - SYNTAX_ERR is thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any.js
new file mode 100644 (file)
index 0000000..6316994
--- /dev/null
@@ -0,0 +1,9 @@
+// META: script=websocket.sub.js
+
+test(function() {
+  var nonAsciiProtocol = "\u0080echo";
+  var wsocket;
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket = CreateWebSocketNonAsciiProtocol(nonAsciiProtocol)
+  });
+}, "Create WebSocket - Pass a valid URL and a protocol string with non-ascii values - SYNTAX_ERR is thrown")
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..723d9a8
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Create WebSocket - Pass a valid URL and a protocol string with non-ascii values - SYNTAX_ERR is thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-nonAscii-protocol-string.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-on-worker-shutdown.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-on-worker-shutdown.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-on-worker-shutdown.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-on-worker-shutdown.any.js
new file mode 100644 (file)
index 0000000..15f0368
--- /dev/null
@@ -0,0 +1,28 @@
+// META: script=websocket.sub.js
+
+async_test(t => {
+  function workerCode() {
+    close();
+    var ws = new WebSocket(self.location.origin.replace('http', 'ws'));
+    var data = {
+      originalState: ws.readyState,
+      afterCloseState: null
+     };
+
+    ws.close();
+
+    data.afterCloseState = ws.readyState;
+    postMessage(data);
+  }
+
+  var workerBlob = new Blob([workerCode.toString() + ";workerCode();"], {
+    type: "application/javascript"
+  });
+
+  var w = new Worker(URL.createObjectURL(workerBlob));
+  w.onmessage = t.step_func(function(e) {
+    assert_equals(e.data.originalState, WebSocket.CONNECTING, "WebSocket created on worker shutdown is in connecting state.");
+    assert_equals(e.data.afterCloseState, WebSocket.CLOSING, "Closed WebSocket created on worker shutdown is in closing state.");
+    t.done();
+  });
+}, 'WebSocket created after a worker self.close()');
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-on-worker-shutdown.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-on-worker-shutdown.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..8a68d18
--- /dev/null
@@ -0,0 +1,3 @@
+
+FAIL WebSocket created after a worker self.close() Can't find variable: Worker
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-on-worker-shutdown.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-on-worker-shutdown.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any-expected.txt
new file mode 100644 (file)
index 0000000..3ea2ccc
--- /dev/null
@@ -0,0 +1,4 @@
+CONSOLE MESSAGE: line 55: Wrong protocol for WebSocket 'ec ho'
+
+PASS Create WebSocket - Pass a valid URL and a protocol string with a space in it - SYNTAX_ERR is thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any.js
new file mode 100644 (file)
index 0000000..18f6815
--- /dev/null
@@ -0,0 +1,8 @@
+// META: script=websocket.sub.js
+
+test(function() {
+  var wsocket;
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket = CreateWebSocketWithSpaceInProtocol("ec ho")
+  });
+}, "Create WebSocket - Pass a valid URL and a protocol string with a space in it - SYNTAX_ERR is thrown")
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..3799c9a
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Create WebSocket - Pass a valid URL and a protocol string with a space in it - SYNTAX_ERR is thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocol-with-space.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any-expected.txt
new file mode 100644 (file)
index 0000000..210df09
--- /dev/null
@@ -0,0 +1,5 @@
+
+FAIL Create WebSocket - Pass a valid URL and an array of protocol strings with repeated values but different case - SYNTAX_ERR is thrown assert_throws: function "function () {
+    wsocket = CreateWebSocketWithRepeatedProtocolsCaseInsensitive()
+  }" did not throw
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any.js
new file mode 100644 (file)
index 0000000..1d59015
--- /dev/null
@@ -0,0 +1,8 @@
+// META: script=websocket.sub.js
+
+test(function() {
+  var wsocket;
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket = CreateWebSocketWithRepeatedProtocolsCaseInsensitive()
+  });
+}, "Create WebSocket - Pass a valid URL and an array of protocol strings with repeated values but different case - SYNTAX_ERR is thrown")
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..210df09
--- /dev/null
@@ -0,0 +1,5 @@
+
+FAIL Create WebSocket - Pass a valid URL and an array of protocol strings with repeated values but different case - SYNTAX_ERR is thrown assert_throws: function "function () {
+    wsocket = CreateWebSocketWithRepeatedProtocolsCaseInsensitive()
+  }" did not throw
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated-case-insensitive.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any-expected.txt
new file mode 100644 (file)
index 0000000..d68d9ca
--- /dev/null
@@ -0,0 +1,4 @@
+CONSOLE MESSAGE: line 61: WebSocket protocols contain duplicates: 'echo'
+
+PASS Create WebSocket - Pass a valid URL and an array of protocol strings with repeated values - SYNTAX_ERR is thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any.js
new file mode 100644 (file)
index 0000000..bdaf560
--- /dev/null
@@ -0,0 +1,8 @@
+// META: script=websocket.sub.js
+
+test(function() {
+  var wsocket;
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket = CreateWebSocketWithRepeatedProtocols()
+  });
+}, "Create WebSocket - Pass a valid URL and an array of protocol strings with repeated values - SYNTAX_ERR is thrown")
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..3d845e3
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Create WebSocket - Pass a valid URL and an array of protocol strings with repeated values - SYNTAX_ERR is thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-protocols-repeated.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any-expected.txt
new file mode 100644 (file)
index 0000000..e42d3af
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Create WebSocket - Pass a valid URL and array of protocol strings - Connection should be opened 
+PASS Create WebSocket - Pass a valid URL and array of protocol strings - Connection should be closed 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any.js
new file mode 100644 (file)
index 0000000..f816133
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create WebSocket - Pass a valid URL and array of protocol strings - Connection should be opened");
+var testClose = async_test("Create WebSocket - Pass a valid URL and array of protocol strings - Connection should be closed");
+
+var wsocket = CreateWebSocket(false, false, true);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  assert_equals(wsocket.readyState, 1, "readyState should be 1(OPEN)");
+  wsocket.close();
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..e42d3af
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Create WebSocket - Pass a valid URL and array of protocol strings - Connection should be opened 
+PASS Create WebSocket - Pass a valid URL and array of protocol strings - Connection should be closed 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-array-protocols.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any-expected.txt
new file mode 100644 (file)
index 0000000..b0d4a78
--- /dev/null
@@ -0,0 +1,4 @@
+CONSOLE MESSAGE: line 6: WebSocket connection to 'ws://localhost:49001/echo' failed: WebSocket is closed before the connection is established.
+
+PASS Create WebSocket - wsocket.protocol should be empty before connection is established 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any.js
new file mode 100644 (file)
index 0000000..0bf2ff5
--- /dev/null
@@ -0,0 +1,7 @@
+// META: script=websocket.sub.js
+
+test(function() {
+  var wsocket = CreateWebSocket(false, true, false);
+  assert_equals(wsocket.protocol, "", "protocol should be empty");
+  wsocket.close();
+}, "Create WebSocket - wsocket.protocol should be empty before connection is established")
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..c0598fd
--- /dev/null
@@ -0,0 +1,4 @@
+CONSOLE MESSAGE: WebSocket connection to 'ws://localhost:49001/echo' failed: WebSocket is closed before the connection is established.
+
+PASS Create WebSocket - wsocket.protocol should be empty before connection is established 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol-empty.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any-expected.txt
new file mode 100644 (file)
index 0000000..edd3bd6
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Create WebSocket - Pass a valid URL and a protocol string - Connection should be opened 
+PASS Create WebSocket - Pass a valid URL and a protocol string - Connection should be closed 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any.js
new file mode 100644 (file)
index 0000000..2dcae27
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create WebSocket - Pass a valid URL and a protocol string - Connection should be opened");
+var testClose = async_test("Create WebSocket - Pass a valid URL and a protocol string - Connection should be closed");
+
+var wsocket = CreateWebSocket(false, true, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  assert_equals(wsocket.readyState, 1, "readyState should be 1(OPEN)");
+  wsocket.close();
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..edd3bd6
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Create WebSocket - Pass a valid URL and a protocol string - Connection should be opened 
+PASS Create WebSocket - Pass a valid URL and a protocol string - Connection should be closed 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url-protocol.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any-expected.txt
new file mode 100644 (file)
index 0000000..1223b0c
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Create WebSocket - Pass a valid URL - Connection should be opened 
+PASS Create WebSocket - Pass a valid URL - Connection should be closed 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any.js
new file mode 100644 (file)
index 0000000..b84e211
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create WebSocket - Pass a valid URL - Connection should be opened");
+var testClose = async_test("Create WebSocket - Pass a valid URL - Connection should be closed");
+
+var wsocket = CreateWebSocket(false, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  assert_equals(wsocket.readyState, 1, "readyState should be 1(OPEN)");
+  wsocket.close();
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..1223b0c
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Create WebSocket - Pass a valid URL - Connection should be opened 
+PASS Create WebSocket - Pass a valid URL - Connection should be closed 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-valid-url.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any-expected.txt
new file mode 100644 (file)
index 0000000..9afa253
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Create WebSocket - wsocket.url should be set correctly 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any.js
new file mode 100644 (file)
index 0000000..5611671
--- /dev/null
@@ -0,0 +1,7 @@
+// META: script=websocket.sub.js
+
+test(function() {
+  var urlNonDefaultPort = "ws://" + __SERVER__NAME + ":" + __NEW__PORT + "/" + __PATH;
+  var wsocket = new WebSocket(urlNonDefaultPort);
+  assert_equals(wsocket.url, urlNonDefaultPort, "wsocket.url is set correctly");
+}, "Create WebSocket - wsocket.url should be set correctly");
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..9afa253
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Create WebSocket - wsocket.url should be set correctly 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-verify-url-set-non-default-port.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any-expected.txt
new file mode 100644 (file)
index 0000000..242a1f7
--- /dev/null
@@ -0,0 +1,4 @@
+CONSOLE MESSAGE: line 25: Wrong url scheme for WebSocket http://localhost:49001/echo
+
+PASS Create WebSocket - Pass a URL with a non ws/wss scheme - SYNTAX_ERR is thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any.js
new file mode 100644 (file)
index 0000000..78ff739
--- /dev/null
@@ -0,0 +1,8 @@
+// META: script=websocket.sub.js
+
+test(function() {
+  var wsocket;
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket = CreateWebSocketNonWsScheme()
+  });
+}, "Create WebSocket - Pass a URL with a non ws/wss scheme - SYNTAX_ERR is thrown")
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any.worker-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any.worker-expected.txt
new file mode 100644 (file)
index 0000000..8e87411
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Create WebSocket - Pass a URL with a non ws/wss scheme - SYNTAX_ERR is thrown 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Create-wrong-scheme.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/META.yml b/LayoutTests/imported/w3c/web-platform-tests/websockets/META.yml
new file mode 100644 (file)
index 0000000..14e23e0
--- /dev/null
@@ -0,0 +1,4 @@
+spec: https://html.spec.whatwg.org/multipage/web-sockets.html
+suggested_reviewers:
+  - zqzhang
+  - jdm
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/README.md b/LayoutTests/imported/w3c/web-platform-tests/websockets/README.md
new file mode 100644 (file)
index 0000000..b4f173a
--- /dev/null
@@ -0,0 +1,2 @@
+These are the `WebSocket` tests for the
+[Web sockets chapter of the HTML Standard](https://html.spec.whatwg.org/multipage/web-sockets.html#network).
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-reason.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-reason.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-reason.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-reason.any.js
new file mode 100644 (file)
index 0000000..8f28987
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - Close the Connection - close(1000, reason) - Connection should be opened");
+var testClose = async_test("Create Secure WebSocket - Close the Connection - close(1000, reason) - readyState should be in CLOSED state and wasClean is TRUE - Connection should be closed");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.close(1000, "Clean Close");
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(wsocket.readyState, 3, "readyState should be 3(CLOSED)");
+  assert_equals(evt.wasClean, true, "wasClean should be TRUE");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-reason.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-reason.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-verify-code.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-verify-code.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-verify-code.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-verify-code.any.js
new file mode 100644 (file)
index 0000000..a812e0d
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - Close the Connection - close(1000, reason) - Connection should be opened");
+var testClose = async_test("Create Secure WebSocket - Close the Connection - close(1000, reason) - event.code == 1000 and event.reason = 'Clean Close'");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.close(1000, "Clean Close");
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.code, 1000, "CloseEvent.code should be 1000");
+  assert_equals(evt.reason, "Clean Close", "CloseEvent.reason should be the same as the reason sent in close");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-verify-code.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000-verify-code.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000.any.js
new file mode 100644 (file)
index 0000000..2c7e5e9
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - Close the Connection - close(1000) - Connection should be opened");
+var testClose = async_test("Create Secure WebSocket - Close the Connection - close(1000) - readyState should be in CLOSED state and wasClean is TRUE - Connection should be closed");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.close(1000);
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(wsocket.readyState, 3, "readyState should be 3(CLOSED)");
+  assert_equals(evt.wasClean, true, "wasClean should be TRUE");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1000.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005-verify-code.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005-verify-code.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005-verify-code.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005-verify-code.any.js
new file mode 100644 (file)
index 0000000..aa8e37e
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - Close the Connection - close() - Connection should be opened");
+var testClose = async_test("Create Secure WebSocket - Close the Connection - close() - return close code is 1005 - Connection should be closed");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.close();
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.code, 1005, "CloseEvent.code should be 1005");
+  assert_equals(evt.reason, "", "CloseEvent.reason should be empty");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005-verify-code.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005-verify-code.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005.any.js
new file mode 100644 (file)
index 0000000..f5f2cbf
--- /dev/null
@@ -0,0 +1,13 @@
+// META: script=websocket.sub.js
+
+var test = async_test("Create Secure WebSocket - Close the Connection - close(1005) - see '7.1.5.  The WebSocket Connection Close Code' in http://www.ietf.org/rfc/rfc6455.txt");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', test.step_func(function(evt) {
+  assert_throws("INVALID_ACCESS_ERR", function() {
+    wsocket.close(1005, "1005 - reserved code")
+  });
+  test.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-1005.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-2999-reason.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-2999-reason.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-2999-reason.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-2999-reason.any.js
new file mode 100644 (file)
index 0000000..ee1c756
--- /dev/null
@@ -0,0 +1,12 @@
+// META: script=websocket.sub.js
+
+var test = async_test("Create Secure WebSocket - Close the Connection - close(2999, reason) - INVALID_ACCESS_ERR is thrown");
+
+var wsocket = CreateWebSocket(true, false, false);
+
+wsocket.addEventListener('open', test.step_func(function(evt) {
+  assert_throws("INVALID_ACCESS_ERR", function() {
+    wsocket.close(2999, "Close not in range 3000-4999")
+  });
+  test.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-2999-reason.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-2999-reason.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-reason.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-reason.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-reason.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-reason.any.js
new file mode 100644 (file)
index 0000000..d2266dd
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - Close the Connection - close(3000, reason) - Connection should be opened");
+var testClose = async_test("Create Secure WebSocket - Close the Connection - close(3000, reason) - readyState should be in CLOSED state and wasClean is TRUE - Connection should be closed");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.close(3000, "Clean Close with code - 3000");
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(wsocket.readyState, 3, "readyState should be 3(CLOSED)");
+  assert_equals(evt.wasClean, true, "wasClean should be TRUE");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-reason.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-reason.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-verify-code.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-verify-code.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-verify-code.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-verify-code.any.js
new file mode 100644 (file)
index 0000000..bbd5bbb
--- /dev/null
@@ -0,0 +1,19 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - Close the Connection - close(3000, reason) - Connection should be opened");
+var testClose = async_test("Create Secure WebSocket - Close the Connection - close(3000, reason) - verify return code is 3000 - Connection should be closed");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.close(3000, "Clean Close");
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.code, 3000, "CloseEvent.code should be 3000");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-verify-code.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-3000-verify-code.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-4999-reason.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-4999-reason.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-4999-reason.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-4999-reason.any.js
new file mode 100644 (file)
index 0000000..b8429cf
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - Close the Connection - close(4999, reason) - Connection should be opened");
+var testClose = async_test("Create Secure WebSocket - Close the Connection - close(4999, reason) - readyState should be in CLOSED state and wasClean is TRUE - Connection should be closed");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.close(3000, "Clean Close with code - 4999");
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(wsocket.readyState, 3, "readyState should be 3(CLOSED)");
+  assert_equals(evt.wasClean, true, "wasClean should be TRUE");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-4999-reason.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-4999-reason.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-124Bytes.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-124Bytes.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-124Bytes.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-124Bytes.any.js
new file mode 100644 (file)
index 0000000..0786c29
--- /dev/null
@@ -0,0 +1,15 @@
+// META: script=websocket.sub.js
+
+var test = async_test("Create Secure WebSocket - Close the Connection - close(code, 'reason more than 123 bytes') - SYNTAX_ERR is thrown");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', test.step_func(function(evt) {
+  var reason = "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123";
+  assert_equals(reason.length, 124);
+  assert_throws("SYNTAX_ERR", function() {
+    wsocket.close(1000, reason)
+  });
+  test.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-124Bytes.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-124Bytes.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.js
new file mode 100644 (file)
index 0000000..a7b9ea4
--- /dev/null
@@ -0,0 +1,21 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - Close the Connection - close(reason with unpaired surrogates) - connection should get opened");
+var testClose = async_test("Create Secure WebSocket - Close the Connection - close(reason with unpaired surrogates) - connection should get closed");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+var replacementChar = "\uFFFD";
+var reason = "\uD807";
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.close(1000, reason);
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be opened");
+  assert_equals(evt.reason, replacementChar, "reason replaced with replacement character");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-Reason-Unpaired-surrogates.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-onlyReason.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-onlyReason.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-onlyReason.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-onlyReason.any.js
new file mode 100644 (file)
index 0000000..029b8d8
--- /dev/null
@@ -0,0 +1,12 @@
+// META: script=websocket.sub.js
+
+var test = async_test("Create Secure WebSocket - Close the Connection - close(only reason) - INVALID_ACCESS_ERR is thrown");
+
+var wsocket = CreateWebSocket(true, false, false);
+
+wsocket.addEventListener('open', test.step_func(function(evt) {
+  assert_throws("INVALID_ACCESS_ERR", function() {
+    wsocket.close("Close with only reason")
+  });
+  test.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-onlyReason.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-onlyReason.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closed.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closed.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closed.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closed.any.js
new file mode 100644 (file)
index 0000000..0dd46f1
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - Close the Connection - Connection should be opened");
+var testClose = async_test("Create Secure WebSocket - Close the Connection - readyState should be in CLOSED state and wasClean is TRUE - Connection should be closed");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.close();
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(wsocket.readyState, 3, "readyState should be 3(CLOSED)");
+  assert_equals(evt.wasClean, true, "wasClean should be TRUE");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closed.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closed.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closing.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closing.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closing.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closing.any.js
new file mode 100644 (file)
index 0000000..690ca83
--- /dev/null
@@ -0,0 +1,12 @@
+// META: script=websocket.sub.js
+
+var test = async_test("Create Secure WebSocket - Close the Connection - readyState should be in CLOSING state just before onclose is called");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', test.step_func(function(evt) {
+  wsocket.close();
+  assert_equals(wsocket.readyState, 2, "readyState should be 2(CLOSING)");
+  test.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closing.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-readyState-Closing.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-server-initiated-close.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-server-initiated-close.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-server-initiated-close.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-server-initiated-close.any.js
new file mode 100644 (file)
index 0000000..800fbc4
--- /dev/null
@@ -0,0 +1,20 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Create Secure WebSocket - Server initiated Close - Client sends back a CLOSE - Connection should be opened");
+var testClose = async_test("Create Secure WebSocket - Server initiated Close - Client sends back a CLOSE - readyState should be in CLOSED state and wasClean is TRUE - Connection should be closed");
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.send("Goodbye");
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(wsocket.readyState, 3, "readyState should be 3(CLOSED)");
+  assert_equals(evt.wasClean, true, "wasClean should be TRUE");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-server-initiated-close.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-server-initiated-close.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-undefined.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-undefined.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-undefined.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-undefined.any.js
new file mode 100644 (file)
index 0000000..31b36e4
--- /dev/null
@@ -0,0 +1,11 @@
+// META: script=websocket.sub.js
+
+var test = async_test();
+
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', test.step_func(function(evt) {
+  wsocket.close(undefined);
+  test.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-undefined.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Close-undefined.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-65K-data.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-65K-data.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-65K-data.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-65K-data.any.js
new file mode 100644 (file)
index 0000000..ca87653
--- /dev/null
@@ -0,0 +1,31 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Send  65K data on a Secure WebSocket - Connection should be opened");
+var testMessage = async_test("Send 65K data on a Secure WebSocket - Message should be received");
+var testClose = async_test("Send 65K data on a Secure WebSocket - Connection should be closed");
+
+var data = "";
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  for (var i = 0; i < 65000; i++) {
+    data = data + "c";
+  }
+  wsocket.send(data);
+  assert_equals(data.length, wsocket.bufferedAmount);
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('message', testMessage.step_func(function(evt) {
+  assert_equals(evt.data, data);
+  wsocket.close();
+  testMessage.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-65K-data.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-65K-data.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-65K-arraybuffer.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-65K-arraybuffer.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-65K-arraybuffer.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-65K-arraybuffer.any.js
new file mode 100644 (file)
index 0000000..0627e75
--- /dev/null
@@ -0,0 +1,31 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Send 65K binary data on a Secure WebSocket - ArrayBuffer - Connection should be opened");
+var testMessage = async_test("Send 65K binary data on a Secure WebSocket - ArrayBuffer - Message should be received");
+var testClose = async_test("Send 65K binary data on a Secure WebSocket - ArrayBuffer - Connection should be closed");
+
+var data = "";
+var datasize = 65000;
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.binaryType = "arraybuffer";
+  data = new ArrayBuffer(datasize);
+  wsocket.send(data);
+  assert_equals(datasize, wsocket.bufferedAmount);
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('message', testMessage.step_func(function(evt) {
+  assert_equals(evt.data.byteLength, datasize);
+  wsocket.close();
+  testMessage.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-65K-arraybuffer.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-65K-arraybuffer.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybuffer.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybuffer.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybuffer.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybuffer.any.js
new file mode 100644 (file)
index 0000000..5778a24
--- /dev/null
@@ -0,0 +1,31 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Send binary data on a Secure WebSocket - ArrayBuffer - Connection should be opened");
+var testMessage = async_test("Send binary data on a Secure WebSocket - ArrayBuffer - Message should be received");
+var testClose = async_test("Send binary data on a Secure WebSocket - ArrayBuffer - Connection should be closed");
+
+var data = "";
+var datasize = 15;
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.binaryType = "arraybuffer";
+  data = new ArrayBuffer(datasize);
+  wsocket.send(data);
+  assert_equals(datasize, wsocket.bufferedAmount);
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('message', testMessage.step_func(function(evt) {
+  assert_equals(evt.data.byteLength, datasize);
+  wsocket.close();
+  testMessage.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybuffer.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybuffer.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float32.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float32.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float32.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float32.any.js
new file mode 100644 (file)
index 0000000..2672319
--- /dev/null
@@ -0,0 +1,38 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Send binary data on a WebSocket - ArrayBufferView - Float32Array - Connection should be opened");
+var testMessage = async_test("Send binary data on a WebSocket - ArrayBufferView - Float32Array - Message should be received");
+var testClose = async_test("Send binary data on a WebSocket - ArrayBufferView - Float32Array - Connection should be closed");
+
+var data = "";
+var datasize = 8;
+var view;
+var wsocket = CreateWebSocket(false, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.binaryType = "arraybuffer";
+  data = new ArrayBuffer(datasize);
+  view = new Float32Array(data);
+  for (var i = 0; i < 2; i++) {
+    view[i] = i;
+  }
+  wsocket.send(view);
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('message', testMessage.step_func(function(evt) {
+  var resultView = new Float32Array(evt.data);
+  for (var i = 0; i < resultView.length; i++) {
+    assert_equals(resultView[i], view[i], "ArrayBufferView returned is the same");
+  }
+  wsocket.close();
+  testMessage.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float32.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float32.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float64.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float64.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float64.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float64.any.js
new file mode 100644 (file)
index 0000000..993d5fc
--- /dev/null
@@ -0,0 +1,38 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Send binary data on a WebSocket - ArrayBufferView - Float64Array - Connection should be opened");
+var testMessage = async_test("Send binary data on a WebSocket - ArrayBufferView - Float64Array - Message should be received");
+var testClose = async_test("Send binary data on a WebSocket - ArrayBufferView - Float64Array - Connection should be closed");
+
+var data = "";
+var datasize = 8;
+var view;
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.binaryType = "arraybuffer";
+  data = new ArrayBuffer(datasize);
+  view = new Float64Array(data);
+  for (var i = 0; i < 1; i++) {
+    view[i] = i;
+  }
+  wsocket.send(view);
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('message', testMessage.step_func(function(evt) {
+  var resultView = new Float64Array(evt.data);
+  for (var i = 0; i < resultView.length; i++) {
+    assert_equals(resultView[i], view[i], "ArrayBufferView returned is the same");
+  }
+  wsocket.close();
+  testMessage.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float64.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-float64.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-int32.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-int32.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-int32.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-int32.any.js
new file mode 100644 (file)
index 0000000..58fe02b
--- /dev/null
@@ -0,0 +1,38 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Send binary data on a WebSocket - ArrayBufferView - Int32Array - Connection should be opened");
+var testMessage = async_test("Send binary data on a WebSocket - ArrayBufferView - Int32Array - Message should be received");
+var testClose = async_test("Send binary data on a WebSocket - ArrayBufferView - Int32Array - Connection should be closed");
+
+var data = "";
+var datasize = 8;
+var view;
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.binaryType = "arraybuffer";
+  data = new ArrayBuffer(datasize);
+  view = new Int32Array(data);
+  for (var i = 0; i < 2; i++) {
+    view[i] = i;
+  }
+  wsocket.send(view);
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('message', testMessage.step_func(function(evt) {
+  var resultView = new Int32Array(evt.data);
+  for (var i = 0; i < resultView.length; i++) {
+    assert_equals(resultView[i], view[i], "ArrayBufferView returned is the same");
+  }
+  wsocket.close();
+  testMessage.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-int32.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-int32.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint16-offset-length.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint16-offset-length.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint16-offset-length.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint16-offset-length.any.js
new file mode 100644 (file)
index 0000000..26231b4
--- /dev/null
@@ -0,0 +1,38 @@
+// META: script=websocket.sub.js
+
+var testOpen = async_test("Send binary data on a WebSocket - ArrayBufferView - Uint16Array with offset and length - Connection should be opened");
+var testMessage = async_test("Send binary data on a WebSocket - ArrayBufferView - Uint16Array with offset and length - Message should be received");
+var testClose = async_test("Send binary data on a WebSocket - ArrayBufferView - Uint16Array with offset and length - Connection should be closed");
+
+var data = "";
+var datasize = 8;
+var view;
+var wsocket = CreateWebSocket(true, false, false);
+var isOpenCalled = false;
+
+wsocket.addEventListener('open', testOpen.step_func(function(evt) {
+  wsocket.binaryType = "arraybuffer";
+  data = new ArrayBuffer(datasize);
+  view = new Uint16Array(data, 2, 2);
+  for (var i = 0; i < 4; i++) {
+    view[i] = i;
+  }
+  wsocket.send(view);
+  isOpenCalled = true;
+  testOpen.done();
+}), true);
+
+wsocket.addEventListener('message', testMessage.step_func(function(evt) {
+  var resultView = new Uint16Array(evt.data);
+  for (var i = 0; i < resultView.length; i++) {
+    assert_equals(resultView[i], view[i], "ArrayBufferView returned is the same");
+  }
+  wsocket.close();
+  testMessage.done();
+}), true);
+
+wsocket.addEventListener('close', testClose.step_func(function(evt) {
+  assert_true(isOpenCalled, "WebSocket connection should be open");
+  assert_equals(evt.wasClean, true, "wasClean should be true");
+  testClose.done();
+}), true);
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint16-offset-length.any.worker.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint16-offset-length.any.worker.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint32-offset.any.html b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint32-offset.any.html
new file mode 100644 (file)
index 0000000..2382913
--- /dev/null
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
diff --git a/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint32-offset.any.js b/LayoutTests/imported/w3c/web-platform-tests/websockets/Secure-Send-binary-arraybufferview-uint32-offset.any.js
new file mode 100644 (file)
index 0000000..d2995ae
--- /dev/null