[Extra zoom mode] fast/visual-viewport/extrazoom/layout-viewport-after-scrolling...
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 May 2018 21:56:58 +0000 (21:56 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 May 2018 21:56:58 +0000 (21:56 +0000)
commit0374d0ad83a24c15a0aa588bd64a0416bb17fb3c
treef27db36fe1bdd45202d3360bf9ecee26d443c720
parent10bf0eb67835b2429728a663428e728c13909871
[Extra zoom mode] fast/visual-viewport/extrazoom/layout-viewport-after-scrolling-and-resizing.html sometimes fails
https://bugs.webkit.org/show_bug.cgi?id=185517
<rdar://problem/40112983>

Reviewed by Tim Horton.

Adjusts some existing layout tests — see below for more detail.

* fast/css/extrazoom/viewport-units-shrink-to-fit.html:

Remove calls to wait for the next presentation update which are no longer necessary after r231606.

* fast/viewport/extrazoom/viewport-change-min-device-width.html:

Wait for the next visible content rect update, when the unobscured content rect is guaranteed to be up to date.

* fast/visual-viewport/extrazoom/layout-viewport-after-scrolling-and-resizing.html:

Wait for the next visible content rect update rather than the next presentation update (i.e. remote layer tree
commit). This is because the layout viewport's custom fixed position rect is propagated in the visible content
rect update flow, and ensuring a presentation update is insufficient to guarantee that the layout viewport is up
to date.

* resources/ui-helper.js:
(window.UIHelper.ensureVisibleContentRectUpdate):

Add a new test helper to wait for the next presentation update.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/extrazoom/viewport-units-shrink-to-fit.html
LayoutTests/fast/viewport/extrazoom/viewport-change-min-device-width.html
LayoutTests/fast/visual-viewport/extrazoom/layout-viewport-after-scrolling-and-resizing.html
LayoutTests/resources/ui-helper.js