Flutter Engine
GoldenPlatformViewTests Class Reference

#import <GoldenPlatformViewTests.h>

Inheritance diagram for GoldenPlatformViewTests:
MultiplePlatformViewsBackgroundForegroundTest MultiplePlatformViewsTest NonFullScreenFlutterViewPlatformViewUITests PlatformViewMutationClipPathTests PlatformViewMutationClipRectTests PlatformViewMutationClipRRectTests PlatformViewMutationOpacityTests PlatformViewMutationTransformTests PlatformViewRotation PlatformViewUITests PlatformViewWithOtherBackdropFilterTests TwoPlatformViewsWithOtherBackDropFilterTests

Instance Methods

(instancetype) - initWithManager:invocation:
 
(void) - checkPlatformViewGolden
 

Properties

XCUIApplication * application
 

Detailed Description

Definition at line 18 of file GoldenPlatformViewTests.h.

Method Documentation

◆ checkPlatformViewGolden()

- (void) checkPlatformViewGolden

Definition at line 38 of file GoldenPlatformViewTests.m.

References kSecondsToWaitForPlatformView.

38  {
39  XCUIElement* element = self.application.textViews.firstMatch;
40  BOOL exists = [element waitForExistenceWithTimeout:kSecondsToWaitForPlatformView];
41  if (!exists) {
42  XCTFail(@"It took longer than %@ second to find the platform view."
43  @"There might be issues with the platform view's construction,"
44  @"or with how the scenario is built.",
46  }
47 
48  [self.manager checkGoldenForTest:self];
49 }
static const NSInteger kSecondsToWaitForPlatformView
int BOOL
Definition: windows_types.h:37

◆ initWithManager:invocation:()

- (instancetype) initWithManager: (GoldenTestManager*)  manager
invocation: (NSInvocation*)  invocation 

Definition at line 22 of file GoldenPlatformViewTests.m.

22  :(GoldenTestManager*)manager invocation:(NSInvocation*)invocation {
23  self = [super initWithInvocation:invocation];
24  _manager = manager;
25  return self;
26 }

Property Documentation

◆ application

- (XCUIApplication*) application
readwritenonatomicstrong

Definition at line 20 of file GoldenPlatformViewTests.h.


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