Make test back button label deterministic (#36404)

This commit is contained in:
xster 2019-07-19 12:00:19 -07:00 committed by GitHub
parent 38e41f5aee
commit 0636fb439a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 0 deletions

View File

@ -15,6 +15,11 @@
- (void)viewDidLoad {
[super viewDidLoad];
self.title = @"Dual Flutter Views";
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc]
initWithTitle:@"Back"
style:UIBarButtonItemStylePlain
target:nil
action:nil];
UIStackView* stackView = [[UIStackView alloc] initWithFrame:self.view.frame];
stackView.axis = UILayoutConstraintAxisVertical;

View File

@ -36,6 +36,11 @@ static NSString *_kPing = @"ping";
stackView.layoutMargins = UIEdgeInsetsMake(0, 0, 50, 0);
stackView.layoutMarginsRelativeArrangement = YES;
[self.view addSubview:stackView];
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc]
initWithTitle:@"Back"
style:UIBarButtonItemStylePlain
target:nil
action:nil];
NativeViewController *nativeViewController =
[[NativeViewController alloc] initWithDelegate:self];

View File

@ -34,6 +34,11 @@
self.title = @"Native iOS View";
self.view.backgroundColor = UIColor.lightGrayColor;
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc]
initWithTitle:@"Back"
style:UIBarButtonItemStylePlain
target:nil
action:nil];
_incrementLabel = [self addIncrementLabel];
UIStackView* footer = [self addFooter];