OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body> |
| 4 <script src="../../../resources/js-test.js"></script> |
| 5 <script src="../resources/picker-common.js"></script> |
| 6 <div id="parent"><input type="date" id="input"></div> |
| 7 <script> |
| 8 description('Calender picker should not open when the owner element has no focus
.'); |
| 9 var input = document.getElementById('input'); |
| 10 input.focus(); |
| 11 input.remove(); |
| 12 input.offsetTop; |
| 13 sendKey(input, "Down", false, true); |
| 14 if (window.internals.pagePopupWindow) { |
| 15 testFailed('Popup was opened.'); |
| 16 finishJSTest(); |
| 17 } else { |
| 18 testPassed('Popup did not open.'); |
| 19 finishJSTest(); |
| 20 } |
| 21 </script> |
| 22 </body> |
| 23 </html> |
OLD | NEW |