Unverified Commit 0636fb43 authored by xster's avatar xster Committed by GitHub

Make test back button label deterministic (#36404)

parent 38e41f5a
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
- (void)viewDidLoad { - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
self.title = @"Dual Flutter Views"; 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]; UIStackView* stackView = [[UIStackView alloc] initWithFrame:self.view.frame];
stackView.axis = UILayoutConstraintAxisVertical; stackView.axis = UILayoutConstraintAxisVertical;
......
...@@ -36,6 +36,11 @@ static NSString *_kPing = @"ping"; ...@@ -36,6 +36,11 @@ static NSString *_kPing = @"ping";
stackView.layoutMargins = UIEdgeInsetsMake(0, 0, 50, 0); stackView.layoutMargins = UIEdgeInsetsMake(0, 0, 50, 0);
stackView.layoutMarginsRelativeArrangement = YES; stackView.layoutMarginsRelativeArrangement = YES;
[self.view addSubview:stackView]; [self.view addSubview:stackView];
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc]
initWithTitle:@"Back"
style:UIBarButtonItemStylePlain
target:nil
action:nil];
NativeViewController *nativeViewController = NativeViewController *nativeViewController =
[[NativeViewController alloc] initWithDelegate:self]; [[NativeViewController alloc] initWithDelegate:self];
......
...@@ -34,6 +34,11 @@ ...@@ -34,6 +34,11 @@
self.title = @"Native iOS View"; self.title = @"Native iOS View";
self.view.backgroundColor = UIColor.lightGrayColor; self.view.backgroundColor = UIColor.lightGrayColor;
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc]
initWithTitle:@"Back"
style:UIBarButtonItemStylePlain
target:nil
action:nil];
_incrementLabel = [self addIncrementLabel]; _incrementLabel = [self addIncrementLabel];
UIStackView* footer = [self addFooter]; UIStackView* footer = [self addFooter];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment