OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // A cut-down version of MockInteractions.move, which is not exposed | 5 // A cut-down version of MockInteractions.move, which is not exposed |
6 // publicly. | 6 // publicly. |
7 function getMouseMoveEvents(fromX, fromY, toX, toY, steps) { | 7 function getMouseMoveEvents(fromX, fromY, toX, toY, steps) { |
8 var dx = Math.round((toX - fromX) / steps); | 8 var dx = Math.round((toX - fromX) / steps); |
9 var dy = Math.round((toY - fromY) / steps); | 9 var dy = Math.round((toY - fromY) / steps); |
10 var events = []; | 10 var events = []; |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 chrome.test.assertTrue(toolbar.opened, | 187 chrome.test.assertTrue(toolbar.opened, |
188 "toolbars stay open after tap near toolbars"); | 188 "toolbars stay open after tap near toolbars"); |
189 mockWindow.runTimeout(); | 189 mockWindow.runTimeout(); |
190 chrome.test.assertTrue(toolbar.opened, | 190 chrome.test.assertTrue(toolbar.opened, |
191 "tap near toolbars prevents auto close"); | 191 "tap near toolbars prevents auto close"); |
192 | 192 |
193 chrome.test.succeed(); | 193 chrome.test.succeed(); |
194 } | 194 } |
195 ]; | 195 ]; |
196 | 196 |
197 importTestHelpers().then(function() { | 197 chrome.test.runTests(tests); |
198 chrome.test.runTests(tests); | |
199 }); | |
OLD | NEW |