[Webkit-unassigned] [Bug 232384] [ iOS iPhone 12 ] fast/hidpi & fast/layers/hidpi tests are flaky text/image failing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 11 11:51:42 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=232384
--- Comment #14 from zalan <zalan at apple.com> ---
[[UIScreen mainScreen] _setScale:2.0]; is called in TestController::platformInitialize but not in-between tests.
diff --git a/Tools/WebKitTestRunner/ios/TestControllerIOS.mm b/Tools/WebKitTestRunner/ios/TestControllerIOS.mm
index 13c0e9ba6752..142a2c119530 100644
--- a/Tools/WebKitTestRunner/ios/TestControllerIOS.mm
+++ b/Tools/WebKitTestRunner/ios/TestControllerIOS.mm
@@ -158,6 +158,7 @@ bool TestController::platformResetStateToConsistentValues(const TestOptions& opt
[pasteboardConsistencyEnforcer() clearPasteboard];
[[UIApplication sharedApplication] _cancelAllTouches];
[[UIDevice currentDevice] setOrientation:UIDeviceOrientationPortrait animated:NO];
+ [[UIScreen mainScreen] _setScale:2.0];
^^ fixes the test failure.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220411/129bbf45/attachment.htm>
More information about the webkit-unassigned
mailing list