Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
BogusFontTextTest.m
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#import <Flutter/Flutter.h>
6#import <XCTest/XCTest.h>
8
10
11@interface BogusFontTextTest : XCTestCase
12
13@end
14
15@implementation BogusFontTextTest
16
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}
30
31@end
void testFontRenderingWhenSuppliedWithBogusFont()