OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <body> | 2 <body> |
3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.js"></script> |
4 | 4 |
5 <input id="range1" type="range" onchange="updateType(this)" autofocus> | 5 <input id="range1" type="range" onchange="updateType(this)" autofocus> |
6 <script> | 6 <script> |
7 description('Check if no problem happens by type change in onchange handler.'); | 7 description('Check if no problem happens by type change in onchange handler.'); |
8 | 8 |
9 function updateType(input) { | 9 function updateType(input) { |
10 input.type = 'text'; | 10 input.type = 'text'; |
11 setTimeout(finish, 0); | 11 setTimeout(finish, 0); |
12 } | 12 } |
13 | 13 |
14 function finish() { | 14 function finish() { |
15 testPassed('unless crash'); | 15 testPassed('unless crash'); |
16 finishJSTest(); | 16 finishJSTest(); |
17 } | 17 } |
18 | 18 |
19 jsTestIsAsync = true; | 19 jsTestIsAsync = true; |
20 eventSender.keyDown('upArrow'); | 20 eventSender.keyDown('upArrow'); |
21 </script> | 21 </script> |
22 <script src="../../js/resources/js-test-post.js"></script> | 22 <script src="../../js/resources/js-test-post.js"></script> |
23 </body> | 23 </body> |
OLD | NEW |