Flutter Engine
The Flutter Engine
testing
scenario_app
ios
Scenarios
ScenariosUITests
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>
7
#import "
GoldenTestManager.h
"
8
9
FLUTTER_ASSERT_ARC
10
11
@interface
BogusFontTextTest
: XCTestCase
12
13
@end
14
15
@implementation
BogusFontTextTest
16
17
- (void)
testFontRenderingWhenSuppliedWithBogusFont
{
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
GoldenTestManager.h
BogusFontTextTest
Definition:
BogusFontTextTest.m:12
-[BogusFontTextTest testFontRenderingWhenSuppliedWithBogusFont]
void testFontRenderingWhenSuppliedWithBogusFont()
Definition:
BogusFontTextTest.m:17
GoldenTestManager
Definition:
GoldenTestManager.h:22
-[GoldenTestManager checkGoldenForTest:rmesThreshold:]
void checkGoldenForTest:rmesThreshold:(XCTestCase *test,[rmesThreshold] double rmesThreshold)
Definition:
GoldenTestManager.m:79
FLUTTER_ASSERT_ARC
Definition:
FlutterChannelKeyResponder.mm:13
flutter::manager
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
Generated on Sun Jun 23 2024 21:55:19 for Flutter Engine by
1.9.4