| testRunner.waitUntilDone(); |
| function resizeTest(sizes, testFunction) |
| function performNextResize() |
| resizeTo(sizes[0][0] + widthDelta, sizes[0][1] + heightDelta); |
| removeEventListener("resize", resizeHandler); |
| var nextSize = sizes.shift(); |
| shouldEvaluateTo("innerWidth", nextSize[0]); |
| shouldEvaluateTo("innerHeight", nextSize[1]); |
| const warmupWidth = outerWidth + 13; |
| if (outerWidth != warmupWidth) |
| widthDelta = outerWidth - innerWidth; |
| heightDelta = outerHeight - innerHeight; |
| removeEventListener("resize", warmupDone); |
| addEventListener("resize", resizeHandler); |
| addEventListener("resize", warmupDone); |
| resizeTo(warmupWidth, outerHeight); |
| function standardResizeTest(testFunction) |
| resizeTest([[800, 600], [1200, 600]], testFunction); |