瀏覽代碼

unit test fixes

yogevbd 6 年之前
父節點
當前提交
ba3bfa0a31
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7
    7
      lib/ios/ReactNativeNavigationTests/RNNRootViewControllerTest.m

+ 7
- 7
lib/ios/ReactNativeNavigationTests/RNNRootViewControllerTest.m 查看文件

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