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

Instance Methods

(void) - testFontRenderingWhenSuppliedWithBogusFont [implementation]
 

Detailed Description

Definition at line 11 of file BogusFontTextTest.m.

Method Documentation

◆ testFontRenderingWhenSuppliedWithBogusFont

- (void) testFontRenderingWhenSuppliedWithBogusFont
implementation

Definition at line 9 of file BogusFontTextTest.m.

17 {
18 self.continueAfterFailure = NO;
19
20 XCUIApplication* application = [[XCUIApplication alloc] init];
21 application.launchArguments = @[ @"--bogus-font-text" ];
22 [application launch];
23
24 XCUIElement* addTextField = application.textFields[@"ready"];
25 XCTAssertTrue([addTextField waitForExistenceWithTimeout:30]);
26
27 GoldenTestManager* manager = [[GoldenTestManager alloc] initWithLaunchArg:@"--bogus-font-text"];
28 [manager checkGoldenForTest:self rmesThreshold:kDefaultRmseThreshold];
29}
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: