Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / crash-determining-aria-role-when-label-present.html
blob3d05d1f2aa01bea8875b6ad25d142244ade422fb
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 <label><q role=x><input id="test">
10 <p id="description"></p>
11 <div id="console"></div>
13 <script>
15 description("This tests a crashing scenario where an element with a role attribute is a child of a label that also has a corresponding control.");
17 if (window.accessibilityController) {
18 document.getElementById("test").focus();
20 // This line should not crash.
21 var input = accessibilityController.focusedElement;
23 shouldBe("input.childrenCount", "0");
26 </script>
28 </body>
29 </html>