Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / contenteditable-hidden-div.html
blob941719b22377afcba2af6b0d0860b3a86b92d4f2
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body id="body">
8 <div contentEditable=true style="outline:1px solid"></div>
10 <h3 id="h3" tabindex=0>test</h3>
12 <p id="description"></p>
13 <div id="console"></div>
15 <script>
17 description("This tests that a contenteditable element will not be ignored by accessibility.");
19 if (window.accessibilityController) {
21 document.getElementById("body").focus();
23 // make sure this element is NOT the h3 element (which otherwise would be the first element)
24 var editableDiv = accessibilityController.focusedElement.childAtIndex(0);
26 document.getElementById("h3").focus();
27 shouldBe("accessibilityController.focusedElement.isEqual(editableDiv)", "false");
30 </script>
32 </body>
33 </html>