Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / date-multiple-fields / date-multiple-fields-disabled-crash.html
blob9e13e916d0564a78386e1d36a252e98e01c8c685
1 <body>
2 <script src="../../../resources/js-test.js"></script>
3 <form>
4 <input value="a" id="input1">
5 </form>
6 <script>
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');
10 input1.type = 'date';
11 input1.addEventListener('change', function handleChange() {
12 ++changeEventCounter;
13 input1.removeEventListener('change', handleChange);
14 input1.type = 'search';
15 }, false);
16 input1.disabled = true;
17 shouldBe('changeEventCounter', '0');
18 </script>
19 </body>
20 </html>