Index: LayoutTests/http/tests/websocket/tests/hybi/invalid-subprotocols.html |
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/invalid-subprotocols.html b/LayoutTests/http/tests/websocket/tests/hybi/invalid-subprotocols.html |
index 34ed8c7b2a5dacb19171f67edb1d28d874b01ef2..79d594540979f416a5777e2da3aabf676219c782 100644 |
--- a/LayoutTests/http/tests/websocket/tests/hybi/invalid-subprotocols.html |
+++ b/LayoutTests/http/tests/websocket/tests/hybi/invalid-subprotocols.html |
@@ -10,12 +10,12 @@ |
description("WebSocket should fail if invalid subprotocols are specified"); |
var url = "ws://127.0.0.1:8880/websocket/tests/simple"; |
-shouldThrow("new WebSocket(url, 'a b')", "'Error: SyntaxError: DOM Exception 12'"); |
-shouldThrow("new WebSocket(url, 'a,b')", "'Error: SyntaxError: DOM Exception 12'"); |
-shouldThrow("new WebSocket(url, 'a\\0b')", "'Error: SyntaxError: DOM Exception 12'"); |
-shouldThrow("new WebSocket(url, '\\u3042')", "'Error: SyntaxError: DOM Exception 12'"); |
-shouldThrow("new WebSocket(url, ['a', 'b', 'c d'])", "'Error: SyntaxError: DOM Exception 12'"); |
-shouldThrow("new WebSocket(url, ['a', 'b', 'c', 'a'])", "'Error: SyntaxError: DOM Exception 12'"); |
+shouldThrow("new WebSocket(url, 'a b')", "'SyntaxError: An invalid or illegal string was specified.'"); |
+shouldThrow("new WebSocket(url, 'a,b')", "'SyntaxError: An invalid or illegal string was specified.'"); |
+shouldThrow("new WebSocket(url, 'a\\0b')", "'SyntaxError: An invalid or illegal string was specified.'"); |
+shouldThrow("new WebSocket(url, '\\u3042')", "'SyntaxError: An invalid or illegal string was specified.'"); |
+shouldThrow("new WebSocket(url, ['a', 'b', 'c d'])", "'SyntaxError: An invalid or illegal string was specified.'"); |
+shouldThrow("new WebSocket(url, ['a', 'b', 'c', 'a'])", "'SyntaxError: An invalid or illegal string was specified.'"); |
</script> |
<script src="/js-test-resources/js-test-post.js"></script> |