2 <script src=
"../../../resources/js-test.js"></script>
4 <input value=
"a" id=
"input1">
7 description('Date input with invalid initial value should not dispatch a change event on disabled=true, and should not crash.');
8 var changeEventCounter
= 0;
9 var input1
= document
.querySelector('#input1');
11 input1
.addEventListener('change', function handleChange() {
13 input1
.removeEventListener('change', handleChange
);
14 input1
.type
= 'search';
16 input1
.disabled
= true;
17 shouldBe('changeEventCounter', '0');