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

Side by Side Diff: third_party/WebKit/LayoutTests/css3/supports-cssom-expected.txt

Issue 2416893002: CSSMediaRule and CSSSupportsRule inherit from CSSConditionRule (Closed)
Patch Set: Fix tracing Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 Test CSSSupportRule. 1 Test CSSSupportRule.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS CSSRule.SUPPORTS_RULE is defined. 6 PASS CSSRule.SUPPORTS_RULE is defined.
7 rules = document.styleSheets[1].cssRules 7 rules = document.styleSheets[1].cssRules
8 PASS rules.length is 4 8 PASS rules.length is 4
9 PASS rules[0] is an instance of CSSSupportsRule 9 PASS rules[0] is an instance of CSSSupportsRule
10 PASS rules[0].type is CSSRule.SUPPORTS_RULE 10 PASS rules[0].type is CSSRule.SUPPORTS_RULE
11 PASS rules[0].cssRules.length is 2 11 PASS rules[0].cssRules.length is 2
12 PASS rules[0].cssRules[0].type is CSSRule.STYLE_RULE 12 PASS rules[0].cssRules[0].type is CSSRule.STYLE_RULE
13 PASS rules[0].cssRules[1] is an instance of CSSSupportsRule 13 PASS rules[0].cssRules[1] is an instance of CSSSupportsRule
14 PASS rules[0].cssRules[1].type is CSSRule.SUPPORTS_RULE 14 PASS rules[0].cssRules[1].type is CSSRule.SUPPORTS_RULE
15 PASS rules[0].cssRules[1].cssRules.length is 1 15 PASS rules[0].cssRules[1].cssRules.length is 1
16 PASS rules[0].cssRules[1].cssRules[0].type is CSSRule.STYLE_RULE 16 PASS rules[0].cssRules[1].cssRules[0].type is CSSRule.STYLE_RULE
17 PASS rules[0].conditionText is "(width: 0)" 17 PASS rules[0].conditionText is "(width: 0)"
18 PASS rules[0].cssText is "@supports (width: 0) {\n s { width: 0px; }\n @suppor ts (width: 1) {\n s { color: rgb(0, 0, 0); }\n}\n}" 18 PASS rules[0].cssText is "@supports (width: 0) {\n s { width: 0px; }\n @suppor ts (width: 1) {\n s { color: rgb(0, 0, 0); }\n}\n}"
19 19
20 Missing argument exceptions. 20 Missing argument exceptions.
21 PASS rules[0].insertRule() threw exception TypeError: Failed to execute 'insertR ule' on 'CSSSupportsRule': 2 arguments required, but only 0 present.. 21 PASS rules[0].insertRule() threw exception TypeError: Failed to execute 'insertR ule' on 'CSSGroupingRule': 2 arguments required, but only 0 present..
22 PASS rules[0].insertRule('@media all {}') threw exception TypeError: Failed to e xecute 'insertRule' on 'CSSSupportsRule': 2 arguments required, but only 1 prese nt.. 22 PASS rules[0].insertRule('@media all {}') threw exception TypeError: Failed to e xecute 'insertRule' on 'CSSGroupingRule': 2 arguments required, but only 1 prese nt..
23 PASS rules[0].deleteRule() threw exception TypeError: Failed to execute 'deleteR ule' on 'CSSSupportsRule': 1 argument required, but only 0 present.. 23 PASS rules[0].deleteRule() threw exception TypeError: Failed to execute 'deleteR ule' on 'CSSGroupingRule': 1 argument required, but only 0 present..
24 24
25 Inserting and deleting rules. 25 Inserting and deleting rules.
26 rules[0].insertRule('@media all { #s { width: 0px; } }', 2) 26 rules[0].insertRule('@media all { #s { width: 0px; } }', 2)
27 PASS rules[0].cssRules.length is 3 27 PASS rules[0].cssRules.length is 3
28 PASS rules[0].cssRules[2].type is CSSRule.MEDIA_RULE 28 PASS rules[0].cssRules[2].type is CSSRule.MEDIA_RULE
29 rules[0].deleteRule(2) 29 rules[0].deleteRule(2)
30 PASS rules[0].cssRules.length is 2 30 PASS rules[0].cssRules.length is 2
31 rules[0].cssRules[1].insertRule('@supports (display: rainbow) {}', 1) 31 rules[0].cssRules[1].insertRule('@supports (display: rainbow) {}', 1)
32 PASS rules[0].cssRules[1].cssRules.length is 2 32 PASS rules[0].cssRules[1].cssRules.length is 2
33 PASS rules[0].cssRules[1].cssRules[1] is an instance of CSSSupportsRule 33 PASS rules[0].cssRules[1].cssRules[1] is an instance of CSSSupportsRule
34 PASS rules[0].cssRules[1].cssRules[1].type is CSSRule.SUPPORTS_RULE 34 PASS rules[0].cssRules[1].cssRules[1].type is CSSRule.SUPPORTS_RULE
35 rules[0].cssRules[1].deleteRule(1) 35 rules[0].cssRules[1].deleteRule(1)
36 PASS rules[0].cssRules.length is 2 36 PASS rules[0].cssRules.length is 2
37 37
38 @charset, @namespace, @import rules are not allowed inside @supports. 38 @charset, @namespace, @import rules are not allowed inside @supports.
39 PASS rules[0].insertRule('@charset "UTF-8"', 2) threw exception SyntaxError: Fai led to execute 'insertRule' on 'CSSSupportsRule': the rule '@charset "UTF-8"' is invalid and cannot be parsed.. 39 PASS rules[0].insertRule('@charset "UTF-8"', 2) threw exception SyntaxError: Fai led to execute 'insertRule' on 'CSSGroupingRule': the rule '@charset "UTF-8"' is invalid and cannot be parsed..
40 PASS rules[0].insertRule('@namespace ""', 2) threw exception HierarchyRequestErr or: Failed to execute 'insertRule' on 'CSSSupportsRule': '@namespace' rules cann ot be inserted inside a group rule.. 40 PASS rules[0].insertRule('@namespace ""', 2) threw exception HierarchyRequestErr or: Failed to execute 'insertRule' on 'CSSGroupingRule': '@namespace' rules cann ot be inserted inside a group rule..
41 PASS rules[0].insertRule('@import url("../fast/cssom/resources/import.css")', 2) threw exception HierarchyRequestError: Failed to execute 'insertRule' on 'CSSSu pportsRule': '@import' rules cannot be inserted inside a group rule.. 41 PASS rules[0].insertRule('@import url("../fast/cssom/resources/import.css")', 2) threw exception HierarchyRequestError: Failed to execute 'insertRule' on 'CSSGr oupingRule': '@import' rules cannot be inserted inside a group rule..
42 42
43 Whitespace and formatting should be preserved within the condition, whitespace o utside the condition should be trimmed. 43 Whitespace and formatting should be preserved within the condition, whitespace o utside the condition should be trimmed.
44 PASS rules[1].conditionText is "(( ( padding: 0) and (display: none)) or (displa y: rainbow))" 44 PASS rules[1].conditionText is "(( ( padding: 0) and (display: none)) or (displa y: rainbow))"
45 45
46 @supports rule nested inside a media rule. 46 @supports rule nested inside a media rule.
47 PASS rules[2].type is CSSRule.MEDIA_RULE 47 PASS rules[2].type is CSSRule.MEDIA_RULE
48 PASS rules[2].cssRules.length is 1 48 PASS rules[2].cssRules.length is 1
49 PASS rules[2].cssRules[0] is an instance of CSSSupportsRule 49 PASS rules[2].cssRules[0] is an instance of CSSSupportsRule
50 PASS rules[2].cssRules[0].type is CSSRule.SUPPORTS_RULE 50 PASS rules[2].cssRules[0].type is CSSRule.SUPPORTS_RULE
51 PASS rules[2].cssRules[0].conditionText is "( padding: 0)" 51 PASS rules[2].cssRules[0].conditionText is "( padding: 0)"
(...skipping 10 matching lines...) Expand all
62 PASS rules[0].type is CSSRule.SUPPORTS_RULE 62 PASS rules[0].type is CSSRule.SUPPORTS_RULE
63 PASS rules[0].cssRules.length is 2 63 PASS rules[0].cssRules.length is 2
64 PASS rules[0].cssRules[0].type is CSSRule.STYLE_RULE 64 PASS rules[0].cssRules[0].type is CSSRule.STYLE_RULE
65 PASS rules[0].cssRules[1].type is CSSRule.SUPPORTS_RULE 65 PASS rules[0].cssRules[1].type is CSSRule.SUPPORTS_RULE
66 PASS rules[0].cssRules[1].cssRules.length is 1 66 PASS rules[0].cssRules[1].cssRules.length is 1
67 PASS rules[0].cssRules[1].cssRules[0].type is CSSRule.STYLE_RULE 67 PASS rules[0].cssRules[1].cssRules[0].type is CSSRule.STYLE_RULE
68 PASS successfullyParsed is true 68 PASS successfullyParsed is true
69 69
70 TEST COMPLETE 70 TEST COMPLETE
71 71
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698