Changeset 249653 in webkit


Ignore:
Timestamp:
Sep 9, 2019 11:56:47 AM (5 years ago)
Author:
dbates@webkit.org
Message:

Remove all selection view animations before dumping results
https://bugs.webkit.org/show_bug.cgi?id=199241

Reviewed by Wenson Hsieh.

On iOS the selection UI uses a few animations, including fading in the grabbers. We have many
historical tests that were written for Mac and expect Mac's lack of animations that we run on
iOS and are flaky. Let's try to remove all selection view animations before dumping results and
see if this makes tests on iOS less flaky. A future enhancement to this is to expose a uiController
API for a test to remove selection animations at any time during the run.

  • WebKitTestRunner/ios/TestControllerIOS.mm:

(WTR::TestController::notifyDone):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r249652 r249653  
     12019-09-09  Daniel Bates  <dabates@apple.com>
     2
     3        Remove all selection view animations before dumping results
     4        https://bugs.webkit.org/show_bug.cgi?id=199241
     5
     6        Reviewed by Wenson Hsieh.
     7
     8        On iOS the selection UI uses a few animations, including fading in the grabbers. We have many
     9        historical tests that were written for Mac and expect Mac's lack of animations that we run on
     10        iOS and are flaky. Let's try to remove all selection view animations before dumping results and
     11        see if this makes tests on iOS less flaky. A future enhancement to this is to expose a uiController
     12        API for a test to remove selection animations at any time during the run.
     13
     14        * WebKitTestRunner/ios/TestControllerIOS.mm:
     15        (WTR::TestController::notifyDone):
     16
    1172019-09-09  Jonathan Bedard  <jbedard@apple.com>
    218
  • trunk/Tools/WebKitTestRunner/ios/TestControllerIOS.mm

    r248846 r249653  
    8383void TestController::notifyDone()
    8484{
     85    UIView *contentView = [mainWebView()->platformView() valueForKeyPath:@"_currentContentView"];
     86    UIView *selectionView = [contentView valueForKeyPath:@"interactionAssistant.selectionView"];
     87    [selectionView _removeAllAnimations:YES];
    8588}
    8689
Note: See TracChangeset for help on using the changeset viewer.