2 <script src=../../../resources/js-test.js>></script>
3 <script src=../../forms/resources/picker-common.js>></script>
4 <input type=datetime-local id=datetimelocal1>
6 description('Check if changing type on input event handler doesn\'t crash. This requires ASAN build.');
7 function handleInput(event) {
8 this.removeAttribute('type');
9 setTimeout(function() {
10 testPassed('if not crash');
15 datetimelocal1.addEventListener('input', handleInput, false);
16 openPicker(datetimelocal1, test1);
19 eventSender.keyDown('leftArrow');
20 eventSender.keyDown('\n');
21 waitUntilClosing(test1AfterClosing);
24 function test1AfterClosing() {
25 datetimelocal1.value = '2013-01-21T17:49';