Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / global-aria-attributes-invalidate-presentational.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <img id="item1" src="foo.jpg" alt="test1" role="presentation" aria-atomic="true">
9 <img id="item2" src="foo.jpg" alt="test1" role="presentation" aria-busy="true">
10 <img id="item3" src="foo.jpg" alt="test1" role="presentation" aria-controls="item1">
11 <img id="item4" src="foo.jpg" alt="test1" role="presentation" aria-describedby="item1">
12 <img id="item5" src="foo.jpg" alt="test1" role="presentation" aria-disabled="true">
13 <img id="item6" src="foo.jpg" alt="test1" role="presentation" aria-dropeffect="true">
14 <img id="item7" src="foo.jpg" alt="test1" role="presentation" aria-haspopup="true">
15 <img id="item8" src="foo.jpg" alt="test1" role="presentation" aria-flowto="item1">
16 <img id="item9" src="foo.jpg" alt="test1" role="presentation" aria-invalid="true">
17 <img id="item10" src="foo.jpg" alt="test1" role="presentation" aria-label="test">
18 <img id="item11" src="foo.jpg" alt="test1" role="presentation" aria-labelledby="item1">
19 <img id="item12" src="foo.jpg" alt="test1" role="presentation" aria-live="polite">
20 <img id="item13" src="foo.jpg" alt="test1" role="presentation" aria-owns="item1">
21 <img id="item14" src="foo.jpg" alt="test1" role="presentation" aria-relevant="all">
22
23 <p id="description"></p>
24 <div id="console"></div>
25
26 <script>
27
28     description("This tests that the presence of any global ARIA attribute invalidates a presentational role.");
29
30     if (window.accessibilityController) {
31         for (var k = 1; k < 15; k++) {
32             var item = accessibilityController.accessibleElementById("item" + k);
33             shouldBe("item.role", "'AXRole: AXImage'");
34         }
35     }
36
37 </script>
38
39 <script src="../resources/js-test-post.js"></script>
40 </body>
41 </html>