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

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

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 | « no previous file | LayoutTests/fast/dom/shadow/css-hostrule-api-expected.txt » ('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.html
diff --git a/LayoutTests/fast/dom/shadow/css-hostrule-api.html b/LayoutTests/fast/dom/shadow/css-hostrule-api.html
index 06d278695724470a2605267ab749002254b98e2e..2813f82793480a406ccac2575db48ddb1d520791 100644
--- a/LayoutTests/fast/dom/shadow/css-hostrule-api.html
+++ b/LayoutTests/fast/dom/shadow/css-hostrule-api.html
@@ -42,6 +42,15 @@ shouldBe("hostRule.cssRules.length", '1');
shouldBe("hostRule.cssText", '"@host { \\n div { border-color: blue; }\\n}"');
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'");
+shouldBe("hostRule.cssRules.length", '1');
+shouldThrow("hostRule.insertRule()", "'TypeError: Not enough arguments'");
+shouldBe("hostRule.cssRules.length", '1');
+shouldThrow("hostRule.deleteRule()", "'TypeError: Not enough arguments'");
+shouldBe("hostRule.cssRules.length", '1');
+
</script>
<script src="../../js/resources/js-test-post.js"></script>
</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/css-hostrule-api-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698