aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.js
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-05-01 13:29:42 -0400
committerGitHub <noreply@github.com>2018-05-01 13:29:42 -0400
commit245dcc2118c88f7b51d65c124a85d74dd356a77a (patch)
tree96553a19391c1b8c1890e39111f94e65c8cfd659 /tests/wpt/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.js
parent44cd8c0a7be61498aad7fda601751c6b4800168e (diff)
parent75286ca848b938a36f1f2cab7a754671e96d4b82 (diff)
downloadservo-245dcc2118c88f7b51d65c124a85d74dd356a77a.tar.gz
servo-245dcc2118c88f7b51d65c124a85d74dd356a77a.zip
Auto merge of #20725 - servo-wpt-sync:wpt_update_30-04-2018, r=jdm
Sync WPT with upstream (30-04-2018) Automated downstream sync of changes from upstream as of 30-04-2018. [no-wpt-sync] <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20725) <!-- Reviewable:end -->
Diffstat (limited to 'tests/wpt/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.js')
-rw-r--r--tests/wpt/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/wpt/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.js b/tests/wpt/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.js
index d2b10541c43..fcaf8a36454 100644
--- a/tests/wpt/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.js
+++ b/tests/wpt/web-platform-tests/websockets/Create-Secure-valid-url-array-protocols.any.js
@@ -1,20 +1,20 @@
// META: script=websocket.sub.js
- var testOpen = async_test("W3C WebSocket API - Create Secure WebSocket - Pass a valid URL and array of protocol strings - Connection should be opened");
- var testClose = async_test("W3C WebSocket API - Create Secure WebSocket - Pass a valid URL and array of protocol strings - Connection should be closed");
+var testOpen = async_test("W3C WebSocket API - Create Secure WebSocket - Pass a valid URL and array of protocol strings - Connection should be opened");
+var testClose = async_test("W3C WebSocket API - 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;
+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('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);
+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);