|
@@ -69,14 +69,22 @@
|
69
|
69
|
XCTAssertFalse([self.uut prefersStatusBarHidden]);
|
70
|
70
|
}
|
71
|
71
|
|
72
|
|
-- (void)testStatusBarHidden_true {
|
73
|
|
- self.options.statusBar.hidden = @(1);
|
|
72
|
+- (void)testStatusBarVisible_false {
|
|
73
|
+ self.options.statusBar.visible = @(0);
|
74
|
74
|
__unused RNNNavigationController* nav = [[RNNNavigationController alloc] initWithRootViewController:self.uut];
|
75
|
75
|
[self.uut viewWillAppear:false];
|
76
|
76
|
|
77
|
77
|
XCTAssertTrue([self.uut prefersStatusBarHidden]);
|
78
|
78
|
}
|
79
|
79
|
|
|
80
|
+- (void)testStatusBarVisible_true {
|
|
81
|
+ self.options.statusBar.visible = @(1);
|
|
82
|
+ __unused RNNNavigationController* nav = [[RNNNavigationController alloc] initWithRootViewController:self.uut];
|
|
83
|
+ [self.uut viewWillAppear:false];
|
|
84
|
+
|
|
85
|
+ XCTAssertFalse([self.uut prefersStatusBarHidden]);
|
|
86
|
+}
|
|
87
|
+
|
80
|
88
|
- (void)testStatusBarHideWithTopBar_false {
|
81
|
89
|
self.options.statusBar.hideWithTopBar = @(0);
|
82
|
90
|
self.options.topBar.visible = @(0);
|
|
@@ -95,15 +103,6 @@
|
95
|
103
|
XCTAssertTrue([self.uut prefersStatusBarHidden]);
|
96
|
104
|
}
|
97
|
105
|
|
98
|
|
-
|
99
|
|
-- (void)testStatusBarHidden_false {
|
100
|
|
- self.options.statusBar.hidden = @(0);
|
101
|
|
- __unused RNNNavigationController* nav = [[RNNNavigationController alloc] initWithRootViewController:self.uut];
|
102
|
|
- [self.uut viewWillAppear:false];
|
103
|
|
-
|
104
|
|
- XCTAssertFalse([self.uut prefersStatusBarHidden]);
|
105
|
|
-}
|
106
|
|
-
|
107
|
106
|
-(void)testTitle_string{
|
108
|
107
|
NSString* title =@"some title";
|
109
|
108
|
self.options.topBar.title.text = title;
|