()
| 24 | } |
| 25 | |
| 26 | function assertTestIsTentative(){ |
| 27 | const testPath = location.pathname; |
| 28 | const tentative = testPath.includes('.tentative.') || testPath.includes('/tentative/'); |
| 29 | if (!tentative) { |
| 30 | throw new Error("Method in testdriver.js intended for tentative tests used in non-tentative test"); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | function getInViewCenterPoint(rect) { |
| 35 | var left = Math.max(0, rect.left); |