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

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

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
« no previous file with comments | « LayoutTests/fast/dom/shadow/css-hostrule-api.html ('k') | LayoutTests/fast/dom/text-api-arguments.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/css-hostrule-api-expected.txt
diff --git a/LayoutTests/fast/dom/shadow/css-hostrule-api-expected.txt b/LayoutTests/fast/dom/shadow/css-hostrule-api-expected.txt
index bb8129a45ddd1a55ab7152574b95dd7d1cc64537..5f8e20e29a9c043263a5f7006961a75501d3c063 100644
--- a/LayoutTests/fast/dom/shadow/css-hostrule-api-expected.txt
+++ b/LayoutTests/fast/dom/shadow/css-hostrule-api-expected.txt
@@ -25,11 +25,11 @@ PASS hostRule.cssText is "@host { \n div { border-color: blue; }\n}"
PASS hostRule.cssRules[0].cssText is "div { border-color: blue; }"
Error cases
PASS hostRule.cssRules.length is 1
-PASS hostRule.insertRule('#host { border-color: green; }') threw exception TypeError: Not enough arguments.
+PASS hostRule.insertRule('#host { border-color: green; }') threw exception TypeError: Failed to execute 'insertRule' on 'CSSHostRule': 2 arguments required, but only 1 present..
PASS hostRule.cssRules.length is 1
-PASS hostRule.insertRule() threw exception TypeError: Not enough arguments.
+FAIL hostRule.insertRule() should throw TypeError: Failed to execute 'insertRule' on 'CSSHostRule': 2 arguments required, but only 1 present.. Threw exception TypeError: Failed to execute 'insertRule' on 'CSSHostRule': 2 arguments required, but only 0 present..
PASS hostRule.cssRules.length is 1
-PASS hostRule.deleteRule() threw exception TypeError: Not enough arguments.
+PASS hostRule.deleteRule() threw exception TypeError: Failed to execute 'deleteRule' on 'CSSHostRule': 1 argument required, but only 0 present..
PASS hostRule.cssRules.length is 1
PASS successfullyParsed is true
« no previous file with comments | « LayoutTests/fast/dom/shadow/css-hostrule-api.html ('k') | LayoutTests/fast/dom/text-api-arguments.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698