Skip to content

Commit 3ccbc5f

Browse files
Greg Bolsingarahul-malik
andauthored
Update FBSnapshotTestCase to iOSSnapshotTestCase (=6.2) (facebookarchive#1855)
* Update FBSnapshotTestCase to iOSSnapshotTestCase (=6.1) * be explicit about iOSSnapshotTestCase 6.2 * get rid of iOS_10 suffix and move all the reference images from there into the true reference directory Co-authored-by: Rahul Malik <[email protected]>
1 parent a97b689 commit 3ccbc5f

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

AsyncDisplayKit.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
4080D66C2350384400CDC199 /* ASPINRemoteImageDownloader.h in Headers */ = {isa = PBXBuildFile; fileRef = 68355B391CB57A5A001D4E68 /* ASPINRemoteImageDownloader.h */; settings = {ATTRIBUTES = (Public, ); }; };
103103
471D04B1224CB98600649215 /* ASImageNodeBackingSizeTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 471D04B0224CB98600649215 /* ASImageNodeBackingSizeTests.mm */; };
104104
4E9127691F64157600499623 /* ASRunLoopQueueTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4E9127681F64157600499623 /* ASRunLoopQueueTests.mm */; };
105+
4EE3813FF44E20C399ACB962 /* Pods_AsyncDisplayKitTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5039B74209A895E07057081C /* Pods_AsyncDisplayKitTests.framework */; };
105106
509E68601B3AED8E009B9150 /* ASScrollDirection.mm in Sources */ = {isa = PBXBuildFile; fileRef = 205F0E111B371BD7007741D0 /* ASScrollDirection.mm */; };
106107
509E68611B3AEDA0009B9150 /* ASAbstractLayoutController.h in Headers */ = {isa = PBXBuildFile; fileRef = 205F0E171B37339C007741D0 /* ASAbstractLayoutController.h */; };
107108
509E68621B3AEDA5009B9150 /* ASAbstractLayoutController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 205F0E181B37339C007741D0 /* ASAbstractLayoutController.mm */; };
@@ -177,7 +178,6 @@
177178
83A7D95B1D44547700BF333E /* ASWeakMap.mm in Sources */ = {isa = PBXBuildFile; fileRef = 83A7D9591D44542100BF333E /* ASWeakMap.mm */; };
178179
83A7D95C1D44548100BF333E /* ASWeakMap.h in Headers */ = {isa = PBXBuildFile; fileRef = 83A7D9581D44542100BF333E /* ASWeakMap.h */; settings = {ATTRIBUTES = (Private, ); }; };
179180
83A7D95E1D446A6E00BF333E /* ASWeakMapTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 83A7D95D1D446A6E00BF333E /* ASWeakMapTests.mm */; };
180-
89DA454A9BB6CF35A02F9DD2 /* Pods_AsyncDisplayKitTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AA42D0ECAA484A6B9934110F /* Pods_AsyncDisplayKitTests.framework */; };
181181
8BBBAB8C1CEBAF1700107FC6 /* ASDefaultPlaybackButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 8B0768B11CE752EC002E1453 /* ASDefaultPlaybackButton.h */; settings = {ATTRIBUTES = (Private, ); }; };
182182
8BBBAB8D1CEBAF1E00107FC6 /* ASDefaultPlaybackButton.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8B0768B21CE752EC002E1453 /* ASDefaultPlaybackButton.mm */; };
183183
8BDA5FC71CDBDF91007D13B2 /* ASVideoPlayerNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BDA5FC31CDBDDE1007D13B2 /* ASVideoPlayerNode.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -686,6 +686,7 @@
686686
4640521D1A3F83C40061C0BA /* ASLayoutController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASLayoutController.h; sourceTree = "<group>"; };
687687
471D04B0224CB98600649215 /* ASImageNodeBackingSizeTests.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = ASImageNodeBackingSizeTests.mm; sourceTree = "<group>"; };
688688
4E9127681F64157600499623 /* ASRunLoopQueueTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASRunLoopQueueTests.mm; sourceTree = "<group>"; };
689+
5039B74209A895E07057081C /* Pods_AsyncDisplayKitTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AsyncDisplayKitTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
689690
68355B2E1CB5799E001D4E68 /* ASImageNode+AnimatedImage.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = "ASImageNode+AnimatedImage.mm"; sourceTree = "<group>"; };
690691
68355B361CB57A5A001D4E68 /* ASPINRemoteImageDownloader.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASPINRemoteImageDownloader.mm; sourceTree = "<group>"; };
691692
68355B371CB57A5A001D4E68 /* ASImageContainerProtocolCategories.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASImageContainerProtocolCategories.h; sourceTree = "<group>"; };
@@ -791,7 +792,6 @@
791792
9F98C0241DBDF2A300476D92 /* ASControlTargetAction.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASControlTargetAction.mm; sourceTree = "<group>"; };
792793
A32FEDD31C501B6A004F642A /* ASTextKitFontSizeAdjuster.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ASTextKitFontSizeAdjuster.h; path = TextKit/ASTextKitFontSizeAdjuster.h; sourceTree = "<group>"; };
793794
A373200E1C571B050011FC94 /* ASTextNode+Beta.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ASTextNode+Beta.h"; sourceTree = "<group>"; };
794-
AA42D0ECAA484A6B9934110F /* Pods_AsyncDisplayKitTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AsyncDisplayKitTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
795795
AC026B571BD3F61800BBC17E /* ASAbsoluteLayoutSpecSnapshotTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; lineEnding = 0; path = ASAbsoluteLayoutSpecSnapshotTests.mm; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
796796
AC026B6D1BD57DBF00BBC17E /* _ASHierarchyChangeSet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = _ASHierarchyChangeSet.h; sourceTree = "<group>"; };
797797
AC026B6E1BD57DBF00BBC17E /* _ASHierarchyChangeSet.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = _ASHierarchyChangeSet.mm; sourceTree = "<group>"; };
@@ -1081,7 +1081,7 @@
10811081
058D09BE195D04C000B7D73C /* XCTest.framework in Frameworks */,
10821082
058D09C1195D04C000B7D73C /* UIKit.framework in Frameworks */,
10831083
058D09BF195D04C000B7D73C /* Foundation.framework in Frameworks */,
1084-
89DA454A9BB6CF35A02F9DD2 /* Pods_AsyncDisplayKitTests.framework in Frameworks */,
1084+
4EE3813FF44E20C399ACB962 /* Pods_AsyncDisplayKitTests.framework in Frameworks */,
10851085
);
10861086
runOnlyForDeploymentPostprocessing = 0;
10871087
};
@@ -1168,7 +1168,7 @@
11681168
058D09AF195D04C000B7D73C /* Foundation.framework */,
11691169
058D09BD195D04C000B7D73C /* XCTest.framework */,
11701170
058D09C0195D04C000B7D73C /* UIKit.framework */,
1171-
AA42D0ECAA484A6B9934110F /* Pods_AsyncDisplayKitTests.framework */,
1171+
5039B74209A895E07057081C /* Pods_AsyncDisplayKitTests.framework */,
11721172
);
11731173
name = Frameworks;
11741174
sourceTree = "<group>";
@@ -2153,7 +2153,7 @@
21532153
058D09B8195D04C000B7D73C /* Sources */,
21542154
058D09B9195D04C000B7D73C /* Frameworks */,
21552155
058D09BA195D04C000B7D73C /* Resources */,
2156-
F7D0C9EDE1FC3D066B45EE7C /* [CP] Embed Pods Frameworks */,
2156+
572FAC967DD43A0D06367D02 /* [CP] Embed Pods Frameworks */,
21572157
);
21582158
buildRules = (
21592159
);
@@ -2273,20 +2273,20 @@
22732273
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
22742274
showEnvVarsInLog = 0;
22752275
};
2276-
F7D0C9EDE1FC3D066B45EE7C /* [CP] Embed Pods Frameworks */ = {
2276+
572FAC967DD43A0D06367D02 /* [CP] Embed Pods Frameworks */ = {
22772277
isa = PBXShellScriptBuildPhase;
22782278
buildActionMask = 2147483647;
22792279
files = (
22802280
);
22812281
inputPaths = (
22822282
"${PODS_ROOT}/Target Support Files/Pods-AsyncDisplayKitTests/Pods-AsyncDisplayKitTests-frameworks.sh",
2283-
"${BUILT_PRODUCTS_DIR}/FBSnapshotTestCase/FBSnapshotTestCase.framework",
22842283
"${BUILT_PRODUCTS_DIR}/OCMock/OCMock.framework",
2284+
"${BUILT_PRODUCTS_DIR}/iOSSnapshotTestCase/FBSnapshotTestCase.framework",
22852285
);
22862286
name = "[CP] Embed Pods Frameworks";
22872287
outputPaths = (
2288-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBSnapshotTestCase.framework",
22892288
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OCMock.framework",
2289+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBSnapshotTestCase.framework",
22902290
);
22912291
runOnlyForDeploymentPostprocessing = 0;
22922292
shellPath = /bin/sh;

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ target :'AsyncDisplayKitTests' do
66
platform :ios, '10.0'
77
use_frameworks!
88
pod 'OCMock', '~>3.6'
9-
pod 'FBSnapshotTestCase/Core', '~> 2.1'
9+
pod 'iOSSnapshotTestCase/Core', '~> 6.2'
1010
end

Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
PODS:
2-
- FBSnapshotTestCase/Core (2.1.4)
2+
- iOSSnapshotTestCase/Core (6.2.0)
33
- OCMock (3.6)
44

55
DEPENDENCIES:
6-
- FBSnapshotTestCase/Core (~> 2.1)
6+
- iOSSnapshotTestCase/Core (~> 6.2)
77
- OCMock (~> 3.6)
88

99
SPEC REPOS:
1010
https://github.com/CocoaPods/Specs.git:
11-
- FBSnapshotTestCase
11+
- iOSSnapshotTestCase
1212
- OCMock
1313

1414
SPEC CHECKSUMS:
15-
FBSnapshotTestCase: 094f9f314decbabe373b87cc339bea235a63e07a
15+
iOSSnapshotTestCase: 9ab44cb5aa62b84d31847f40680112e15ec579a6
1616
OCMock: 5ea90566be239f179ba766fd9fbae5885040b992
1717

18-
PODFILE CHECKSUM: 9f751863f64737ce61a8b6aaa6a8bfe0aadcc165
18+
PODFILE CHECKSUM: ff1a1777e31f49e6e4b7b148d0f10e504db7fa26
1919

2020
COCOAPODS: 1.9.1

Tests/ASTextKitTests.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static BOOL checkAttributes(const ASTextKitAttributes &attributes, const CGSize
9191
FBSnapshotTestController *controller = [[FBSnapshotTestController alloc] init];
9292
UIImage *labelImage = UITextViewImageWithAttributes(attributes, constrainedSize, linkTextAttributes);
9393
UIImage *textKitImage = ASTextKitImageWithAttributes(attributes, constrainedSize);
94-
return [controller compareReferenceImage:labelImage toImage:textKitImage tolerance:0.0 error:nil];
94+
return [controller compareReferenceImage:labelImage toImage:textKitImage overallTolerance:0.0 error:nil];
9595
}
9696

9797
@implementation ASTextKitTests

0 commit comments

Comments
 (0)