Skip to content

Commit a0b3565

Browse files
javacheFacebook Github Bot 7
authored andcommitted
Fix snapshottests under iOS10
Reviewed By: dinhviethoa Differential Revision: D3722988 fbshipit-source-id: 4345b757e28700ac61e1de38b61430e78948e58a
1 parent 0da5fd2 commit a0b3565

File tree

14 files changed

+27
-10
lines changed

14 files changed

+27
-10
lines changed
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

Examples/UIExplorer/UIExplorerIntegrationTests/UIExplorerSnapshotTests.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ @implementation UIExplorerSnapshotTests
3333
- (void)setUp
3434
{
3535
_runner = RCTInitRunnerForApp(@"Examples/UIExplorer/js/UIExplorerApp.ios", nil);
36+
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 10) {
37+
_runner.testSuffix = @"-iOS10";
38+
}
3639
_runner.recordMode = NO;
3740
}
3841

@@ -46,8 +49,8 @@ - (void)test##name \
4649
RCT_TEST(LayoutExample)
4750
RCT_TEST(TextExample)
4851
RCT_TEST(SwitchExample)
49-
//RCT_TEST(SliderExample) // Disabled: #8985988
50-
//RCT_TEST(TabBarExample) // Disabled: #8985988
52+
RCT_TEST(SliderExample)
53+
RCT_TEST(TabBarExample)
5154

5255
- (void)testZZZNotInRecordMode
5356
{

Examples/UIExplorer/UIExplorerUnitTests/TestBundle.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
99

10+
var __fbBatchedBridge = {
11+
flushedQueue: function() {
12+
return null;
13+
}
14+
};

0 commit comments

Comments
 (0)