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

Unified Diff: LayoutTests/fast/css/css3-nth-tokens-script.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/fast/css/css3-nth-tokens-script.html
diff --git a/LayoutTests/fast/css/css3-nth-tokens-script.html b/LayoutTests/fast/css/css3-nth-tokens-script.html
index fdbac2ffd98b4c955b64e18884e3977372c05bf4..4baf94f97da51ad3a9960a3502dc1e1da7380598 100644
--- a/LayoutTests/fast/css/css3-nth-tokens-script.html
+++ b/LayoutTests/fast/css/css3-nth-tokens-script.html
@@ -55,13 +55,13 @@ shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('colo
el = document.querySelector("span.c2:nth-of-type(even)");
shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('color')", "'rgb(0, 128, 0)'");
-shouldThrow('document.querySelector("span.c3:nth-of-type(n3)")', '"Error: SyntaxError: DOM Exception 12"');
+shouldThrow('document.querySelector("span.c3:nth-of-type(n3)")', '"SyntaxError: An invalid or illegal string was specified."');
-shouldThrow('document.querySelector("span.c3:nth-of-type(foo)")', '"Error: SyntaxError: DOM Exception 12"');
+shouldThrow('document.querySelector("span.c3:nth-of-type(foo)")', '"SyntaxError: An invalid or illegal string was specified."');
-shouldThrow('document.querySelector("span.c3:nth-of-type(2n3)")', '"Error: SyntaxError: DOM Exception 12"');
+shouldThrow('document.querySelector("span.c3:nth-of-type(2n3)")', '"SyntaxError: An invalid or illegal string was specified."');
-shouldThrow('document.querySelector("span.c3:nth-of-type(foon + bar)")', '"Error: SyntaxError: DOM Exception 12"');
+shouldThrow('document.querySelector("span.c3:nth-of-type(foon + bar)")', '"SyntaxError: An invalid or illegal string was specified."');
</script>
<script src="../js/resources/js-test-post.js"></script>
</body>

Powered by Google App Engine
This is Rietveld 408576698