|
@@ -131,7 +131,7 @@
|
131
|
131
|
|
132
|
132
|
-(void)testScreenBackgroundColor_validColor{
|
133
|
133
|
NSNumber* inputColor = @(0xFFFF0000);
|
134
|
|
- self.options.screenBackgroundColor = inputColor;
|
|
134
|
+ self.options.layout.screenBackgroundColor = inputColor;
|
135
|
135
|
[self.uut viewWillAppear:false];
|
136
|
136
|
UIColor* expectedColor = [UIColor colorWithRed:1 green:0 blue:0 alpha:1];
|
137
|
137
|
XCTAssertTrue([self.uut.view.backgroundColor isEqual:expectedColor]);
|
|
@@ -283,7 +283,7 @@
|
283
|
283
|
|
284
|
284
|
-(void)testOrientation_portrait {
|
285
|
285
|
NSArray* supportedOrientations = @[@"portrait"];
|
286
|
|
- self.options.orientation = supportedOrientations;
|
|
286
|
+ self.options.layout.orientation = supportedOrientations;
|
287
|
287
|
__unused UINavigationController* nav = [[RNNNavigationController alloc] initWithRootViewController:self.uut];
|
288
|
288
|
[self.uut viewWillAppear:false];
|
289
|
289
|
UIInterfaceOrientationMask expectedOrientation = UIInterfaceOrientationMaskPortrait;
|
|
@@ -292,7 +292,7 @@
|
292
|
292
|
|
293
|
293
|
-(void)testOrientation_portraitString {
|
294
|
294
|
NSString* supportedOrientation = @"portrait";
|
295
|
|
- self.options.orientation = supportedOrientation;
|
|
295
|
+ self.options.layout.orientation = supportedOrientation;
|
296
|
296
|
__unused UINavigationController* nav = [[RNNNavigationController alloc] initWithRootViewController:self.uut];
|
297
|
297
|
[self.uut viewWillAppear:false];
|
298
|
298
|
UIInterfaceOrientationMask expectedOrientation = (UIInterfaceOrientationMaskPortrait);
|
|
@@ -301,7 +301,7 @@
|
301
|
301
|
|
302
|
302
|
-(void)testOrientation_portraitAndLandscape {
|
303
|
303
|
NSArray* supportedOrientations = @[@"portrait", @"landscape"];
|
304
|
|
- self.options.orientation = supportedOrientations;
|
|
304
|
+ self.options.layout.orientation = supportedOrientations;
|
305
|
305
|
__unused UINavigationController* nav = [[RNNNavigationController alloc] initWithRootViewController:self.uut];
|
306
|
306
|
[self.uut viewWillAppear:false];
|
307
|
307
|
UIInterfaceOrientationMask expectedOrientation = (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscape);
|
|
@@ -310,7 +310,7 @@
|
310
|
310
|
|
311
|
311
|
-(void)testOrientation_all {
|
312
|
312
|
NSArray* supportedOrientations = @[@"all"];
|
313
|
|
- self.options.orientation = supportedOrientations;
|
|
313
|
+ self.options.layout.orientation = supportedOrientations;
|
314
|
314
|
__unused UINavigationController* nav = [[RNNNavigationController alloc] initWithRootViewController:self.uut];
|
315
|
315
|
[self.uut viewWillAppear:false];
|
316
|
316
|
UIInterfaceOrientationMask expectedOrientation = UIInterfaceOrientationMaskAll;
|
|
@@ -319,7 +319,7 @@
|
319
|
319
|
|
320
|
320
|
-(void)testOrientation_default {
|
321
|
321
|
NSString* supportedOrientations = @"default";
|
322
|
|
- self.options.orientation = supportedOrientations;
|
|
322
|
+ self.options.layout.orientation = supportedOrientations;
|
323
|
323
|
__unused UINavigationController* nav = [[RNNNavigationController alloc] initWithRootViewController:self.uut];
|
324
|
324
|
[self.uut viewWillAppear:false];
|
325
|
325
|
UIInterfaceOrientationMask expectedOrientation = [[UIApplication sharedApplication] supportedInterfaceOrientationsForWindow:[[UIApplication sharedApplication] keyWindow]];
|
|
@@ -329,7 +329,7 @@
|
329
|
329
|
|
330
|
330
|
-(void)testOrientationTabsController_portrait {
|
331
|
331
|
NSArray* supportedOrientations = @[@"portrait"];
|
332
|
|
- self.options.orientation = supportedOrientations;
|
|
332
|
+ self.options.layout.orientation = supportedOrientations;
|
333
|
333
|
__unused RNNTabBarController* vc = [[RNNTabBarController alloc] init];
|
334
|
334
|
NSMutableArray* controllers = [NSMutableArray new];
|
335
|
335
|
|
|
@@ -343,7 +343,7 @@
|
343
|
343
|
|
344
|
344
|
-(void)testOrientationTabsController_portraitAndLandscape {
|
345
|
345
|
NSArray* supportedOrientations = @[@"portrait", @"landscape"];
|
346
|
|
- self.options.orientation = supportedOrientations;
|
|
346
|
+ self.options.layout.orientation = supportedOrientations;
|
347
|
347
|
__unused RNNTabBarController* vc = [[RNNTabBarController alloc] init];
|
348
|
348
|
NSMutableArray* controllers = [NSMutableArray new];
|
349
|
349
|
|
|
@@ -357,7 +357,7 @@
|
357
|
357
|
|
358
|
358
|
-(void)testOrientationTabsController_all {
|
359
|
359
|
NSArray* supportedOrientations = @[@"all"];
|
360
|
|
- self.options.orientation = supportedOrientations;
|
|
360
|
+ self.options.layout.orientation = supportedOrientations;
|
361
|
361
|
__unused RNNTabBarController* vc = [[RNNTabBarController alloc] init];
|
362
|
362
|
NSMutableArray* controllers = [NSMutableArray new];
|
363
|
363
|
|