tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / platform / mac / accessibility / aria-liveregion-marquee-default.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
8 <div tabindex="0" id="marquee1" role="marquee">marquee1</div>
9 <div tabindex="0" id="marquee2" role="marquee" aria-live="assertive">marquee2</div>
10
11 <p id="description"></p>
12 <div id="console"></div>
13
14 <script>
15
16     description("This tests that the marquee role has the correct default aria-live status (off).");
17
18     if (window.accessibilityController) {
19   
20           // Make sure that regular elements are not exposing ARIA live attributes.
21           document.getElementById("marquee1").focus();
22           shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXARIALive')", "'off'");
23
24           document.getElementById("marquee2").focus();
25           shouldBe("accessibilityController.focusedElement.stringAttributeValue('AXARIALive')", "'assertive'");
26     }
27
28 </script>
29
30 <script src="../../../fast/js/resources/js-test-post.js"></script>
31 </body>
32 </html>