| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="resources/picker-common.js"></script> | |
| 5 </head> | |
| 6 <body> | |
| 7 <select id="menu"> | |
| 8 <option>foo</option> | |
| 9 <option>bar</option> | |
| 10 </select> | |
| 11 <form action="resources/popup-no-crash.html" id="form1"></form> | |
| 12 <script> | |
| 13 if (window.testRunner) { | |
| 14 testRunner.waitUntilDone(); | |
| 15 testRunner.dumpAsText(); | |
| 16 } | |
| 17 | |
| 18 function openCallback() { | |
| 19 document.getElementById('form1').submit(); | |
| 20 } | |
| 21 | |
| 22 function errorCallback() { | |
| 23 window.location = "resources/popup-no-crash.html"; | |
| 24 } | |
| 25 | |
| 26 window.onload = function () { | |
| 27 openPicker(document.getElementById('menu'), openCallback, errorCallback); | |
| 28 } | |
| 29 </script> | |
| 30 </body> | |
| 31 </html> | |
| OLD | NEW |