Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions FBSnapshotTestCase/FBSnapshotTestCasePlatform.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ BOOL FBSnapshotTestCaseIs64Bit(void)

NSOrderedSet *FBSnapshotTestCaseDefaultSuffixes(void)
{
NSMutableOrderedSet *suffixesSet = [[NSMutableOrderedSet alloc] init];
[suffixesSet addObject:@"_32"];
[suffixesSet addObject:@"_64"];
if (FBSnapshotTestCaseIs64Bit()) {
return [suffixesSet reversedOrderedSet];
return [NSOrderedSet orderedSetWithObject:@"_64"];
} else {
return [NSOrderedSet orderedSetWithObject:@"_32"];
}
return [suffixesSet copy];
}

NSString *FBFileNameIncludeNormalizedFileNameFromOption(NSString *fileName, FBSnapshotTestCaseFileNameIncludeOption option)
Expand All @@ -54,7 +52,7 @@ BOOL FBSnapshotTestCaseIs64Bit(void)
[invalidCharacters formUnionWithCharacterSet:[NSCharacterSet punctuationCharacterSet]];
NSArray *validComponents = [fileName componentsSeparatedByCharactersInSet:invalidCharacters];
fileName = [validComponents componentsJoinedByString:@"_"];

if ((option & FBSnapshotTestCaseFileNameIncludeOptionScreenScale) == FBSnapshotTestCaseFileNameIncludeOptionScreenScale) {
CGFloat screenScale = [[UIScreen mainScreen] scale];
fileName = [fileName stringByAppendingFormat:@"@%.fx", screenScale];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,4 @@ - (void)testViewSnapshotWithDifferentBackgroundColorPerArchitecture
FBSnapshotVerifyView(view, nil);
}

- (void)testViewSnapshotRecordedOnlyFor64BitArchitecture
{
UIView *greenView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
greenView.backgroundColor = [UIColor greenColor];
FBSnapshotVerifyView(greenView, nil);
}

@end
Binary file removed ...apshotTestCaseDemoTests/[email protected]
Binary file not shown.
Binary file removed ...apshotTestCaseDemoTests/[email protected]
Binary file not shown.
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ function ci_carthage_demo() {
popd
}

ci_lib "iPhone 5" && ci_demo "iPhone 5"
ci_lib "iPhone 7" && ci_demo "iPhone 7"
ci_lib "iPhone X" && ci_demo "iPhone X"
ci_lib "iPhone 5" && ci_carthage_demo "iPhone 5"
ci_lib "iPhone 7" && ci_carthage_demo "iPhone 7"
ci_lib "iPhone X" && ci_carthage_demo "iPhone X"