|
@@ -59,6 +59,25 @@
|
59
|
59
|
XCTAssertTrue([self.uut prefersStatusBarHidden]);
|
60
|
60
|
}
|
61
|
61
|
|
|
62
|
+- (void)testStatusBarHideWithTopBar_false {
|
|
63
|
+ self.options.statusBarHideWithTopBar = @(0);
|
|
64
|
+ self.options.topBarHidden = @(1);
|
|
65
|
+ __unused UINavigationController* nav = [[UINavigationController alloc] initWithRootViewController:self.uut];
|
|
66
|
+ [self.uut viewWillAppear:false];
|
|
67
|
+
|
|
68
|
+ XCTAssertFalse([self.uut prefersStatusBarHidden]);
|
|
69
|
+}
|
|
70
|
+
|
|
71
|
+- (void)testStatusBarHideWithTopBar_true {
|
|
72
|
+ self.options.statusBarHideWithTopBar = @(1);
|
|
73
|
+ self.options.topBarHidden = @(1);
|
|
74
|
+ __unused UINavigationController* nav = [[UINavigationController alloc] initWithRootViewController:self.uut];
|
|
75
|
+ [self.uut viewWillAppear:false];
|
|
76
|
+
|
|
77
|
+ XCTAssertTrue([self.uut prefersStatusBarHidden]);
|
|
78
|
+}
|
|
79
|
+
|
|
80
|
+
|
62
|
81
|
- (void)testStatusBarHidden_false {
|
63
|
82
|
self.options.statusBarHidden = @(0);
|
64
|
83
|
__unused UINavigationController* nav = [[UINavigationController alloc] initWithRootViewController:self.uut];
|