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

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

Issue 1435113003: Make use of new AX name calc in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue with ariaTextAlternative Created 5 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
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 LayoutCounter 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).name", "'1'");
30 shouldBe("line1.childAtIndex(1).stringValue", "'AXValue: :'"); 30 shouldBe("line1.childAtIndex(1).name", "':'");
31 shouldBe("line1.childAtIndex(2).stringValue", "'AXValue: line1'"); 31 shouldBe("line1.childAtIndex(2).name", "'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).name", "'2'");
35 shouldBe("line2.childAtIndex(1).stringValue", "'AXValue: :'"); 35 shouldBe("line2.childAtIndex(1).name", "':'");
36 shouldBe("line2.childAtIndex(2).stringValue", "'AXValue: line2'"); 36 shouldBe("line2.childAtIndex(2).name", "'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

Powered by Google App Engine
This is Rietveld 408576698