aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/websockets/Create-protocol-with-space.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/websockets/Create-protocol-with-space.any.js')
-rw-r--r--tests/wpt/web-platform-tests/websockets/Create-protocol-with-space.any.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/wpt/web-platform-tests/websockets/Create-protocol-with-space.any.js b/tests/wpt/web-platform-tests/websockets/Create-protocol-with-space.any.js
index 0f8c82e0ea4..b3c14d8e171 100644
--- a/tests/wpt/web-platform-tests/websockets/Create-protocol-with-space.any.js
+++ b/tests/wpt/web-platform-tests/websockets/Create-protocol-with-space.any.js
@@ -1,6 +1,8 @@
// META: script=websocket.sub.js
- test(function () {
- var wsocket;
- assert_throws("SYNTAX_ERR", function () { wsocket = CreateWebSocketWithSpaceInProtocol("ec ho") });
- }, "W3C WebSocket API - Create WebSocket - Pass a valid URL and a protocol string with a space in it - SYNTAX_ERR is thrown")
+test(function() {
+ var wsocket;
+ assert_throws("SYNTAX_ERR", function() {
+ wsocket = CreateWebSocketWithSpaceInProtocol("ec ho")
+ });
+}, "W3C WebSocket API - Create WebSocket - Pass a valid URL and a protocol string with a space in it - SYNTAX_ERR is thrown")