Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
GoldenPlatformViewTests Class Reference

#include <GoldenPlatformViewTests.h>

Inheritance diagram for GoldenPlatformViewTests:
MultiplePlatformViewsBackgroundForegroundTest MultiplePlatformViewsTest NonFullScreenFlutterViewPlatformViewUITests PlatformViewMutationClipPathMultipleClipsTests PlatformViewMutationClipPathTests PlatformViewMutationClipPathWithTransformMultipleClipsTests PlatformViewMutationClipPathWithTransformTests PlatformViewMutationClipRRectMultipleClipsTests PlatformViewMutationClipRRectTests PlatformViewMutationClipRRectWithTransformMultipleClipsTests PlatformViewMutationClipRRectWithTransformTests PlatformViewMutationClipRectAfterMovedMultipleClipsTests PlatformViewMutationClipRectAfterMovedTests PlatformViewMutationClipRectTests PlatformViewMutationClipRectWithMultiupleClipsTests PlatformViewMutationClipRectWithTransformMultipleClipsTests PlatformViewMutationClipRectWithTransformTests PlatformViewMutationLargeClipRRectMultipleClipsTests PlatformViewMutationLargeClipRRectTests PlatformViewMutationLargeClipRRectWithTransformTests PlatformViewMutationOpacityTests PlatformViewMutationTransformTests PlatformViewRotation PlatformViewUITests PlatformViewWithNegativeOtherBackDropFilterTests PlatformViewWithOtherBackdropFilterTests TwoPlatformViewClipPathMultipleClipsTests TwoPlatformViewClipPathTests TwoPlatformViewClipRRectMultipleClipsTests TwoPlatformViewClipRRectTests TwoPlatformViewClipRectMultipleClipsTests TwoPlatformViewClipRectTests TwoPlatformViewsWithOtherBackDropFilterTests

Instance Methods

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

Properties

XCUIApplication * application
 
double rmseThreadhold
 

Detailed Description

Definition at line 21 of file GoldenPlatformViewTests.h.

Method Documentation

◆ checkPlatformViewGolden

- (void) checkPlatformViewGolden

Definition at line 16 of file GoldenPlatformViewTests.m.

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

References kDefaultRmseThreshold.

◆ initWithManager:invocation:

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

Definition at line 16 of file GoldenPlatformViewTests.m.

22 :(GoldenTestManager*)manager invocation:(NSInvocation*)invocation {
23 self = [super initWithInvocation:invocation];
24 _manager = manager;
25 _rmseThreadhold = kDefaultRmseThreshold;
26 return self;
27}
const double kDefaultRmseThreshold
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font manager

Property Documentation

◆ application

- (XCUIApplication*) application
readwritenonatomicstrong

Definition at line 23 of file GoldenPlatformViewTests.h.

◆ rmseThreadhold

- (double) rmseThreadhold
readwritenonatomicassign

Definition at line 24 of file GoldenPlatformViewTests.h.


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