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

Side by Side Diff: LayoutTests/fast/regions/region-styling/webkit-region-rule.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 @-webkit-region #region1 { 5 @-webkit-region #region1 {
6 #p1 { background-color: green; } 6 #p1 { background-color: green; }
7 #p2 { background-color: lime; } 7 #p2 { background-color: lime; }
8 } 8 }
9 @-webkit-region #region2 { 9 @-webkit-region #region2 {
10 p { background-color: blue; } 10 p { background-color: blue; }
11 } 11 }
12 </style> 12 </style>
13 <script src="../../js/resources/js-test-pre.js"></script> 13 <script src="../../../resources/js-test.js"></script>
14 </head> 14 </head>
15 <body> 15 <body>
16 <script> 16 <script>
17 17
18 description("This tests the WebKitCSSRegionRule interface."); 18 description("This tests the WebKitCSSRegionRule interface.");
19 19
20 if (window.WebKitCSSRegionRule) 20 if (window.WebKitCSSRegionRule)
21 testPassed("WebKitCSSRegionRule exists on Window object"); 21 testPassed("WebKitCSSRegionRule exists on Window object");
22 else 22 else
23 testFailed("WebKitCSSRegionRule does not exist on Window object"); 23 testFailed("WebKitCSSRegionRule does not exist on Window object");
(...skipping 15 matching lines...) Expand all
39 var regionRule2 = document.styleSheets.item(0).cssRules.item(1); 39 var regionRule2 = document.styleSheets.item(0).cssRules.item(1);
40 shouldBe("regionRule2.type", "window.CSSRule.WEBKIT_REGION_RULE"); 40 shouldBe("regionRule2.type", "window.CSSRule.WEBKIT_REGION_RULE");
41 var regionRule2CSSRules = regionRule2.cssRules; 41 var regionRule2CSSRules = regionRule2.cssRules;
42 shouldBe("regionRule2CSSRules.length", "1"); 42 shouldBe("regionRule2CSSRules.length", "1");
43 shouldBe("regionRule2CSSRules.item(0).type", "window.CSSRule.STYLE_RULE"); 43 shouldBe("regionRule2CSSRules.item(0).type", "window.CSSRule.STYLE_RULE");
44 shouldBe("regionRule2CSSRules.item(0).cssText", "'p { background-color: blue; }' "); 44 shouldBe("regionRule2CSSRules.item(0).cssText", "'p { background-color: blue; }' ");
45 45
46 </script> 46 </script>
47 </body> 47 </body>
48 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698