OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <body> | 2 <body> |
3 <script src="../../../../../fast/js/resources/js-test-pre.js"></script> | 3 <script src="../../../../../fast/js/resources/js-test-pre.js"></script> |
4 <script src="../../../../../fast/forms/resources/picker-common.js"></script> | 4 <script src="../../../../../fast/forms/resources/picker-common.js"></script> |
5 <input type="date" id="date1" onchange="changeType(this)" value="2000-01-01"> | 5 <input type="date" id="date1" onchange="changeType(this)" value="2000-01-01"> |
6 <script> | 6 <script> |
7 description('Check if we have no crash in a case that the input type is changed
by selecting a day in the calendar picker.'); | 7 description('Check if we have no crash in a case that the input type is changed
by selecting a day in the calendar picker.'); |
8 | 8 |
9 openPicker(document.getElementById('date1'), selectToday); | 9 openPicker(document.getElementById('date1'), selectToday); |
10 | 10 |
11 function selectToday() { | 11 function selectToday() { |
12 eventSender.keyDown('t'); | 12 eventSender.keyDown('t'); |
13 eventSender.keyDown('\n'); | 13 eventSender.keyDown('\n'); |
14 } | 14 } |
15 | 15 |
16 function changeType(input) { | 16 function changeType(input) { |
17 input.type = 'text'; | 17 input.type = 'text'; |
18 testPassed('unless crash'); | 18 testPassed('unless crash'); |
19 finishJSTest(); | 19 finishJSTest(); |
20 } | 20 } |
21 </script> | 21 </script> |
22 <script src="../../../../../fast/js/resources/js-test-post.js"></script> | 22 <script src="../../../../../fast/js/resources/js-test-post.js"></script> |
23 </body> | 23 </body> |
OLD | NEW |