2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
6 .hideAllContainers .container { display: none; }
9 <div class=
"container">
10 <div id=
"grid" role=
"grid" aria-owns=
"row1 row2"></div>
11 <div id=
"row1" role=
"row">
12 <div role=
"gridcell">Cell
1,
1</div>
13 <div role=
"gridcell">Cell
1,
2</div>
14 <div role=
"gridcell">Cell
1,
3</div>
16 <div id=
"row2" role=
"row">
17 <div role=
"gridcell">Cell
2,
1</div>
18 <div role=
"gridcell">Cell
2,
2</div>
19 <div role=
"gridcell">Cell
2,
3</div>
25 var axGrid
= accessibilityController
.accessibleElementById("grid");
26 assert_equals(axGrid
.role
, "AXRole: AXTable");
27 assert_equals(axGrid
.columnCount
, 3);
28 assert_equals(axGrid
.rowCount
, 2);
29 }, "Aria-owns works on ARIA grids.");
33 if (window
.testRunner
)
34 document
.body
.className
= "hideAllContainers";