Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / calendar-picker / datepicker-crash-after-keydown.html
blobe730307a076734b29038e45ffa10e0b2f707e442
1 <input id="month" type="month"</div>
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText();
6 function openPicker(input) {
7 sendKey(input, "Down", false, true);
8 finishTest();
10 function sendKey(input, keyName, ctrlKey, altKey) {
11 var event = document.createEvent('KeyboardEvent');
12 event.initKeyboardEvent('keydown', true, true, document.defaultView, keyName, 0, ctrlKey, altKey);
13 input.dispatchEvent(event);
15 openPicker(document.getElementById('month'), finishTest);
16 function finishTest() {
17 document.body.innerText = 'PASS (not crashed)';
19 </script>