|
@@ -157,7 +157,7 @@
|
157
|
157
|
__unused RNNNavigationController* nav = [[RNNNavigationController alloc] initWithRootViewController:self.uut];
|
158
|
158
|
self.options.topBar.title.fontFamily = inputFont;
|
159
|
159
|
[self.uut viewWillAppear:false];
|
160
|
|
- UIFont* expectedFont = [UIFont fontWithName:inputFont size:20];
|
|
160
|
+ UIFont* expectedFont = [UIFont fontWithName:inputFont size:17];
|
161
|
161
|
XCTAssertTrue([self.uut.navigationController.navigationBar.titleTextAttributes[@"NSFont"] isEqual:expectedFont]);
|
162
|
162
|
}
|
163
|
163
|
|
|
@@ -169,15 +169,6 @@
|
169
|
169
|
XCTAssertTrue(self.uut.navigationController.hidesBarsOnSwipe);
|
170
|
170
|
}
|
171
|
171
|
|
172
|
|
--(void)testTopBarButtonColor {
|
173
|
|
- NSNumber* inputColor = @(0xFFFF0000);
|
174
|
|
- __unused RNNNavigationController* nav = [[RNNNavigationController alloc] initWithRootViewController:self.uut];
|
175
|
|
- self.options.topBar.buttonColor = inputColor;
|
176
|
|
- [self.uut viewWillAppear:false];
|
177
|
|
- UIColor* expectedColor = [UIColor colorWithRed:1 green:0 blue:0 alpha:1];
|
178
|
|
- XCTAssertTrue([self.uut.navigationController.navigationBar.tintColor isEqual:expectedColor]);
|
179
|
|
-}
|
180
|
|
-
|
181
|
172
|
-(void)testTopBarTranslucent {
|
182
|
173
|
NSNumber* topBarTranslucentInput = @(0);
|
183
|
174
|
self.options.topBar.translucent = topBarTranslucentInput;
|