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

Instance Methods

(void) - testFontRendering [implementation]
 

Detailed Description

Definition at line 9 of file DarwinSystemFontTests.m.

Method Documentation

◆ testFontRendering

- (void) testFontRendering
implementation

Definition at line 1 of file DarwinSystemFontTests.m.

15 {
16 self.continueAfterFailure = NO;
17
18 XCUIApplication* application = [[XCUIApplication alloc] init];
19 application.launchArguments = @[ @"--darwin-system-font" ];
20 [application launch];
21
22 XCUIElement* addTextField = application.textFields[@"ready"];
23 XCTAssertTrue([addTextField waitForExistenceWithTimeout:30]);
24
26 [[GoldenTestManager alloc] initWithLaunchArg:@"--darwin-system-font"];
27 [manager checkGoldenForTest:self rmesThreshold:kDefaultRmseThreshold];
28}
void checkGoldenForTest:rmesThreshold:(XCTestCase *test,[rmesThreshold] double rmesThreshold)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font manager
Definition switches.h:218

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