OLD | NEW |
---|---|
(Empty) | |
1 <input id="month" type="month"</div> | |
tkent
2014/07/30 23:19:57
- The top level indentation is not helpful.
- Plea
| |
2 <script> | |
3 if (window.testRunner) { | |
4 testRunner.dumpAsText(); | |
5 } | |
6 function openPicker(input) { | |
7 sendKey(input, "Down", false, true); | |
8 finishTest(); | |
9 } | |
10 function sendKey(input, keyName, ctrlKey, altKey) { | |
11 var event = document.createEvent('KeyboardEvent'); | |
12 event.initKeyboardEvent('keydown', true, true, document.defaultView, keyNa me, 0, ctrlKey, altKey); | |
13 input.dispatchEvent(event); | |
14 } | |
15 openPicker(document.getElementById('month'), finishTest); | |
16 function finishTest() { | |
17 document.body.innerText = 'PASS (not crashed)'; | |
18 } | |
19 </script> | |
OLD | NEW |