OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body id="body"> | 6 <body id="body"> |
7 | 7 |
8 <select id="selectBox"> | 8 <select id="selectBox"> |
9 </select> | 9 </select> |
10 <p id="description"></p> | 10 <p id="description"></p> |
11 <div id="console"></div> | 11 <div id="console"></div> |
12 | 12 |
13 <script> | 13 <script> |
14 | 14 |
15 description("This tests that there's no crash when accessising the stringVal
ue of a menu list that has no elements."); | 15 description("This tests that there's no crash when accessising the stringVal
ue of a menu list that has no elements."); |
16 | 16 |
17 if (window.accessibilityController) { | 17 if (window.accessibilityController) { |
18 document.getElementById("selectBox").focus(); | 18 document.getElementById("selectBox").focus(); |
19 var selectBox = accessibilityController.focusedElement; | 19 var selectBox = accessibilityController.focusedElement; |
20 | 20 |
21 // this call should not crash. | 21 // this call should not crash. |
22 var stringValue = selectBox.stringValue; | 22 var stringValue = selectBox.stringValue; |
23 } | 23 } |
24 | 24 |
25 </script> | 25 </script> |
26 | 26 |
27 <script src="../fast/js/resources/js-test-post.js"></script> | |
28 </body> | 27 </body> |
29 </html> | 28 </html> |
OLD | NEW |