15- (instancetype)initWithInvocation:(NSInvocation*)invocation {
32- (instancetype)initWithInvocation:(NSInvocation*)invocation {
34 [[
GoldenTestManager alloc] initWithLaunchArg:@"--non-full-screen-flutter-view-platform-view"];
50- (instancetype)initWithInvocation:(NSInvocation*)invocation {
68- (instancetype)initWithInvocation:(NSInvocation*)invocation {
70 initWithLaunchArg:@"--platform-view-multiple-background-foreground"];
75 [[XCUIDevice sharedDevice] pressButton:XCUIDeviceButtonHome];
76 [
self.application activate];
89- (instancetype)initWithInvocation:(NSInvocation*)invocation {
107- (instancetype)initWithInvocation:(NSInvocation*)invocation {
109 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-cliprect-after-moved"];
117 XCUIElement* element =
self.application.otherElements[@"platform_view[10000]"];
118 BOOL exists = [element waitForExistenceWithTimeout:kSecondsToWaitForPlatformView];
120 XCTFail(
@"It took longer than %@ second to find the platform view."
121 @"There might be issues with the platform view's construction,"
122 @"or with how the scenario is built.",
137- (instancetype)initWithInvocation:(NSInvocation*)invocation {
155- (instancetype)initWithInvocation:(NSInvocation*)invocation {
157 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-large-cliprrect"];
173- (instancetype)initWithInvocation:(NSInvocation*)invocation {
191- (instancetype)initWithInvocation:(NSInvocation*)invocation {
193 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-cliprect-with-transform"];
209- (instancetype)initWithInvocation:(NSInvocation*)invocation {
211 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-cliprrect-with-transform"];
227- (instancetype)initWithInvocation:(NSInvocation*)invocation {
229 initWithLaunchArg:@"--platform-view-large-cliprrect-with-transform"];
245- (instancetype)initWithInvocation:(NSInvocation*)invocation {
247 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-clippath-with-transform"];
263- (instancetype)initWithInvocation:(NSInvocation*)invocation {
281- (instancetype)initWithInvocation:(NSInvocation*)invocation {
299- (instancetype)initWithInvocation:(NSInvocation*)invocation {
317- (instancetype)initWithInvocation:(NSInvocation*)invocation {
335- (instancetype)initWithInvocation:(NSInvocation*)invocation {
353- (instancetype)initWithInvocation:(NSInvocation*)invocation {
355 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-with-other-backdrop-filter"];
371- (instancetype)initWithInvocation:(NSInvocation*)invocation {
373 initWithLaunchArg:@"--two-platform-views-with-other-backdrop-filter"];
380 if ([NSProcessInfo processInfo].operatingSystemVersion.majorVersion >= 13) {
381 self.rmseThreadhold = 0.7;
394- (instancetype)initWithInvocation:(NSInvocation*)invocation {
396 initWithLaunchArg:@"--platform-view-with-negative-backdrop-filter"];
410- (instancetype)initWithInvocation:(NSInvocation*)invocation {
417 XCUIDevice.sharedDevice.orientation = UIDeviceOrientationPortrait;
422 XCUIDevice.sharedDevice.orientation = UIDeviceOrientationLandscapeLeft;
435 self.continueAfterFailure = NO;
439 XCUIApplication*
app = [[XCUIApplication alloc] init];
440 app.launchArguments =
441 @[ @"--platform-view-with-continuous-texture", @"--with-continuous-texture" ];
444 XCUIElement* platformView =
app.textViews.firstMatch;
445 BOOL exists = [platformView waitForExistenceWithTimeout:kSecondsToWaitForPlatformView];
447 XCTFail(
@"It took longer than %@ second to find the platform view."
448 @"There might be issues with the platform view's construction,"
449 @"or with how the scenario is built.",
453 XCTAssertNotNil(platformView);
466 self.continueAfterFailure = NO;
470 XCUIApplication*
app = [[XCUIApplication alloc] init];
471 app.launchArguments =
472 @[ @"--platform-view-scrolling-under-widget", @"--with-continuous-texture" ];
475 XCUIElement* platformView =
app.textViews.firstMatch;
476 BOOL exists = [platformView waitForExistenceWithTimeout:kSecondsToWaitForPlatformView];
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.",
485 XCTWaiterResult waitResult = [XCTWaiter
486 waitForExpectations:@[ [[XCTestExpectation alloc] initWithDescription:@"Wait for 5 seconds"] ]
490 XCTAssert(waitResult != XCTWaiterResultInterrupted);
503 self.continueAfterFailure = NO;
507 XCUIApplication*
app = [[XCUIApplication alloc] init];
508 app.launchArguments =
509 @[ @"--platform-views-with-clips-scrolling", @"platform_views_with_clips_scrolling" ];
512 XCUIElement* platformView =
app.textViews.firstMatch;
513 BOOL exists = [platformView waitForExistenceWithTimeout:kSecondsToWaitForPlatformView];
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.",
522 XCTWaiterResult waitResult = [XCTWaiter
523 waitForExpectations:@[ [[XCTestExpectation alloc] initWithDescription:@"Wait for 5 seconds"] ]
527 XCTAssert(waitResult != XCTWaiterResultInterrupted);
void testPlatformViewWithContinuousTexture()