|
|
|
|
630
|
|
630
|
|
631
|
-(void)testTabBarTextFontFamily_validFont{
|
631
|
-(void)testTabBarTextFontFamily_validFont{
|
632
|
NSString* inputFont = @"HelveticaNeue";
|
632
|
NSString* inputFont = @"HelveticaNeue";
|
633
|
- self.options.bottomTabs.textFontFamily = inputFont;
|
|
|
|
|
633
|
+ self.options.bottomTabs.fontFamily = inputFont;
|
634
|
[self.uut embedInTabBarController];
|
634
|
[self.uut embedInTabBarController];
|
635
|
UIFont* expectedFont = [UIFont fontWithName:inputFont size:10];
|
635
|
UIFont* expectedFont = [UIFont fontWithName:inputFont size:10];
|
636
|
NSDictionary* attributes = [self.uut.tabBarController.tabBar.items.firstObject titleTextAttributesForState:UIControlStateNormal];
|
636
|
NSDictionary* attributes = [self.uut.tabBarController.tabBar.items.firstObject titleTextAttributesForState:UIControlStateNormal];
|
|
|
|
|
638
|
}
|
638
|
}
|
639
|
|
639
|
|
640
|
-(void)testTabBarTextFontSize_withoutTextFontFamily_withoutTextColor {
|
640
|
-(void)testTabBarTextFontSize_withoutTextFontFamily_withoutTextColor {
|
641
|
- self.options.bottomTabs.textFontSize = @(15);
|
|
|
|
|
641
|
+ self.options.bottomTabs.fontSize = @(15);
|
642
|
[self.uut embedInTabBarController];
|
642
|
[self.uut embedInTabBarController];
|
643
|
UIFont* expectedFont = [UIFont systemFontOfSize:15];
|
643
|
UIFont* expectedFont = [UIFont systemFontOfSize:15];
|
644
|
NSDictionary* attributes = [self.uut.tabBarController.tabBar.items.firstObject titleTextAttributesForState:UIControlStateNormal];
|
644
|
NSDictionary* attributes = [self.uut.tabBarController.tabBar.items.firstObject titleTextAttributesForState:UIControlStateNormal];
|
|
|
|
|
646
|
}
|
646
|
}
|
647
|
|
647
|
|
648
|
-(void)testTabBarTextFontSize_withoutTextFontFamily_withTextColor {
|
648
|
-(void)testTabBarTextFontSize_withoutTextFontFamily_withTextColor {
|
649
|
- self.options.bottomTabs.textFontSize = @(15);
|
|
|
|
|
649
|
+ self.options.bottomTabs.fontSize = @(15);
|
650
|
self.options.bottomTabs.textColor = @(0xFFFF0000);
|
650
|
self.options.bottomTabs.textColor = @(0xFFFF0000);
|
651
|
[self.uut embedInTabBarController];
|
651
|
[self.uut embedInTabBarController];
|
652
|
UIFont* expectedFont = [UIFont systemFontOfSize:15];
|
652
|
UIFont* expectedFont = [UIFont systemFontOfSize:15];
|
|
|
|
|
658
|
|
658
|
|
659
|
-(void)testTabBarTextFontSize_withTextFontFamily_withTextColor {
|
659
|
-(void)testTabBarTextFontSize_withTextFontFamily_withTextColor {
|
660
|
NSString* inputFont = @"HelveticaNeue";
|
660
|
NSString* inputFont = @"HelveticaNeue";
|
661
|
- self.options.bottomTabs.textFontSize = @(15);
|
|
|
|
|
661
|
+ self.options.bottomTabs.fontSize = @(15);
|
662
|
self.options.bottomTabs.textColor = @(0xFFFF0000);
|
662
|
self.options.bottomTabs.textColor = @(0xFFFF0000);
|
663
|
- self.options.bottomTabs.textFontFamily = inputFont;
|
|
|
|
|
663
|
+ self.options.bottomTabs.fontFamily = inputFont;
|
664
|
[self.uut embedInTabBarController];
|
664
|
[self.uut embedInTabBarController];
|
665
|
UIColor* expectedColor = [UIColor colorWithRed:1 green:0 blue:0 alpha:1];
|
665
|
UIColor* expectedColor = [UIColor colorWithRed:1 green:0 blue:0 alpha:1];
|
666
|
UIFont* expectedFont = [UIFont fontWithName:inputFont size:15];
|
666
|
UIFont* expectedFont = [UIFont fontWithName:inputFont size:15];
|
|
|
|
|
671
|
|
671
|
|
672
|
-(void)testTabBarTextFontSize_withTextFontFamily_withoutTextColor {
|
672
|
-(void)testTabBarTextFontSize_withTextFontFamily_withoutTextColor {
|
673
|
NSString* inputFont = @"HelveticaNeue";
|
673
|
NSString* inputFont = @"HelveticaNeue";
|
674
|
- self.options.bottomTabs.textFontSize = @(15);
|
|
|
675
|
- self.options.bottomTabs.textFontFamily = inputFont;
|
|
|
|
|
674
|
+ self.options.bottomTabs.fontSize = @(15);
|
|
|
675
|
+ self.options.bottomTabs.fontFamily = inputFont;
|
676
|
[self.uut embedInTabBarController];
|
676
|
[self.uut embedInTabBarController];
|
677
|
UIFont* expectedFont = [UIFont fontWithName:inputFont size:15];
|
677
|
UIFont* expectedFont = [UIFont fontWithName:inputFont size:15];
|
678
|
NSDictionary* attributes = [self.uut.tabBarController.tabBar.items.firstObject titleTextAttributesForState:UIControlStateNormal];
|
678
|
NSDictionary* attributes = [self.uut.tabBarController.tabBar.items.firstObject titleTextAttributesForState:UIControlStateNormal];
|