| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <body> | 2 <body> |
| 3 <script src="../../../resources/js-test.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
| 4 <input type="time" value="11:59" onchange="test()" autofocus id="input"> | 4 <input type="time" value="11:59" onchange="test()" autofocus id="input"> |
| 5 <script> | 5 <script> |
| 6 jsTestIsAsync = true; | 6 jsTestIsAsync = true; |
| 7 | 7 |
| 8 function test() { | 8 function test() { |
| 9 document.body.appendChild(document.getElementById("input")).setAttribute('x-
webkit-speech'); | 9 document.body.appendChild(document.getElementById("input")).setAttribute('x-
webkit-speech', ''); |
| 10 testPassed('if not crashed.'); | 10 testPassed('if not crashed.'); |
| 11 finishJSTest(); | 11 finishJSTest(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 description('There was a crash bug by setting x-webkit-speech in a change event
handler.'); | 14 description('There was a crash bug by setting x-webkit-speech in a change event
handler.'); |
| 15 document.body.onload = function() { | 15 document.body.onload = function() { |
| 16 if (!window.eventSender) { | 16 if (!window.eventSender) { |
| 17 debug('Click on the spin button'); | 17 debug('Click on the spin button'); |
| 18 } else { | 18 } else { |
| 19 eventSender.keyDown('upArrow'); | 19 eventSender.keyDown('upArrow'); |
| 20 } | 20 } |
| 21 }; | 21 }; |
| 22 </script> | 22 </script> |
| 23 </body> | 23 </body> |
| OLD | NEW |