| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 dispatchWheelEvent(suggestionList, 0, -100); | 106 dispatchWheelEvent(suggestionList, 0, -100); |
| 107 scrollTopAfterWheelEvent = suggestionList.scrollTop; | 107 scrollTopAfterWheelEvent = suggestionList.scrollTop; |
| 108 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); | 108 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); |
| 109 | 109 |
| 110 scrollTopBeforeWheelEvent = suggestionList.scrollTop; | 110 scrollTopBeforeWheelEvent = suggestionList.scrollTop; |
| 111 dispatchWheelEvent(suggestionList, 0, 100); | 111 dispatchWheelEvent(suggestionList, 0, 100); |
| 112 scrollTopAfterWheelEvent = suggestionList.scrollTop; | 112 scrollTopAfterWheelEvent = suggestionList.scrollTop; |
| 113 shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent'); | 113 shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent'); |
| 114 | 114 |
| 115 popupWindow.focus(); | 115 popupWindow.focus(); |
| 116 eventSender.keyDown('\x1B'); | 116 eventSender.keyDown('escape'); |
| 117 waitUntilClosing(test2AfterClosing); | 117 waitUntilClosing(test2AfterClosing); |
| 118 } | 118 } |
| 119 | 119 |
| 120 function test2AfterClosing() { | 120 function test2AfterClosing() { |
| 121 shouldBeNull('$("mock-page-popup")'); | 121 shouldBeNull('$("mock-page-popup")'); |
| 122 | 122 |
| 123 openPicker($('month'), test3); | 123 openPicker($('month'), test3); |
| 124 } | 124 } |
| 125 | 125 |
| 126 function test3() { | 126 function test3() { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 137 eventSender.mouseUp(); | 137 eventSender.mouseUp(); |
| 138 scrollTopAfterWheelEvent = suggestionList.scrollTop; | 138 scrollTopAfterWheelEvent = suggestionList.scrollTop; |
| 139 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); | 139 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); |
| 140 | 140 |
| 141 finishJSTest(); | 141 finishJSTest(); |
| 142 } | 142 } |
| 143 | 143 |
| 144 </script> | 144 </script> |
| 145 </body> | 145 </body> |
| 146 </html> | 146 </html> |
| OLD | NEW |