Merge "[Release] Webkit2-efl-123997_0.11.51" into tizen_2.1
[framework/web/webkit-efl.git] / LayoutTests / accessibility / contenteditable-hidden-div.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 contentEditable=true style="outline:1px solid"></div>
9
10 <h3 id="h3" tabindex=0>test</h3>
11
12 <p id="description"></p>
13 <div id="console"></div>
14
15 <script>
16
17     description("This tests that a contenteditable element will not be ignored by accessibility.");
18
19     if (window.accessibilityController) {
20
21         document.getElementById("body").focus();
22
23         // make sure this element is NOT the h3 element (which otherwise would be the first element)
24         var editableDiv = accessibilityController.focusedElement.childAtIndex(0);
25
26         document.getElementById("h3").focus();
27         shouldBe("accessibilityController.focusedElement.isEqual(editableDiv)", "false");
28     }
29
30 </script>
31
32 <script src="../fast/js/resources/js-test-post.js"></script>
33 </body>
34 </html>