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

Side by Side Diff: LayoutTests/fast/css/counters/getCounterValue.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 <style> 3 <style>
4 body { 4 body {
5 counter-reset: section; 5 counter-reset: section;
6 } 6 }
7 h1 { 7 h1 {
8 counter-increment: section; 8 counter-increment: section;
9 } 9 }
10 h2:before { 10 h2:before {
11 content: counter(section); 11 content: counter(section);
12 } 12 }
13 h2:after { 13 h2:after {
14 content: counters(section, ":", decimal); 14 content: counters(section, ":", decimal);
15 } 15 }
16 h3:before { 16 h3:before {
17 content: counter(section, lower-roman); 17 content: counter(section, lower-roman);
18 } 18 }
19 h3:after { 19 h3:after {
20 content: counters(section, ",", upper-roman); 20 content: counters(section, ",", upper-roman);
21 } 21 }
22 h3:before { 22 h3:before {
23 content: counter(section, none); 23 content: counter(section, none);
24 } 24 }
25 </style> 25 </style>
26 <script src="../../js/resources/js-test-pre.js"></script> 26 <script src="../../../resources/js-test.js"></script>
27 </head> 27 </head>
28 <body> 28 <body>
29 <script> 29 <script>
30 description("Test the Counter object returned by the getCounterValue method of C SSPrimitiveValues"); 30 description("Test the Counter object returned by the getCounterValue method of C SSPrimitiveValues");
31 31
32 function getCounter(cssRule) { 32 function getCounter(cssRule) {
33 return cssRule.style.getPropertyCSSValue('content')[0].getCounterValue(); 33 return cssRule.style.getPropertyCSSValue('content')[0].getCounterValue();
34 } 34 }
35 35
36 var rules = document.styleSheets[0].cssRules; 36 var rules = document.styleSheets[0].cssRules;
(...skipping 16 matching lines...) Expand all
53 shouldBeEqualToString("counters[3].identifier", "section"); 53 shouldBeEqualToString("counters[3].identifier", "section");
54 shouldBeEqualToString("counters[3].listStyle", "upper-roman"); 54 shouldBeEqualToString("counters[3].listStyle", "upper-roman");
55 shouldBeEqualToString("counters[3].separator", ","); 55 shouldBeEqualToString("counters[3].separator", ",");
56 56
57 shouldBeEqualToString("counters[4].identifier", "section"); 57 shouldBeEqualToString("counters[4].identifier", "section");
58 shouldBeEqualToString("counters[4].listStyle", "none"); 58 shouldBeEqualToString("counters[4].listStyle", "none");
59 shouldBeEqualToString("counters[4].separator", ""); 59 shouldBeEqualToString("counters[4].separator", "");
60 </script> 60 </script>
61 </body> 61 </body>
62 </html> 62 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/counters/counterValueForElementById.html ('k') | LayoutTests/fast/css/css-keyframe-style-parentRule.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698