◆ setUp
Definition at line 11 of file LocalizationInitializationTest.m.
16 {
17 [super setUp];
18 self.continueAfterFailure = NO;
19
20 self.application = [[XCUIApplication alloc] init];
21 self.application.launchArguments = @[ @"--locale-initialization" ];
22 [self.application launch];
23}
◆ testNoLocalePrepend
- (void) testNoLocalePrepend |
|
|
|
|
implementation |
Definition at line 11 of file LocalizationInitializationTest.m.
25 {
27
28
29
30
31 NSArray<NSString*>* preferredLocales = [NSLocale preferredLanguages];
32 XCTAssertEqual(preferredLocales.count, 1);
33
34
35 NSString* localeDart = [preferredLocales.firstObject stringByReplacingOccurrencesOfString:@"-"
36 withString:@"_"];
37 NSString* expectedIdentifier = [NSString stringWithFormat:@"[%@]", localeDart];
38 XCUIElement* textInputSemanticsObject =
39 [self.application.textFields matchingIdentifier:expectedIdentifier].element;
40 XCTAssertTrue([textInputSemanticsObject waitForExistenceWithTimeout:
timeout]);
41
42 [textInputSemanticsObject tap];
43}
def timeout(deadline, cmd)
◆ application
- (XCUIApplication*) application |
|
readwritenonatomicstrong |
The documentation for this class was generated from the following file: