15- (instancetype)initWithInvocation:(NSInvocation*)invocation {
20- (void)testPlatformView {
32- (instancetype)initWithInvocation:(NSInvocation*)invocation {
34 [[
GoldenTestManager alloc] initWithLaunchArg:@"--non-full-screen-flutter-view-platform-view"];
38- (void)testPlatformView {
50- (instancetype)initWithInvocation:(NSInvocation*)invocation {
56- (void)testPlatformView {
68- (instancetype)initWithInvocation:(NSInvocation*)invocation {
70 initWithLaunchArg:@"--platform-view-multiple-background-foreground"];
74- (void)testPlatformView {
75 [[XCUIDevice sharedDevice] pressButton:XCUIDeviceButtonHome];
76 [
self.application activate];
89- (instancetype)initWithInvocation:(NSInvocation*)invocation {
95- (void)testPlatformView {
108- (instancetype)initWithInvocation:(NSInvocation*)invocation {
110 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-cliprect-multiple-clips"];
114- (void)testPlatformView {
126- (instancetype)initWithInvocation:(NSInvocation*)invocation {
128 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-cliprect-after-moved"];
132- (void)testPlatformView {
136 XCUIElement* element =
self.application.otherElements[@"platform_view[10000]"];
137 BOOL exists = [element waitForExistenceWithTimeout:kSecondsToWaitForPlatformView];
139 XCTFail(
@"It took longer than %@ second to find the platform view."
140 @"There might be issues with the platform view's construction,"
141 @"or with how the scenario is built.",
156- (instancetype)initWithInvocation:(NSInvocation*)invocation {
158 initWithLaunchArg:@"--platform-view-cliprect-after-moved-multiple-clips"];
162- (void)testPlatformView {
166 XCUIElement* element =
self.application.otherElements[@"platform_view[10000]"];
167 BOOL exists = [element waitForExistenceWithTimeout:kSecondsToWaitForPlatformView];
169 XCTFail(
@"It took longer than %@ second to find the platform view."
170 @"There might be issues with the platform view's construction,"
171 @"or with how the scenario is built.",
186- (instancetype)initWithInvocation:(NSInvocation*)invocation {
192- (void)testPlatformView {
204- (instancetype)initWithInvocation:(NSInvocation*)invocation {
206 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-cliprrect-multiple-clips"];
210- (void)testPlatformView {
222- (instancetype)initWithInvocation:(NSInvocation*)invocation {
224 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-large-cliprrect"];
228- (void)testPlatformView {
240- (instancetype)initWithInvocation:(NSInvocation*)invocation {
242 initWithLaunchArg:@"--platform-view-large-cliprrect-multiple-clips"];
246- (void)testPlatformView {
258- (instancetype)initWithInvocation:(NSInvocation*)invocation {
264- (void)testPlatformView {
276- (instancetype)initWithInvocation:(NSInvocation*)invocation {
278 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-clippath-multiple-clips"];
282- (void)testPlatformView {
294- (instancetype)initWithInvocation:(NSInvocation*)invocation {
296 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-cliprect-with-transform"];
300- (void)testPlatformView {
312- (instancetype)initWithInvocation:(NSInvocation*)invocation {
314 initWithLaunchArg:@"--platform-view-cliprect-with-transform-multiple-clips"];
318- (void)testPlatformView {
330- (instancetype)initWithInvocation:(NSInvocation*)invocation {
332 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-cliprrect-with-transform"];
336- (void)testPlatformView {
348- (instancetype)initWithInvocation:(NSInvocation*)invocation {
350 initWithLaunchArg:@"--platform-view-cliprrect-with-transform-multiple-clips"];
354- (void)testPlatformView {
366- (instancetype)initWithInvocation:(NSInvocation*)invocation {
368 initWithLaunchArg:@"--platform-view-large-cliprrect-with-transform"];
372- (void)testPlatformView {
385- (instancetype)initWithInvocation:(NSInvocation*)invocation {
387 initWithLaunchArg:@"--platform-view-large-cliprrect-with-transform-multiple-clips"];
388 return [
super initWithManager:manager invocation:invocation];
391- (void)testPlatformView {
392 [
self checkPlatformViewGolden];
403- (instancetype)initWithInvocation:(NSInvocation*)invocation {
405 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-clippath-with-transform"];
409- (void)testPlatformView {
421- (instancetype)initWithInvocation:(NSInvocation*)invocation {
423 initWithLaunchArg:@"--platform-view-clippath-with-transform-multiple-clips"];
427- (void)testPlatformView {
439- (instancetype)initWithInvocation:(NSInvocation*)invocation {
445- (void)testPlatformView {
457- (instancetype)initWithInvocation:(NSInvocation*)invocation {
459 [[
GoldenTestManager alloc] initWithLaunchArg:@"--two-platform-view-clip-rect-multiple-clips"];
463- (void)testPlatformView {
475- (instancetype)initWithInvocation:(NSInvocation*)invocation {
481- (void)testPlatformView {
493- (instancetype)initWithInvocation:(NSInvocation*)invocation {
495 initWithLaunchArg:@"--two-platform-view-clip-rrect-multiple-clips"];
499- (void)testPlatformView {
511- (instancetype)initWithInvocation:(NSInvocation*)invocation {
517- (void)testPlatformView {
529- (instancetype)initWithInvocation:(NSInvocation*)invocation {
531 [[
GoldenTestManager alloc] initWithLaunchArg:@"--two-platform-view-clip-path-multiple-clips"];
535- (void)testPlatformView {
547- (instancetype)initWithInvocation:(NSInvocation*)invocation {
553- (void)testPlatformView {
565- (instancetype)initWithInvocation:(NSInvocation*)invocation {
571- (void)testPlatformView {
583- (instancetype)initWithInvocation:(NSInvocation*)invocation {
585 [[
GoldenTestManager alloc] initWithLaunchArg:@"--platform-view-with-other-backdrop-filter"];
589- (void)testPlatformView {
593 self.rmseThreadhold = 0.7;
605- (instancetype)initWithInvocation:(NSInvocation*)invocation {
607 initWithLaunchArg:@"--two-platform-views-with-other-backdrop-filter"];
611- (void)testPlatformView {
615 self.rmseThreadhold = 1.5;
627- (instancetype)initWithInvocation:(NSInvocation*)invocation {
629 initWithLaunchArg:@"--platform-view-with-negative-backdrop-filter"];
633- (void)testPlatformView {
637 self.rmseThreadhold = 1.0;
647- (instancetype)initWithInvocation:(NSInvocation*)invocation {
654 XCUIDevice.sharedDevice.orientation = UIDeviceOrientationPortrait;
658- (void)testPlatformView {
659 XCUIDevice.sharedDevice.orientation = UIDeviceOrientationLandscapeLeft;
672 self.continueAfterFailure = NO;
675- (void)testPlatformViewWithContinuousTexture {
676 XCUIApplication* app = [[XCUIApplication alloc] init];
677 app.launchArguments =
678 @[ @"--platform-view-with-continuous-texture", @"--with-continuous-texture" ];
681 XCUIElement* platformView = app.textViews.firstMatch;
682 BOOL exists = [platformView waitForExistenceWithTimeout:kSecondsToWaitForPlatformView];
684 XCTFail(
@"It took longer than %@ second to find the platform view."
685 @"There might be issues with the platform view's construction,"
686 @"or with how the scenario is built.",
690 XCTAssertNotNil(platformView);
703 self.continueAfterFailure = NO;
706- (void)testPlatformViewScrollingUnderWidget {
707 XCUIApplication* app = [[XCUIApplication alloc] init];
708 app.launchArguments =
709 @[ @"--platform-view-scrolling-under-widget", @"--with-continuous-texture" ];
712 XCUIElement* platformView = app.textViews.firstMatch;
713 BOOL exists = [platformView waitForExistenceWithTimeout:kSecondsToWaitForPlatformView];
715 XCTFail(
@"It took longer than %@ second to find the platform view."
716 @"There might be issues with the platform view's construction,"
717 @"or with how the scenario is built.",
722 XCTWaiterResult waitResult = [XCTWaiter
723 waitForExpectations:@[ [[XCTestExpectation alloc] initWithDescription:@"Wait for 5 seconds"] ]
727 XCTAssert(waitResult != XCTWaiterResultInterrupted);
740 self.continueAfterFailure = NO;
743- (void)testPlatformViewsWithClipsScrolling {
744 XCUIApplication* app = [[XCUIApplication alloc] init];
745 app.launchArguments =
746 @[ @"--platform-views-with-clips-scrolling", @"platform_views_with_clips_scrolling" ];
749 XCUIElement* platformView = app.textViews.firstMatch;
750 BOOL exists = [platformView waitForExistenceWithTimeout:kSecondsToWaitForPlatformView];
752 XCTFail(
@"It took longer than %@ second to find the platform view."
753 @"There might be issues with the platform view's construction,"
754 @"or with how the scenario is built.",
759 XCTWaiterResult waitResult = [XCTWaiter
760 waitForExpectations:@[ [[XCTestExpectation alloc] initWithDescription:@"Wait for 5 seconds"] ]
764 XCTAssert(waitResult != XCTWaiterResultInterrupted);
777 self.continueAfterFailure = NO;
780- (void)testPlatformViewsWithClipsScrolling {
781 XCUIApplication* app = [[XCUIApplication alloc] init];
782 app.launchArguments = @[
783 @"--platform-views-with-clips-scrolling", @"platform_views_with_clips_scrolling-multiple-clips"
787 XCUIElement* platformView = app.textViews.firstMatch;
788 BOOL exists = [platformView waitForExistenceWithTimeout:kSecondsToWaitForPlatformView];
790 XCTFail(
@"It took longer than %@ second to find the platform view."
791 @"There might be issues with the platform view's construction,"
792 @"or with how the scenario is built.",
797 XCTWaiterResult waitResult = [XCTWaiter
798 waitForExpectations:@[ [[XCTestExpectation alloc] initWithDescription:@"Wait for 5 seconds"] ]
802 XCTAssert(waitResult != XCTWaiterResultInterrupted);