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

Side by Side Diff: LayoutTests/accessibility/aria-setsize-posinset.html

Issue 1099393002: Enabling aria test related to setsize and posinset. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 7
8 <div id="list" role="list"> 8 <div id="list" role="list">
9 <div role="listitem" aria-setSize="10" aria-posinset="3"></div> 9 <div role="listitem" aria-setSize="10" aria-posinset="3"></div>
10 <div role="listitem" aria-setSize="10" aria-posinset="5"></div> 10 <div role="listitem" aria-setSize="10" aria-posinset="5"></div>
11 </div> 11 </div>
12 12
13 <div id="listbox" role="listbox"> 13 <div id="listbox" role="listbox">
14 <div role="option"></div> 14 <div role="option"></div>
15 <div role="option"></div> 15 <div role="option"></div>
16 <div role="option"></div> 16 <div role="option"></div>
17 <div role="option"></div> 17 <div role="option"></div>
18 </div> 18 </div>
19 19
20 <p id="description"></p> 20 <p id="description"></p>
21 <div id="console"></div> 21 <div id="console"></div>
22 22
23 <script> 23 <script>
24 description("This tests that aria-posinset and aria-setsize are exposed to acces sibility correctly."); 24 description("This tests that aria-posinset and aria-setsize are exposed to acces sibility correctly.");
25 25
26 if (window.accessibilityController) { 26 if (window.accessibilityController) {
27 27
28 var list = accessibilityController.accessibleElementById("list"); 28 var list = accessibilityController.accessibleElementById("list");
29 29
30 shouldBe("list.childAtIndex[0].setSize", "10"); 30 shouldBe("list.childAtIndex(0).setSize", "10");
31 shouldBe("list.childAtIndex[1].setSize", "10"); 31 shouldBe("list.childAtIndex(1).setSize", "10");
32 shouldBe("list.childAtIndex[0].posInSet", "3"); 32 shouldBe("list.childAtIndex(0).posInSet", "3");
33 shouldBe("list.childAtIndex[1].posInSet", "5"); 33 shouldBe("list.childAtIndex(1).posInSet", "5");
34 34
35 var listbox = document.getElementById("listbox"); 35 var listbox = accessibilityController.accessibleElementById("listbox");
36 36
37 shouldBe("listbox.childAtIndex[0].setSize", "4"); 37 shouldBe("listbox.childAtIndex(0).setSize", "4");
38 shouldBe("listbox.childAtIndex[1].setSize", "4"); 38 shouldBe("listbox.childAtIndex(1).setSize", "4");
39 shouldBe("listbox.childAtIndex[2].setSize", "4"); 39 shouldBe("listbox.childAtIndex(2).setSize", "4");
40 shouldBe("listbox.childAtIndex[3].setSize", "4"); 40 shouldBe("listbox.childAtIndex(3).setSize", "4");
41 shouldBe("listbox.childAtIndex[0].posInSet", "1"); 41 shouldBe("listbox.childAtIndex(0).posInSet", "1");
42 shouldBe("listbox.childAtIndex[1].posInSet", "2"); 42 shouldBe("listbox.childAtIndex(1).posInSet", "2");
43 shouldBe("listbox.childAtIndex[2].posInSet", "3"); 43 shouldBe("listbox.childAtIndex(2).posInSet", "3");
44 shouldBe("listbox.childAtIndex[3].posInSet", "4"); 44 shouldBe("listbox.childAtIndex(3).posInSet", "4");
45 } 45 }
46 </script> 46 </script>
47 47
48 </body> 48 </body>
49 </html> 49 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/accessibility/aria-setsize-posinset-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698