| // Copyright 2013 The Flutter Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #import <Flutter/Flutter.h> |
| #import <XCTest/XCTest.h> |
| #import "GoldenTestManager.h" |
| |
| FLUTTER_ASSERT_ARC |
| |
| @interface BogusFontTextTest : XCTestCase |
| |
| @end |
| |
| @implementation BogusFontTextTest |
| |
| - (void)testFontRenderingWhenSuppliedWithBogusFont { |
| self.continueAfterFailure = NO; |
| |
| XCUIApplication* application = [[XCUIApplication alloc] init]; |
| application.launchArguments = @[ @"--bogus-font-text" ]; |
| [application launch]; |
| |
| XCUIElement* addTextField = application.textFields[@"ready"]; |
| XCTAssertTrue([addTextField waitForExistenceWithTimeout:30]); |
| |
| GoldenTestManager* manager = [[GoldenTestManager alloc] initWithLaunchArg:@"--bogus-font-text"]; |
| [manager checkGoldenForTest:self rmesThreshold:kDefaultRmseThreshold]; |
| } |
| |
| @end |