Bug 499917 - take into account aria-owns when calculating group attributes, test only, r=yzen

This commit is contained in:
Alexander Surkov 2015-11-03 11:03:23 -05:00
parent 15dbf1bc11
commit 84d94e44d2

View File

@ -191,6 +191,12 @@
testGroupAttrs("table_cell", 3, 4); testGroupAttrs("table_cell", 3, 4);
testGroupAttrs("table_row", 2, 2); testGroupAttrs("table_row", 2, 2);
//////////////////////////////////////////////////////////////////////////
// ARIA list constructed by ARIA owns
testGroupAttrs("t1_li1", 1, 3);
testGroupAttrs("t1_li2", 2, 3);
testGroupAttrs("t1_li3", 3, 3);
// Test that group position information updates after deleting node. // Test that group position information updates after deleting node.
testGroupAttrs("tree4_ti1", 1, 2, 1); testGroupAttrs("tree4_ti1", 1, 2, 1);
testGroupAttrs("tree4_ti2", 2, 2, 1); testGroupAttrs("tree4_ti2", 2, 2, 1);
@ -453,5 +459,11 @@
<div role="cell" id="table_cell" aria-colindex="3">cell</div> <div role="cell" id="table_cell" aria-colindex="3">cell</div>
</div> </div>
</div> </div>
<div role="list" aria-owns="t1_li1 t1_li2 t1_li3">
<div role="listitem" id="t1_li2">Apples</div>
<div role="listitem" id="t1_li1">Oranges</div>
</span>
<div role="listitem" id="t1_li3">Bananas</div>
</body> </body>
</html> </html>