OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <p>Please run this with DumpRenderTree.</p> | 8 <p>Please run this with DumpRenderTree.</p> |
9 <select id="test"><optgroup></optgroup><optgroup></optgroup></select> | 9 <select id="test"><optgroup></optgroup><optgroup></optgroup></select> |
10 <div id="console"></div> | 10 <div id="console"></div> |
11 <script> | 11 <script> |
12 description('Select element without option but optgroup causes crash on key pres
s'); | 12 description('Select element without option but optgroup causes crash on key pres
s'); |
13 function keyDown(key, modifiers) | 13 function keyDown(key, modifiers) |
14 { | 14 { |
15 if (!window.eventSender) | 15 if (!window.eventSender) |
16 return; | 16 return; |
17 eventSender.keyDown(key, modifiers); | 17 eventSender.keyDown(key, modifiers); |
18 } | 18 } |
19 var test = document.getElementById("test"); | 19 var test = document.getElementById("test"); |
20 test.focus(); | 20 test.focus(); |
21 keyDown('a'); | 21 keyDown('a'); |
22 keyDown('b'); | 22 keyDown('b'); |
23 </script> | 23 </script> |
24 <script src="../../js/resources/js-test-post.js"></script> | 24 <script src="../../js/resources/js-test-post.js"></script> |
25 </body> | 25 </body> |
OLD | NEW |