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

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

Issue 23531015: Make CSSHostRule.addRule() / deleteRule() arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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') | Source/core/css/CSSHostRule.idl » ('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 62195677edfe987b4a7863c2002c4f153295d8a4..bb8129a45ddd1a55ab7152574b95dd7d1cc64537 100644
--- a/LayoutTests/fast/dom/shadow/css-hostrule-api-expected.txt
+++ b/LayoutTests/fast/dom/shadow/css-hostrule-api-expected.txt
@@ -23,6 +23,14 @@ PASS getComputedStyle(host).borderColor is "rgb(0, 0, 255)"
PASS hostRule.cssRules.length is 1
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.cssRules.length is 1
+PASS hostRule.insertRule() threw exception TypeError: Not enough arguments.
+PASS hostRule.cssRules.length is 1
+PASS hostRule.deleteRule() threw exception TypeError: Not enough arguments.
+PASS hostRule.cssRules.length is 1
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « LayoutTests/fast/dom/shadow/css-hostrule-api.html ('k') | Source/core/css/CSSHostRule.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698