| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 dispatchWheelEvent(suggestionList, 0, -100); | 125 dispatchWheelEvent(suggestionList, 0, -100); |
| 126 scrollTopAfterWheelEvent = suggestionList.scrollTop; | 126 scrollTopAfterWheelEvent = suggestionList.scrollTop; |
| 127 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); | 127 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); |
| 128 | 128 |
| 129 scrollTopBeforeWheelEvent = suggestionList.scrollTop; | 129 scrollTopBeforeWheelEvent = suggestionList.scrollTop; |
| 130 dispatchWheelEvent(suggestionList, 0, 100); | 130 dispatchWheelEvent(suggestionList, 0, 100); |
| 131 scrollTopAfterWheelEvent = suggestionList.scrollTop; | 131 scrollTopAfterWheelEvent = suggestionList.scrollTop; |
| 132 shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent'); | 132 shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent'); |
| 133 | 133 |
| 134 popupWindow.focus(); | 134 popupWindow.focus(); |
| 135 eventSender.keyDown('\x1B'); | 135 eventSender.keyDown('escape'); |
| 136 waitUntilClosing(test2AfterClosing); | 136 waitUntilClosing(test2AfterClosing); |
| 137 } | 137 } |
| 138 | 138 |
| 139 function test2AfterClosing() { | 139 function test2AfterClosing() { |
| 140 shouldBeNull('$("mock-page-popup")'); | 140 shouldBeNull('$("mock-page-popup")'); |
| 141 | 141 |
| 142 openPicker($('week'), test3); | 142 openPicker($('week'), test3); |
| 143 } | 143 } |
| 144 | 144 |
| 145 function test3() { | 145 function test3() { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 156 eventSender.mouseUp(); | 156 eventSender.mouseUp(); |
| 157 scrollTopAfterWheelEvent = suggestionList.scrollTop; | 157 scrollTopAfterWheelEvent = suggestionList.scrollTop; |
| 158 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); | 158 shouldBeTrue('scrollTopBeforeWheelEvent < scrollTopAfterWheelEvent'); |
| 159 | 159 |
| 160 finishJSTest(); | 160 finishJSTest(); |
| 161 } | 161 } |
| 162 | 162 |
| 163 </script> | 163 </script> |
| 164 </body> | 164 </body> |
| 165 </html> | 165 </html> |
| OLD | NEW |