OLD | NEW |
1 <!DOCTYPE> | 1 <!DOCTYPE> |
2 <body> | 2 <body> |
3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.js"></script> |
4 <script src="../resources/common.js"></script> | 4 <script src="../resources/common.js"></script> |
5 | 5 |
6 <input id="time1" type="time" style="font-size:20px; width:40px;"> | 6 <input id="time1" type="time" style="font-size:20px; width:40px;"> |
7 | 7 |
8 <script> | 8 <script> |
9 description('Check if changing focus in a multiple fields input scrolls the cont
ent.'); | 9 description('Check if changing focus in a multiple fields input scrolls the cont
ent.'); |
10 if (!window.eventSender || !window.internals) | 10 if (!window.eventSender || !window.internals) |
11 debug('This test rquires DRT/WRT.'); | 11 debug('This test rquires DRT/WRT.'); |
12 var time1 = $('time1'); | 12 var time1 = $('time1'); |
13 time1.focus(); | 13 time1.focus(); |
14 var container = getElementByPseudoId(internals.oldestShadowRoot(time1), '-webkit
-datetime-edit'); | 14 var container = getElementByPseudoId(internals.oldestShadowRoot(time1), '-webkit
-datetime-edit'); |
15 var initialScrollLeft = container.scrollLeft; | 15 var initialScrollLeft = container.scrollLeft; |
16 eventSender.keyDown('\t'); | 16 eventSender.keyDown('\t'); |
17 shouldBeTrue('initialScrollLeft < container.scrollLeft'); | 17 shouldBeTrue('initialScrollLeft < container.scrollLeft'); |
18 </script> | 18 </script> |
19 <script src="../../js/resources/js-test-post.js"></script> | 19 <script src="../../js/resources/js-test-post.js"></script> |
20 </body> | 20 </body> |
OLD | NEW |