(x, y)
| 142 | } |
| 143 | |
| 144 | function forPositionToBe(x, y) { |
| 145 | return async function () { |
| 146 | let position = await driver.manage().window().getRect() |
| 147 | return ( |
| 148 | position.x === x && |
| 149 | // On OSX, the window height may be bumped down 22px for the top |
| 150 | // status bar. |
| 151 | // On Linux, Opera's window position will be off by 28px. |
| 152 | position.y >= y && |
| 153 | position.y <= y + 28 |
| 154 | ) |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | function forNewWindowToBeOpened(originalHandles) { |
| 159 | return function () { |
no test coverage detected