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

Side by Side Diff: LayoutTests/accessibility/render-counter-text.html

Issue 884483003: Rename/move counter rendering code to layout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/accessibility/render-counter-text-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 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 5
6 <style> 6 <style>
7 ol li::before { content: counter(l1) ":"; counter-increment: l1;} 7 ol li::before { content: counter(l1) ":"; counter-increment: l1;}
8 ol li { list-style-type: decimial; display: block; } 8 ol li { list-style-type: decimial; display: block; }
9 </style> 9 </style>
10 10
11 <div id="container" style="counter-reset:l1;"> 11 <div id="container" style="counter-reset:l1;">
12 <ol style="list-style-type:decimal"> 12 <ol style="list-style-type:decimal">
13 <li id="line1">line1 13 <li id="line1">line1
14 <li id="line2">line2 14 <li id="line2">line2
15 <li>line3 15 <li>line3
16 </ol> 16 </ol>
17 </div> 17 </div>
18 18
19 <div id="description"></div> 19 <div id="description"></div>
20 <div id="console"></div> 20 <div id="console"></div>
21 21
22 <script> 22 <script>
23 23
24 description("This tests that the text for RenderCounter is exposed correctly.") 24 description("This tests that the text for LayoutCounter is exposed correctly.")
25 25
26 if (window.testRunner && window.accessibilityController) { 26 if (window.testRunner && window.accessibilityController) {
27 27
28 var line1 = accessibilityController.accessibleElementById("line1"); 28 var line1 = accessibilityController.accessibleElementById("line1");
29 shouldBe("line1.childAtIndex(0).stringValue", "'AXValue: 1'"); 29 shouldBe("line1.childAtIndex(0).stringValue", "'AXValue: 1'");
30 shouldBe("line1.childAtIndex(1).stringValue", "'AXValue: :'"); 30 shouldBe("line1.childAtIndex(1).stringValue", "'AXValue: :'");
31 shouldBe("line1.childAtIndex(2).stringValue", "'AXValue: line1'"); 31 shouldBe("line1.childAtIndex(2).stringValue", "'AXValue: line1'");
32 32
33 var line2 = accessibilityController.accessibleElementById("line2"); 33 var line2 = accessibilityController.accessibleElementById("line2");
34 shouldBe("line2.childAtIndex(0).stringValue", "'AXValue: 2'"); 34 shouldBe("line2.childAtIndex(0).stringValue", "'AXValue: 2'");
35 shouldBe("line2.childAtIndex(1).stringValue", "'AXValue: :'"); 35 shouldBe("line2.childAtIndex(1).stringValue", "'AXValue: :'");
36 shouldBe("line2.childAtIndex(2).stringValue", "'AXValue: line2'"); 36 shouldBe("line2.childAtIndex(2).stringValue", "'AXValue: line2'");
37 37
38 document.getElementById("container").style.display = "none"; 38 document.getElementById("container").style.display = "none";
39 } 39 }
40 40
41 </script> 41 </script>
42 42
43 </body> 43 </body>
44 </html> 44 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/render-counter-text-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698