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

Unified Diff: LayoutTests/fast/dom/shadow/css-hostrule-api.html

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 7 years, 3 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/dom/shadow/css-hostrule-api.html
diff --git a/LayoutTests/fast/dom/shadow/css-hostrule-api.html b/LayoutTests/fast/dom/shadow/css-hostrule-api.html
index 2813f82793480a406ccac2575db48ddb1d520791..b198f69fbdedf28e658c317d514b8671a9f5929d 100644
--- a/LayoutTests/fast/dom/shadow/css-hostrule-api.html
+++ b/LayoutTests/fast/dom/shadow/css-hostrule-api.html
@@ -44,11 +44,11 @@ shouldBe("hostRule.cssRules[0].cssText", '"div { border-color: blue; }"');
debug("Error cases");
shouldBe("hostRule.cssRules.length", '1');
-shouldThrow("hostRule.insertRule('#host { border-color: green; }')", "'TypeError: Not enough arguments'");
+shouldThrow("hostRule.insertRule('#host { border-color: green; }')", '"TypeError: Failed to execute \'insertRule\' on \'CSSHostRule\': 2 arguments required, but only 1 present."');
shouldBe("hostRule.cssRules.length", '1');
-shouldThrow("hostRule.insertRule()", "'TypeError: Not enough arguments'");
+shouldThrow("hostRule.insertRule()", '"TypeError: Failed to execute \'insertRule\' on \'CSSHostRule\': 2 arguments required, but only 1 present."');
shouldBe("hostRule.cssRules.length", '1');
-shouldThrow("hostRule.deleteRule()", "'TypeError: Not enough arguments'");
+shouldThrow("hostRule.deleteRule()", '"TypeError: Failed to execute \'deleteRule\' on \'CSSHostRule\': 1 argument required, but only 0 present."');
shouldBe("hostRule.cssRules.length", '1');
</script>

Powered by Google App Engine
This is Rietveld 408576698