OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <body> |
| 3 <script src="../../../resources/testharness.js"></script> |
| 4 <script src="../../../resources/testharnessreport.js"></script> |
| 5 <div id="log"></div> |
| 6 <input type="search" incremental value="abcdef"> |
| 7 <script> |
| 8 var input = document.querySelector('input'); |
| 9 |
| 10 var test = async_test('Changing the input type in search event handler should no
t crash.'); |
| 11 test.step(function() { |
| 12 input.onsearch = function() { |
| 13 assert_unreached(); |
| 14 }; |
| 15 input.oninput = function() { |
| 16 assert_unreached(); |
| 17 }; |
| 18 // A search event would have 0.2s delay in this case. |
| 19 setTimeout(function() { |
| 20 test.done(); |
| 21 }, 300); |
| 22 |
| 23 input.focus(); |
| 24 input.setRangeText('a', 6, 6); |
| 25 }); |
| 26 </script> |
| 27 </body> |
OLD | NEW |