Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / crash-with-noelement-selectbox.html
blob54909c6d3dbf8793eeea37e54630333d94ca856d
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 <select id="selectBox">
9 </select>
10 <p id="description"></p>
11 <div id="console"></div>
13 <script>
15 description("This tests that there's no crash when accessising the stringValue of a menu list that has no elements.");
17 if (window.accessibilityController) {
18 document.getElementById("selectBox").focus();
19 var selectBox = accessibilityController.focusedElement;
21 // this call should not crash.
22 var stringValue = selectBox.stringValue;
25 </script>
27 </body>
28 </html>