fast/events/ios/rotation/layout-viewport-during-safari-type-rotation.html is flakey
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Jan 2018 19:19:07 +0000 (19:19 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Jan 2018 19:19:07 +0000 (19:19 +0000)
commit8ebc45c3905e7c9641fe43558d6c8eec72476efe
tree340d955e6679c305070d94e5c394600e07a009d1
parentbfc60fbd12acaf6fdbb7ffa3f778caf7d5953924
fast/events/ios/rotation/layout-viewport-during-safari-type-rotation.html is flakey
https://bugs.webkit.org/show_bug.cgi?id=181569
rdar://problem/34117680

Reviewed by Zalan Bujtas.

Wait a tick before starting the rotation, otherwise -[WKWebView _beginAnimatedResizeWithUpdates:]
can bail because the unobscuredRect is empty.

Also wait for both the rotation UI script to complete, and the receipt of the
orientationchange event.

* fast/events/ios/rotation/layout-viewport-during-safari-type-rotation.html:
* fast/events/ios/rotation/resources/rotation-utils.js:
(doTest):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226902 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/ios/rotation/layout-viewport-during-safari-type-rotation.html
LayoutTests/fast/events/ios/rotation/resources/rotation-utils.js