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.js2
1 files changed, 1 insertions, 1 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 18f6815a489..e7c1bea4de3 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
@@ -2,7 +2,7 @@
test(function() {
var wsocket;
- assert_throws("SYNTAX_ERR", function() {
+ assert_throws_dom("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")