| 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="../resources/common.js"></script> | 5 <script src="../resources/common.js"></script> |
| 6 <script src="../resources/picker-common.js"></script> | 6 <script src="../resources/picker-common.js"></script> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 <select id="menu"> | 9 <select id="menu"> |
| 10 <option>foo</option> | 10 <option>foo</option> |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 function test2AfterScrollEvent() { | 139 function test2AfterScrollEvent() { |
| 140 // touchmove event fires before the scroll event so the selection will chang
e. | 140 // touchmove event fires before the scroll event so the selection will chang
e. |
| 141 shouldBeEqualToString('picker._selectElement.value', '0'); | 141 shouldBeEqualToString('picker._selectElement.value', '0'); |
| 142 eventSender.releaseTouchPoint(0); | 142 eventSender.releaseTouchPoint(0); |
| 143 eventSender.touchEnd(); | 143 eventSender.touchEnd(); |
| 144 eventSender.gestureScrollEnd(0, 0); | 144 eventSender.gestureScrollEnd(0, 0); |
| 145 | 145 |
| 146 shouldNotBe('window.internals.pagePopupWindow', 'null'); | 146 shouldNotBe('window.internals.pagePopupWindow', 'null'); |
| 147 shouldBeEqualToString('menuElement2.value', '2'); | 147 shouldBeEqualToString('menuElement2.value', '2'); |
| 148 | 148 |
| 149 finishJSTest(); | 149 test3(); |
| 150 } | 150 } |
| 151 |
| 152 function test3() { |
| 153 debug("==> Test popup closes on outside GestureTapDawn"); |
| 154 eventSender.clearTouchPoints(); |
| 155 openPicker(menuElement, function () { |
| 156 eventSender.gestureTapDown(300, 300); |
| 157 shouldBeNull('window.internals.pagePopupWindow'); |
| 158 finishJSTest(); |
| 159 }, function () { |
| 160 testFailed('picker didn\'t open') |
| 161 finishJSTest(); |
| 162 }); |
| 163 } |
| 164 |
| 165 |
| 151 </script> | 166 </script> |
| 152 </body> | 167 </body> |
| 153 </html> | 168 </html> |
| OLD | NEW |