OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../../resources/testharness.js"></script> |
| 5 <script src="../../../resources/testharnessreport.js"></script> |
| 6 <style> |
| 7 #test1 { |
| 8 max-height: 65px; |
| 9 overflow: auto; |
| 10 width: 100px; |
| 11 height: 65px; |
| 12 } |
| 13 input[type="radio"] { |
| 14 display: block; |
| 15 } |
| 16 </style> |
| 17 </head> |
| 18 <body> |
| 19 <div id="test1"> |
| 20 <input type="radio" name="foo" checked> |
| 21 <input type="radio" name="foo"> |
| 22 <input type="radio" name="foo"> |
| 23 <input type="radio" name="foo"> |
| 24 <input type="radio" name="foo"> |
| 25 <input type="radio" name="foo"> |
| 26 </div> |
| 27 <script> |
| 28 test(function() { |
| 29 document.querySelector("input").focus(); |
| 30 assert_exists(window, "eventSender"); |
| 31 for (var i = 0; i < 5; i++) { |
| 32 window.eventSender.keyDown("ArrowDown"); |
| 33 } |
| 34 assert_greater_than(document.getElementById("test1").scrollTop,
0); |
| 35 }, "Parent container should be scrolled while navigating through radio i
nputs"); |
| 36 </script> |
| 37 </body> |
| 38 </html> |
OLD | NEW |