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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 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 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].type is CSSRule.SUPPORTS_RULE 9 PASS rules[0].type is CSSRule.SUPPORTS_RULE
10 PASS rules[0].cssRules.length is 2 10 PASS rules[0].cssRules.length is 2
(...skipping 10 matching lines...) Expand all
21 PASS rules[0].cssRules[2].type is CSSRule.MEDIA_RULE 21 PASS rules[0].cssRules[2].type is CSSRule.MEDIA_RULE
22 rules[0].deleteRule(2) 22 rules[0].deleteRule(2)
23 PASS rules[0].cssRules.length is 2 23 PASS rules[0].cssRules.length is 2
24 rules[0].cssRules[1].insertRule('@supports (display: rainbow) {}', 1) 24 rules[0].cssRules[1].insertRule('@supports (display: rainbow) {}', 1)
25 PASS rules[0].cssRules[1].cssRules.length is 2 25 PASS rules[0].cssRules[1].cssRules.length is 2
26 PASS rules[0].cssRules[1].cssRules[1].type is CSSRule.SUPPORTS_RULE 26 PASS rules[0].cssRules[1].cssRules[1].type is CSSRule.SUPPORTS_RULE
27 rules[0].cssRules[1].deleteRule(1) 27 rules[0].cssRules[1].deleteRule(1)
28 PASS rules[0].cssRules.length is 2 28 PASS rules[0].cssRules.length is 2
29 29
30 @charset, @namespace, @import rules are not allowed inside @supports. 30 @charset, @namespace, @import rules are not allowed inside @supports.
31 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.. 31 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..
32 PASS rules[0].insertRule('@namespace ""', 2) threw exception SyntaxError: Failed to execute 'insertRule' on 'CSSGroupingRule': the rule '@namespace ""' is inval id and cannot be parsed.. 32 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..
33 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.. 33 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..
34 34
35 Whitespace and formatting should be preserved within the condition, whitespace o utside the condition should be trimmed. 35 Whitespace and formatting should be preserved within the condition, whitespace o utside the condition should be trimmed.
36 PASS rules[1].conditionText is "(( ( padding: 0) and (display: none)) or (display: rainbow))" 36 PASS rules[1].conditionText is "(( ( padding: 0) and (display: none)) or (display: rainbow))"
37 37
38 @supports rule nested inside a media rule. 38 @supports rule nested inside a media rule.
39 PASS rules[2].type is CSSRule.MEDIA_RULE 39 PASS rules[2].type is CSSRule.MEDIA_RULE
40 PASS rules[2].cssRules.length is 1 40 PASS rules[2].cssRules.length is 1
41 PASS rules[2].cssRules[0].type is CSSRule.SUPPORTS_RULE 41 PASS rules[2].cssRules[0].type is CSSRule.SUPPORTS_RULE
42 PASS rules[2].cssRules[0].conditionText is "( padding: 0)" 42 PASS rules[2].cssRules[0].conditionText is "( padding: 0)"
43 PASS rules[0].cssRules[1].cssRules.length is 1 43 PASS rules[0].cssRules[1].cssRules.length is 1
44 PASS rules[2].cssRules[0].cssRules[0].type is CSSRule.PAGE_RULE 44 PASS rules[2].cssRules[0].cssRules[0].type is CSSRule.PAGE_RULE
45 PASS rules[2].cssText is "@media all { \n @supports ( padding: 0) {\n @page :l eft { top: 0px; }\n}\n}" 45 PASS rules[2].cssText is "@media all { \n @supports ( padding: 0) {\n @page :l eft { top: 0px; }\n}\n}"
46 46
47 No extra parens should be added to the conditionText. 47 No extra parens should be added to the conditionText.
48 PASS rules[3].conditionText is "(border: black) and (padding: 0) and (width: 0)" 48 PASS rules[3].conditionText is "(border: black) and (padding: 0) and (width: 0)"
49 49
50 Deleting a top-level rule should work correctly. 50 Deleting a top-level rule should work correctly.
51 document.styleSheets[1].deleteRule(3) 51 document.styleSheets[1].deleteRule(3)
52 PASS rules.length is 3 52 PASS rules.length is 3
53 PASS rules[0].type is CSSRule.SUPPORTS_RULE 53 PASS rules[0].type is CSSRule.SUPPORTS_RULE
54 PASS rules[0].cssRules.length is 2 54 PASS rules[0].cssRules.length is 2
55 PASS rules[0].cssRules[0].type is CSSRule.STYLE_RULE 55 PASS rules[0].cssRules[0].type is CSSRule.STYLE_RULE
56 PASS rules[0].cssRules[1].type is CSSRule.SUPPORTS_RULE 56 PASS rules[0].cssRules[1].type is CSSRule.SUPPORTS_RULE
57 PASS rules[0].cssRules[1].cssRules.length is 1 57 PASS rules[0].cssRules[1].cssRules.length is 1
58 PASS rules[0].cssRules[1].cssRules[0].type is CSSRule.STYLE_RULE 58 PASS rules[0].cssRules[1].cssRules[0].type is CSSRule.STYLE_RULE
59 PASS successfullyParsed is true 59 PASS successfullyParsed is true
60 60
61 TEST COMPLETE 61 TEST COMPLETE
62 62
OLDNEW
« no previous file with comments | « LayoutTests/css3/supports-cssom.html ('k') | LayoutTests/editing/pasteboard/data-transfer-items-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698