-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[iOS] 3 fast/viewport/ios/viewport-fit-*.html layout tests constantly…
… failing. https://bugs.webkit.org/show_bug.cgi?id=271778 rdar://125502337 Reviewed by Wenson Hsieh. This patch addresses the failing fast/viewport/ios/viewport-fit-*.html layout tests in two distinct ways: 1. The test expectations around the screen dimensions were updated to reflect the fact that layout tests now run in an iPhone 12 simulator, and not an iPhone SE simulator, which the stale expectations correspond to. 2. The tests sometimes flakily fail because some overriden safe area inset values are not reflected in the screen dimensions queried post visible rect update. This is fixed by delegating that same test query to after a visible rect update and the next stable presentation update, which required hooking up some new functionality in WKWebView testing API, as well as UIScriptController. * LayoutTests/fast/viewport/ios/viewport-fit-auto-expected.txt: * LayoutTests/fast/viewport/ios/viewport-fit-auto.html: * LayoutTests/fast/viewport/ios/viewport-fit-contain-expected.txt: * LayoutTests/fast/viewport/ios/viewport-fit-contain.html: * LayoutTests/fast/viewport/ios/viewport-fit-cover-expected.txt: * LayoutTests/fast/viewport/ios/viewport-fit-cover.html: * LayoutTests/platform/ios/TestExpectations: Remove the failing annotations for the tests we're addressing. * Source/WebKit/UIProcess/API/ios/WKWebViewPrivateForTestingIOS.h: * Source/WebKit/UIProcess/API/ios/WKWebViewTestingIOS.mm: (-[WKWebView _doAfterNextVisibleContentRectAndStablePresentationUpdate:]): * Tools/TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * Tools/TestRunnerShared/UIScriptContext/UIScriptController.h: (WTR::UIScriptController::doAfterNextVisibleContentRectAndStablePresentationUpdate): * Tools/WebKitTestRunner/ios/UIScriptControllerIOS.h: * Tools/WebKitTestRunner/ios/UIScriptControllerIOS.mm: (WTR::UIScriptControllerIOS::doAfterNextVisibleContentRectAndStablePresentationUpdate): (WTR::UIScriptControllerIOS::zoomToScale): (WTR::setModifierFlagsForUIPhysicalKeyboardEvent): Deleted. Canonical link: https://commits.webkit.org/276847@main
- Loading branch information
Showing
13 changed files
with
31 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Viewport: initial-scale=1, viewport-fit=auto | ||
|
||
Window Size: 260 x 538 | ||
Window Size: 330 x 787 | ||
|
||
scale 1.00000 | ||
maxScale 5.00000 | ||
minScale 1.00000 | ||
visibleRect {"left":"-40.00000","top":"-10.00000","width":"320.00000","height":"548.00000"} | ||
visibleRect {"left":"-40.00000","top":"-10.00000","width":"390.00000","height":"797.00000"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
LayoutTests/fast/viewport/ios/viewport-fit-contain-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Viewport: initial-scale=1, viewport-fit=contain | ||
|
||
Window Size: 260 x 538 | ||
Window Size: 330 x 787 | ||
|
||
scale 1.00000 | ||
maxScale 5.00000 | ||
minScale 1.00000 | ||
visibleRect {"left":"-40.00000","top":"-10.00000","width":"320.00000","height":"548.00000"} | ||
visibleRect {"left":"-40.00000","top":"-10.00000","width":"390.00000","height":"797.00000"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
LayoutTests/fast/viewport/ios/viewport-fit-cover-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Viewport: initial-scale=1, viewport-fit=cover | ||
|
||
Window Size: 320 x 548 | ||
Window Size: 390 x 797 | ||
|
||
scale 1.00000 | ||
maxScale 5.00000 | ||
minScale 1.00000 | ||
visibleRect {"left":"0.00000","top":"0.00000","width":"320.00000","height":"548.00000"} | ||
visibleRect {"left":"0.00000","top":"0.00000","width":"390.00000","height":"797.00000"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters