OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <body> |
| 3 <script src="../../../resources/testharness.js"></script> |
| 4 <script src="../../../resources/testharnessreport.js"></script> |
| 5 <style> |
| 6 iframe { |
| 7 margin-top: 200px; |
| 8 margin-left: 400px; |
| 9 } |
| 10 </style> |
| 11 <div id="log"></div> |
| 12 <iframe srcdoc="<div style='height:400px;'></div><select><option>Option 1</optio
n></select>"></iframe> |
| 13 <script> |
| 14 window.onload = function() { |
| 15 test(function() { |
| 16 var select = document.querySelector('iframe').contentDocument.querySelec
tor('select'); |
| 17 select.focus(); |
| 18 // Scroll out the |select|. |
| 19 select.ownerDocument.scrollingElement.scrollTop = 0; |
| 20 // Try to open a popup. |
| 21 eventSender.keyDown(' '); |
| 22 assert_false(internals.isSelectPopupVisible(select)); |
| 23 }, 'SELECT element should not open a popup menu if it\'s not in the viewport
.'); |
| 24 }; |
| 25 </script> |
| 26 </body> |
OLD | NEW |