Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: LayoutTests/http/tests/websocket/tests/hybi/invalid-subprotocols.html

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698