aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/websockets/Create-Secure-url-with-space.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/websockets/Create-Secure-url-with-space.any.js')
-rw-r--r--tests/wpt/web-platform-tests/websockets/Create-Secure-url-with-space.any.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/wpt/web-platform-tests/websockets/Create-Secure-url-with-space.any.js b/tests/wpt/web-platform-tests/websockets/Create-Secure-url-with-space.any.js
index 9c979953fb4..94265c6182c 100644
--- a/tests/wpt/web-platform-tests/websockets/Create-Secure-url-with-space.any.js
+++ b/tests/wpt/web-platform-tests/websockets/Create-Secure-url-with-space.any.js
@@ -1,7 +1,9 @@
// META: script=websocket.sub.js
- test(function () {
- var wsocket;
- var spaceUrl = "web platform.test";
- assert_throws("SYNTAX_ERR", function () { wsocket = CreateWebSocketWithSpaceInUrl(spaceUrl) });
- }, "W3C WebSocket API - Create Secure WebSocket - Pass a URL with a space - SYNTAX_ERR should be thrown")
+test(function() {
+ var wsocket;
+ var spaceUrl = "web platform.test";
+ assert_throws("SYNTAX_ERR", function() {
+ wsocket = CreateWebSocketWithSpaceInUrl(spaceUrl)
+ });
+}, "W3C WebSocket API - Create Secure WebSocket - Pass a URL with a space - SYNTAX_ERR should be thrown")