Changeset 292749 in webkit


Ignore:
Timestamp:
Apr 11, 2022 5:43:49 PM (2 years ago)
Author:
Alan Bujtas
Message:

[ iOS iPhone 12 ] fast/hidpi & fast/layers/hidpi tests are flaky text/image failing
https://bugs.webkit.org/show_bug.cgi?id=232384
<rdar://problem/84714121>

Reviewed by Wenson Hsieh.

Tools:

Rotation (initiated by UiController::simulateRotationLikeSafari) may confuse UIScreen and produce unexpected scale value.
This patch ensures that we set the scale value back to the default (2) in between test runs.
(Currently we only set this value in TestController::platformInitialize/dumpRenderTree.)

  • DumpRenderTree/mac/DumpRenderTree.mm:

(resetWebViewToConsistentState):

  • WebKitTestRunner/ios/TestControllerIOS.mm:

(WTR::TestController::platformResetStateToConsistentValues):

LayoutTests:

  • platform/ios/TestExpectations:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r292739 r292749  
     12022-04-11  Alan Bujtas  <zalan@apple.com>
     2
     3        [ iOS iPhone 12 ] fast/hidpi & fast/layers/hidpi tests are flaky text/image failing
     4        https://bugs.webkit.org/show_bug.cgi?id=232384
     5        <rdar://problem/84714121>
     6
     7        Reviewed by Wenson Hsieh.
     8
     9        * platform/ios/TestExpectations:
     10
    1112022-04-11  Truitt Savell  <tsavell@apple.com>
    212
  • trunk/LayoutTests/platform/ios/TestExpectations

    r292562 r292749  
    34273427model-element/model-element-interactive-dragging.html [ Skip ]
    34283428
    3429 # webkit.org/b/232384 these are flaky failures on iOS
    3430 fast/hidpi/image-srcset-simple-1x.html [ Pass Failure ]
    3431 fast/hidpi/image-srcset-simple-in-variable-1x.html [ Pass Failure ]
    3432 fast/hidpi/pdf-image-scaled.html [ Pass Failure ]
    3433 
    34343429# webkit.org/b/201982 These are flaky failures on iOS
    34353430fast/images/exif-orientation-svg-feimage.html [ Pass Failure ]
  • trunk/Tools/ChangeLog

    r292731 r292749  
     12022-04-11  Alan Bujtas  <zalan@apple.com>
     2
     3        [ iOS iPhone 12 ] fast/hidpi & fast/layers/hidpi tests are flaky text/image failing
     4        https://bugs.webkit.org/show_bug.cgi?id=232384
     5        <rdar://problem/84714121>
     6
     7        Reviewed by Wenson Hsieh.
     8
     9        Rotation (initiated by UiController::simulateRotationLikeSafari) may confuse UIScreen and produce unexpected scale value.
     10        This patch ensures that we set the scale value back to the default (2) in between test runs.
     11        (Currently we only set this value in TestController::platformInitialize/dumpRenderTree.)
     12
     13        * DumpRenderTree/mac/DumpRenderTree.mm:
     14        (resetWebViewToConsistentState):
     15        * WebKitTestRunner/ios/TestControllerIOS.mm:
     16        (WTR::TestController::platformResetStateToConsistentValues):
     17
    1182022-04-11  Sam Sneddon  <gsnedders@apple.com>
    219
  • trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm

    r292587 r292749  
    17331733    adjustWebDocumentForStandardViewport(gWebBrowserView.get(), gWebScrollView.get());
    17341734    [webView _setAllowsMessaging:YES];
     1735    [[UIScreen mainScreen] _setScale:2.0];
    17351736#endif
    17361737    [webView setEditable:NO];
  • trunk/Tools/WebKitTestRunner/ios/TestControllerIOS.mm

    r289169 r292749  
    159159    [[UIApplication sharedApplication] _cancelAllTouches];
    160160    [[UIDevice currentDevice] setOrientation:UIDeviceOrientationPortrait animated:NO];
     161    [[UIScreen mainScreen] _setScale:2.0];
    161162
    162163    // Ensures that only the UCB is on-screen when showing the keyboard, if the hardware keyboard is attached.
Note: See TracChangeset for help on using the changeset viewer.