tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / platform / gtk / accessibility / object-attributes.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7 <h1>Heading Level 1</h1>
8 <h2>Heading Level 2</h2>
9 <h3>Heading Level 3</h3>
10 <h4>Heading Level 4</h4>
11 <h5>Heading Level 5</h5>
12 <h6>Heading Level 6</h6>
13 <a href="foo.html">Link</a>
14 <table>
15 <tr><td>foo</td><td>bar</td></tr>
16 </table>
17 <table>
18 <table border=1>
19 <tr><th>Odd</th><th>Even</th></tr>
20 <tr><td><p>1</p></td><td><p>2</p></td></tr>
21 <tr><td><p>3</p></td><td><p>4</p></td></tr>
22 </table>
23 <p id="description"></p>
24 <div id="console"></div>
25 <script>
26     description("This tests the exposure of Atk object attributes.");
27     if (window.accessibilityController) {
28         layoutTestController.dumpAsText();
29         document.getElementById("body").focus();
30         var webArea = accessibilityController.focusedElement;
31         var child = webArea.childAtIndex(0);
32         shouldBe("child.role", "'AXRole: heading'");
33         shouldBe("child.allAttributes()", "'level:1, toolkit:WebKitGtk'");
34         child = webArea.childAtIndex(1);
35         shouldBe("child.role", "'AXRole: heading'");
36         shouldBe("child.allAttributes()", "'level:2, toolkit:WebKitGtk'");
37         child = webArea.childAtIndex(2);
38         shouldBe("child.role", "'AXRole: heading'");
39         shouldBe("child.allAttributes()", "'level:3, toolkit:WebKitGtk'");
40         child = webArea.childAtIndex(3);
41         shouldBe("child.role", "'AXRole: heading'");
42         shouldBe("child.allAttributes()", "'level:4, toolkit:WebKitGtk'");
43         child = webArea.childAtIndex(4);
44         shouldBe("child.role", "'AXRole: heading'");
45         shouldBe("child.allAttributes()", "'level:5, toolkit:WebKitGtk'");
46         child = webArea.childAtIndex(5);
47         shouldBe("child.role", "'AXRole: heading'");
48         shouldBe("child.allAttributes()", "'level:6, toolkit:WebKitGtk'");
49         child = webArea.childAtIndex(6);
50         shouldBe("child.role", "'AXRole: link'");
51         shouldBe("child.allAttributes()", "'toolkit:WebKitGtk'");
52         child = webArea.childAtIndex(7);
53         shouldBe("child.role", "'AXRole: table'");
54         shouldBe("child.allAttributes()", "'toolkit:WebKitGtk'");
55         child = webArea.childAtIndex(8);
56         shouldBe("child.role", "'AXRole: table'");
57         shouldBe("child.allAttributes()", "'toolkit:WebKitGtk'");
58     }
59 </script>
60 <script src="../../../fast/js/resources/js-test-post.js"></script>
61 </body>
62 </html>