Flutter Engine
The Flutter Engine
Instance Methods | List of all members
PlatformViewWithClipsScrolling Class Reference
Inheritance diagram for PlatformViewWithClipsScrolling:

Instance Methods

(void) - setUp [implementation]
 
(void) - testPlatformViewsWithClipsScrolling [implementation]
 

Detailed Description

Definition at line 495 of file PlatformViewUITests.m.

Method Documentation

◆ setUp

- (void) setUp
implementation

Definition at line 7 of file PlatformViewUITests.m.

501 {
502 [super setUp];
503 self.continueAfterFailure = NO;
504}

◆ testPlatformViewsWithClipsScrolling

- (void) testPlatformViewsWithClipsScrolling
implementation

Definition at line 7 of file PlatformViewUITests.m.

506 {
507 XCUIApplication* app = [[XCUIApplication alloc] init];
508 app.launchArguments =
509 @[ @"--platform-views-with-clips-scrolling", @"platform_views_with_clips_scrolling" ];
510 [app launch];
511
512 XCUIElement* platformView = app.textViews.firstMatch;
513 BOOL exists = [platformView waitForExistenceWithTimeout:kSecondsToWaitForPlatformView];
514 if (!exists) {
515 XCTFail(@"It took longer than %@ second to find the platform view."
516 @"There might be issues with the platform view's construction,"
517 @"or with how the scenario is built.",
519 }
520
521 // Wait and let the scenario app scroll a bit.
522 XCTWaiterResult waitResult = [XCTWaiter
523 waitForExpectations:@[ [[XCTestExpectation alloc] initWithDescription:@"Wait for 5 seconds"] ]
524 timeout:5];
525 // If the waiter is not interrupted, we know the app is in a valid state after timeout, thus the
526 // test passes.
527 XCTAssert(waitResult != XCTWaiterResultInterrupted);
528}
static const NSInteger kSecondsToWaitForPlatformView
int BOOL
Definition: windows_types.h:37

The documentation for this class was generated from the following file: