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

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

Issue 1321943002: Support for CSSOM CSSNamespaceRule interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per review comments Created 5 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 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
(...skipping 19 matching lines...) Expand all
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 'CSSSupportsRule': the rule '@charset "UTF-8"' is invalid and cannot be parsed..
40 PASS rules[0].insertRule('@namespace ""', 2) threw exception SyntaxError: Failed to execute 'insertRule' on 'CSSSupportsRule': the rule '@namespace ""' is inval id 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..
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 'CSSSu pportsRule': '@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
(...skipping 11 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
« no previous file with comments | « LayoutTests/css3/supports-cssom.html ('k') | LayoutTests/cssom/insertrule-namespace-mapping.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698