Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Instance Methods | List of all members
PlatformViewScrollingUnderWidget Class Reference
Inheritance diagram for PlatformViewScrollingUnderWidget:

Instance Methods

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

Detailed Description

Definition at line 458 of file PlatformViewUITests.m.

Method Documentation

◆ setUp

- (void) setUp
implementation

Definition at line 7 of file PlatformViewUITests.m.

464 {
465 [super setUp];
466 self.continueAfterFailure = NO;
467}

◆ testPlatformViewScrollingUnderWidget

- (void) testPlatformViewScrollingUnderWidget
implementation

Definition at line 7 of file PlatformViewUITests.m.

469 {
470 XCUIApplication* app = [[XCUIApplication alloc] init];
471 app.launchArguments =
472 @[ @"--platform-view-scrolling-under-widget", @"--with-continuous-texture" ];
473 [app launch];
474
475 XCUIElement* platformView = app.textViews.firstMatch;
476 BOOL exists = [platformView waitForExistenceWithTimeout:kSecondsToWaitForPlatformView];
477 if (!exists) {
478 XCTFail(@"It took longer than %@ second to find the platform view."
479 @"There might be issues with the platform view's construction,"
480 @"or with how the scenario is built.",
482 }
483
484 // Wait and let the scenario app scroll a bit.
485 XCTWaiterResult waitResult = [XCTWaiter
486 waitForExpectations:@[ [[XCTestExpectation alloc] initWithDescription:@"Wait for 5 seconds"] ]
487 timeout:5];
488 // If the waiter is not interrupted, we know the app is in a valid state after timeout, thus the
489 // test passes.
490 XCTAssert(waitResult != XCTWaiterResultInterrupted);
491}
static const NSInteger kSecondsToWaitForPlatformView
int BOOL

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