| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 <script src="../../forms/resources/common.js"></script> | 5 <script src="../../forms/resources/common.js"></script> |
| 6 <script src="../../forms/resources/common-wheel-event.js"></script> | 6 <script src="../../forms/resources/common-wheel-event.js"></script> |
| 7 <script src="../../forms/resources/picker-common.js"></script> | 7 <script src="../../forms/resources/picker-common.js"></script> |
| 8 <script src="resources/suggestion-picker-common.js"></script> | 8 <script src="resources/suggestion-picker-common.js"></script> |
| 9 </head> | 9 </head> |
| 10 <body style="background-color: #bbbbbb;"> | 10 <body style="background-color: #bbbbbb;"> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 dispatchWheelEvent(suggestionList, 0, -100); | 79 dispatchWheelEvent(suggestionList, 0, -100); |
| 80 scrollTopAfterWheelEvent = suggestionList.scrollTop; | 80 scrollTopAfterWheelEvent = suggestionList.scrollTop; |
| 81 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); | 81 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); |
| 82 | 82 |
| 83 scrollTopBeforeWheelEvent = suggestionList.scrollTop; | 83 scrollTopBeforeWheelEvent = suggestionList.scrollTop; |
| 84 dispatchWheelEvent(suggestionList, 0, 100); | 84 dispatchWheelEvent(suggestionList, 0, 100); |
| 85 scrollTopAfterWheelEvent = suggestionList.scrollTop; | 85 scrollTopAfterWheelEvent = suggestionList.scrollTop; |
| 86 shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent'); | 86 shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent'); |
| 87 | 87 |
| 88 popupWindow.focus(); | 88 popupWindow.focus(); |
| 89 eventSender.keyDown('\x1B'); | 89 eventSender.keyDown('escape'); |
| 90 waitUntilClosing(test2AfterClosing); | 90 waitUntilClosing(test2AfterClosing); |
| 91 } | 91 } |
| 92 | 92 |
| 93 function test2AfterClosing() { | 93 function test2AfterClosing() { |
| 94 shouldBeNull('$("mock-page-popup")'); | 94 shouldBeNull('$("mock-page-popup")'); |
| 95 | 95 |
| 96 openPicker($('datetime-local'), test3); | 96 openPicker($('datetime-local'), test3); |
| 97 } | 97 } |
| 98 | 98 |
| 99 function test3() { | 99 function test3() { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 110 eventSender.mouseUp(); | 110 eventSender.mouseUp(); |
| 111 scrollTopAfterWheelEvent = suggestionList.scrollTop; | 111 scrollTopAfterWheelEvent = suggestionList.scrollTop; |
| 112 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); | 112 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); |
| 113 | 113 |
| 114 finishJSTest(); | 114 finishJSTest(); |
| 115 } | 115 } |
| 116 | 116 |
| 117 </script> | 117 </script> |
| 118 </body> | 118 </body> |
| 119 </html> | 119 </html> |
| OLD | NEW |