Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 function test() | 4 function test() |
| 5 { | 5 { |
| 6 if (window.testRunner) | 6 if (window.testRunner) |
| 7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
| 8 var sl = document.getElementById('sl'); | 8 var sl = document.getElementById('sl'); |
| 9 var event = document.createEvent("MouseEvent"); | 9 var event = document.createEvent("MouseEvent"); |
| 10 event.initMouseEvent("mousedown", true, true, window, 1, sl.offs etLeft, sl.offsetTop, sl.offsetLeft, sl.offsetTop, false, false, false, false, 0 , document); | 10 event.initMouseEvent("mousedown", true, true, window, 1, sl.offs etLeft, sl.offsetTop, sl.offsetLeft, sl.offsetTop, false, false, false, false, 0 , document); |
| 11 sl.dispatchEvent(event); | 11 sl.dispatchEvent(event); |
| 12 } | 12 } |
| 13 </script> | 13 </script> |
| 14 </head> | 14 </head> |
| 15 <body onload="test()"> | 15 <body onload="test()"> |
| 16 This tests that we don't crash if a menu list's renderer is destroyed du ring the mouse down event. | 16 This tests that we don't crash if a menu list's renderer is destroyed du ring the mouse down event. |
| 17 <br> | 17 <br> |
| 18 <select id="sl" onmousedown="this.style.display='none'"><option>test</se lect> | 18 <select id="sl" onmousedown="this.style.display='none'"><option>test</se lect> |
| 19 </body> | 19 </body> |
| 20 </html> | 20 </html> |
| OLD | NEW |