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/fast/dom/constants.html

Issue 1154753006: Remove CSSRule.UNKNOWN_RULE and CSSUnknownRule interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed review comments Created 5 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/constants-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <link rel="stylesheet" href="resources/stylesheet.css"> 3 <link rel="stylesheet" href="resources/stylesheet.css">
4 <script> 4 <script>
5 function print(message, color) { 5 function print(message, color) {
6 var paragraph = document.createElement("div"); 6 var paragraph = document.createElement("div");
7 paragraph.appendChild(document.createTextNode(message)); 7 paragraph.appendChild(document.createTextNode(message));
8 paragraph.style.fontFamily = "monospace"; 8 paragraph.style.fontFamily = "monospace";
9 if (color) 9 if (color)
10 paragraph.style.color = color; 10 paragraph.style.color = color;
(...skipping 21 matching lines...) Expand all
32 print(message, color); 32 print(message, color);
33 } 33 }
34 34
35 var cssRule, nodeFilter, event; 35 var cssRule, nodeFilter, event;
36 36
37 function test() { 37 function test() {
38 if (window.testRunner) 38 if (window.testRunner)
39 testRunner.dumpAsText(); 39 testRunner.dumpAsText();
40 40
41 cssRule = document.styleSheets[0].cssRules[0]; 41 cssRule = document.styleSheets[0].cssRules[0];
42 shouldBe("cssRule.UNKNOWN_RULE", 0);
43 shouldBe("cssRule.STYLE_RULE", 1); 42 shouldBe("cssRule.STYLE_RULE", 1);
44 shouldBe("cssRule.CHARSET_RULE", 2); 43 shouldBe("cssRule.CHARSET_RULE", 2);
45 shouldBe("cssRule.IMPORT_RULE", 3); 44 shouldBe("cssRule.IMPORT_RULE", 3);
46 shouldBe("cssRule.MEDIA_RULE", 4); 45 shouldBe("cssRule.MEDIA_RULE", 4);
47 shouldBe("cssRule.FONT_FACE_RULE", 5); 46 shouldBe("cssRule.FONT_FACE_RULE", 5);
48 shouldBe("cssRule.PAGE_RULE", 6); 47 shouldBe("cssRule.PAGE_RULE", 6);
49 48
50 shouldBe("window.CSSRule.UNKNOWN_RULE", 0);
51 shouldBe("window.CSSRule.STYLE_RULE", 1); 49 shouldBe("window.CSSRule.STYLE_RULE", 1);
52 shouldBe("window.CSSRule.CHARSET_RULE", 2); 50 shouldBe("window.CSSRule.CHARSET_RULE", 2);
53 shouldBe("window.CSSRule.IMPORT_RULE", 3); 51 shouldBe("window.CSSRule.IMPORT_RULE", 3);
54 shouldBe("window.CSSRule.MEDIA_RULE", 4); 52 shouldBe("window.CSSRule.MEDIA_RULE", 4);
55 shouldBe("window.CSSRule.FONT_FACE_RULE", 5); 53 shouldBe("window.CSSRule.FONT_FACE_RULE", 5);
56 shouldBe("window.CSSRule.PAGE_RULE", 6); 54 shouldBe("window.CSSRule.PAGE_RULE", 6);
57 55
58 var nodeIterator; 56 var nodeIterator;
59 try { 57 try {
60 nodeIterator = document.createNodeIterator(document, 58 nodeIterator = document.createNodeIterator(document,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 <body onload="test();"> 146 <body onload="test();">
149 <p>This page tests CSSRule, NodeFilter, and Event. It tests:</p> 147 <p>This page tests CSSRule, NodeFilter, and Event. It tests:</p>
150 <ol> 148 <ol>
151 <li>Whether their global constructors have the correct constant values</li> 149 <li>Whether their global constructors have the correct constant values</li>
152 <li>Whether their objects have the correct constant values</li> 150 <li>Whether their objects have the correct constant values</li>
153 </ol> 151 </ol>
154 <hr> 152 <hr>
155 <div id='console'></div> 153 <div id='console'></div>
156 </body> 154 </body>
157 </html> 155 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/constants-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698