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

Unified Diff: LayoutTests/css3/supports-cssom.html

Issue 797853002: Expose the CSSSupportsRule interface object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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/css3/supports-cssom-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css3/supports-cssom.html
diff --git a/LayoutTests/css3/supports-cssom.html b/LayoutTests/css3/supports-cssom.html
index d08638d3461430e3e3b405c32e3de68aae533a9f..84536b07a7be519c2425f6c16817272f529cce5e 100644
--- a/LayoutTests/css3/supports-cssom.html
+++ b/LayoutTests/css3/supports-cssom.html
@@ -58,9 +58,11 @@
evalAndLog("rules = document.styleSheets[1].cssRules");
shouldEvaluateTo("rules.length", 4);
+ shouldBeType("rules[0]", "CSSSupportsRule");
shouldBe("rules[0].type", "CSSRule.SUPPORTS_RULE");
shouldEvaluateTo("rules[0].cssRules.length", 2);
shouldBe("rules[0].cssRules[0].type", "CSSRule.STYLE_RULE");
+ shouldBeType("rules[0].cssRules[1]", "CSSSupportsRule");
shouldBe("rules[0].cssRules[1].type", "CSSRule.SUPPORTS_RULE");
shouldEvaluateTo("rules[0].cssRules[1].cssRules.length", 1);
shouldBe("rules[0].cssRules[1].cssRules[0].type", "CSSRule.STYLE_RULE");
@@ -82,6 +84,7 @@
evalAndLog("rules[0].cssRules[1].insertRule('@supports (display: rainbow) {}', 1)");
shouldEvaluateTo("rules[0].cssRules[1].cssRules.length", 2);
+ shouldBeType("rules[0].cssRules[1].cssRules[1]", "CSSSupportsRule");
shouldBe("rules[0].cssRules[1].cssRules[1].type", "CSSRule.SUPPORTS_RULE");
evalAndLog("rules[0].cssRules[1].deleteRule(1)");
shouldEvaluateTo("rules[0].cssRules.length", 2);
@@ -99,6 +102,7 @@
debug("\n@supports rule nested inside a media rule.");
shouldBe("rules[2].type", "CSSRule.MEDIA_RULE");
shouldEvaluateTo("rules[2].cssRules.length", 1);
+ shouldBeType("rules[2].cssRules[0]", "CSSSupportsRule");
shouldBe("rules[2].cssRules[0].type", "CSSRule.SUPPORTS_RULE");
shouldBeEqualToString("rules[2].cssRules[0].conditionText", "( padding: 0)");
shouldEvaluateTo("rules[0].cssRules[1].cssRules.length", 1);
« no previous file with comments | « no previous file | LayoutTests/css3/supports-cssom-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698