|
|
|
|
157
|
__unused RNNNavigationController* nav = [[RNNNavigationController alloc] initWithRootViewController:self.uut];
|
157
|
__unused RNNNavigationController* nav = [[RNNNavigationController alloc] initWithRootViewController:self.uut];
|
158
|
self.options.topBar.title.fontFamily = inputFont;
|
158
|
self.options.topBar.title.fontFamily = inputFont;
|
159
|
[self.uut viewWillAppear:false];
|
159
|
[self.uut viewWillAppear:false];
|
160
|
- UIFont* expectedFont = [UIFont fontWithName:inputFont size:20];
|
|
|
|
|
160
|
+ UIFont* expectedFont = [UIFont fontWithName:inputFont size:17];
|
161
|
XCTAssertTrue([self.uut.navigationController.navigationBar.titleTextAttributes[@"NSFont"] isEqual:expectedFont]);
|
161
|
XCTAssertTrue([self.uut.navigationController.navigationBar.titleTextAttributes[@"NSFont"] isEqual:expectedFont]);
|
162
|
}
|
162
|
}
|
163
|
|
163
|
|
|
|
|
|
169
|
XCTAssertTrue(self.uut.navigationController.hidesBarsOnSwipe);
|
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
|
-(void)testTopBarTranslucent {
|
172
|
-(void)testTopBarTranslucent {
|
182
|
NSNumber* topBarTranslucentInput = @(0);
|
173
|
NSNumber* topBarTranslucentInput = @(0);
|
183
|
self.options.topBar.translucent = topBarTranslucentInput;
|
174
|
self.options.topBar.translucent = topBarTranslucentInput;
|