Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / crash-with-noelement-selectbox.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <select id="selectBox">
9 </select>
10 <p id="description"></p>
11 <div id="console"></div>
12
13 <script>
14
15     description("This tests that there's no crash when accessising the stringValue of a menu list that has no elements.");
16
17     if (window.accessibilityController) {
18        document.getElementById("selectBox").focus();
19        var selectBox = accessibilityController.focusedElement;
20
21        // this call should not crash. 
22        var stringValue = selectBox.stringValue;
23     }
24
25 </script>
26
27 <script src="../resources/js-test-post.js"></script>
28 </body>
29 </html>