1 <input id=
"month" type=
"month"</div>
3 if (window
.testRunner
) {
4 testRunner
.dumpAsText();
6 function openPicker(input
) {
7 sendKey(input
, "Down", false, true);
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)';