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

Side by Side Diff: LayoutTests/fast/dom/StyleSheet/gc-rule-children-wrappers.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 <html> 1 <html>
2 <head> 2 <head>
3 3
4 <style> 4 <style>
5 @import url("data:text/css,* { color:black; }"); 5 @import url("data:text/css,* { color:black; }");
6 6
7 * { color: black } 7 * { color: black }
8 8
9 @font-face { 9 @font-face {
10 font-family: 'CustomName'; 10 font-family: 'CustomName';
11 src: local('Courier'); 11 src: local('Courier');
12 } 12 }
13 13
14 @media all { 14 @media all {
15 * { color: black } 15 * { color: black }
16 } 16 }
17 17
18 @-webkit-keyframes test1 { 18 @-webkit-keyframes test1 {
19 from { left: 10px; } 19 from { left: 10px; }
20 to { left: 20px; } 20 to { left: 20px; }
21 } 21 }
22 22
23 @page { margin: 3cm; } 23 @page { margin: 3cm; }
24 </style> 24 </style>
25 <script src="../../js/resources/js-test-pre.js"></script> 25 <script src="../../../resources/js-test.js"></script>
26 </head> 26 </head>
27 <body style="color:black"> 27 <body style="color:black">
28 <script> 28 <script>
29 description("Test that custom properties on rule style declarations are not lost after GC"); 29 description("Test that custom properties on rule style declarations are not lost after GC");
30 30
31 function test(expr, expectedType, testWhat) 31 function test(expr, expectedType, testWhat)
32 { 32 {
33 shouldBe(expr + ".type", expectedType); 33 shouldBe(expr + ".type", expectedType);
34 eval(expr + "." + testWhat).foo = "bar" 34 eval(expr + "." + testWhat).foo = "bar"
35 gc(); 35 gc();
36 shouldBe(expr + "." + testWhat + ".foo", "'bar'"); 36 shouldBe(expr + "." + testWhat + ".foo", "'bar'");
37 } 37 }
38 38
39 test("document.styleSheets[0].cssRules[0]", "CSSRule.IMPORT_RULE", "media"); 39 test("document.styleSheets[0].cssRules[0]", "CSSRule.IMPORT_RULE", "media");
40 test("document.styleSheets[0].cssRules[0]", "CSSRule.IMPORT_RULE", "styleShe et"); 40 test("document.styleSheets[0].cssRules[0]", "CSSRule.IMPORT_RULE", "styleShe et");
41 test("document.styleSheets[0].cssRules[1]", "CSSRule.STYLE_RULE", "style"); 41 test("document.styleSheets[0].cssRules[1]", "CSSRule.STYLE_RULE", "style");
42 test("document.styleSheets[0].cssRules[2]", "CSSRule.FONT_FACE_RULE", "style "); 42 test("document.styleSheets[0].cssRules[2]", "CSSRule.FONT_FACE_RULE", "style ");
43 test("document.styleSheets[0].cssRules[3]", "CSSRule.MEDIA_RULE", "cssRules" ); 43 test("document.styleSheets[0].cssRules[3]", "CSSRule.MEDIA_RULE", "cssRules" );
44 test("document.styleSheets[0].cssRules[3]", "CSSRule.MEDIA_RULE", "media"); 44 test("document.styleSheets[0].cssRules[3]", "CSSRule.MEDIA_RULE", "media");
45 test("document.styleSheets[0].cssRules[4]", "CSSRule.WEBKIT_KEYFRAMES_RULE", "cssRules"); 45 test("document.styleSheets[0].cssRules[4]", "CSSRule.WEBKIT_KEYFRAMES_RULE", "cssRules");
46 test("document.styleSheets[0].cssRules[4].cssRules[0]", "CSSRule.WEBKIT_KEYF RAME_RULE", "style"); 46 test("document.styleSheets[0].cssRules[4].cssRules[0]", "CSSRule.WEBKIT_KEYF RAME_RULE", "style");
47 test("document.styleSheets[0].cssRules[5]", "CSSRule.PAGE_RULE", "style"); 47 test("document.styleSheets[0].cssRules[5]", "CSSRule.PAGE_RULE", "style");
48 48
49 </script> 49 </script>
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/StyleSheet/gc-parent-stylesheet.html ('k') | LayoutTests/fast/dom/StyleSheet/gc-styleheet-wrapper.xhtml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698