[tests] AsyncDisplayKitTestHost.

This commit is contained in:
Nadine Salter
2015-03-23 12:55:51 -07:00
parent b869d025ff
commit ecd6872814
5 changed files with 222 additions and 0 deletions

View File

@@ -29,6 +29,8 @@
055F1A3D19ABD43F004DAFF1 /* ASCellNode.m in Sources */ = {isa = PBXBuildFile; fileRef = 055F1A3B19ABD43F004DAFF1 /* ASCellNode.m */; };
056D21551ABCEF50001107EF /* ASImageNodeSnapshotTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 056D21541ABCEF50001107EF /* ASImageNodeSnapshotTests.m */; };
0574D5E219C110940097DC25 /* ASTableViewProtocols.h in Headers */ = {isa = PBXBuildFile; fileRef = 0574D5E119C110610097DC25 /* ASTableViewProtocols.h */; settings = {ATTRIBUTES = (Public, ); }; };
057D02C41AC0A66700C7AC3C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 057D02C31AC0A66700C7AC3C /* main.m */; };
057D02C71AC0A66700C7AC3C /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 057D02C61AC0A66700C7AC3C /* AppDelegate.m */; };
0587F9BD1A7309ED00AFF0BA /* ASEditableTextNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 0587F9BB1A7309ED00AFF0BA /* ASEditableTextNode.h */; settings = {ATTRIBUTES = (Public, ); }; };
0587F9BE1A7309ED00AFF0BA /* ASEditableTextNode.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0587F9BC1A7309ED00AFF0BA /* ASEditableTextNode.mm */; };
058D09B0195D04C000B7D73C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 058D09AF195D04C000B7D73C /* Foundation.framework */; };
@@ -172,6 +174,13 @@
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
057D02E51AC0A67000C7AC3C /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 058D09A4195D04C000B7D73C /* Project object */;
proxyType = 1;
remoteGlobalIDString = 057D02BE1AC0A66700C7AC3C;
remoteInfo = AsyncDisplayKitTestHost;
};
058D09C2195D04C000B7D73C /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 058D09A4195D04C000B7D73C /* Project object */;
@@ -215,6 +224,11 @@
056D21501ABCEDA1001107EF /* ASSnapshotTestCase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASSnapshotTestCase.h; sourceTree = "<group>"; };
056D21541ABCEF50001107EF /* ASImageNodeSnapshotTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ASImageNodeSnapshotTests.m; sourceTree = "<group>"; };
0574D5E119C110610097DC25 /* ASTableViewProtocols.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ASTableViewProtocols.h; sourceTree = "<group>"; };
057D02BF1AC0A66700C7AC3C /* AsyncDisplayKitTestHost.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AsyncDisplayKitTestHost.app; sourceTree = BUILT_PRODUCTS_DIR; };
057D02C21AC0A66700C7AC3C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
057D02C31AC0A66700C7AC3C /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
057D02C51AC0A66700C7AC3C /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
057D02C61AC0A66700C7AC3C /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
0587F9BB1A7309ED00AFF0BA /* ASEditableTextNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASEditableTextNode.h; sourceTree = "<group>"; };
0587F9BC1A7309ED00AFF0BA /* ASEditableTextNode.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASEditableTextNode.mm; sourceTree = "<group>"; };
058D09AC195D04C000B7D73C /* libAsyncDisplayKit.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libAsyncDisplayKit.a; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -337,6 +351,13 @@
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
057D02BC1AC0A66700C7AC3C /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
058D09A9195D04C000B7D73C /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
@@ -364,6 +385,26 @@
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
057D02C01AC0A66700C7AC3C /* AsyncDisplayKitTestHost */ = {
isa = PBXGroup;
children = (
057D02C51AC0A66700C7AC3C /* AppDelegate.h */,
057D02C61AC0A66700C7AC3C /* AppDelegate.m */,
057D02C11AC0A66700C7AC3C /* Supporting Files */,
);
name = AsyncDisplayKitTestHost;
path = ../AsyncDisplayKitTestHost;
sourceTree = "<group>";
};
057D02C11AC0A66700C7AC3C /* Supporting Files */ = {
isa = PBXGroup;
children = (
057D02C21AC0A66700C7AC3C /* Info.plist */,
057D02C31AC0A66700C7AC3C /* main.m */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
058D09A3195D04C000B7D73C = {
isa = PBXGroup;
children = (
@@ -380,6 +421,7 @@
children = (
058D09AC195D04C000B7D73C /* libAsyncDisplayKit.a */,
058D09BC195D04C000B7D73C /* AsyncDisplayKitTests.xctest */,
057D02BF1AC0A66700C7AC3C /* AsyncDisplayKitTestHost.app */,
);
name = Products;
sourceTree = "<group>";
@@ -448,6 +490,7 @@
058D09C5195D04C000B7D73C /* AsyncDisplayKitTests */ = {
isa = PBXGroup;
children = (
057D02C01AC0A66700C7AC3C /* AsyncDisplayKitTestHost */,
056D21501ABCEDA1001107EF /* ASSnapshotTestCase.h */,
05EA6FE61AC0966E00E35788 /* ASSnapshotTestCase.mm */,
056D21541ABCEF50001107EF /* ASImageNodeSnapshotTests.m */,
@@ -701,6 +744,23 @@
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
057D02BE1AC0A66700C7AC3C /* AsyncDisplayKitTestHost */ = {
isa = PBXNativeTarget;
buildConfigurationList = 057D02E31AC0A66800C7AC3C /* Build configuration list for PBXNativeTarget "AsyncDisplayKitTestHost" */;
buildPhases = (
057D02BB1AC0A66700C7AC3C /* Sources */,
057D02BC1AC0A66700C7AC3C /* Frameworks */,
057D02BD1AC0A66700C7AC3C /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = AsyncDisplayKitTestHost;
productName = AsyncDisplayKitTestHost;
productReference = 057D02BF1AC0A66700C7AC3C /* AsyncDisplayKitTestHost.app */;
productType = "com.apple.product-type.application";
};
058D09AB195D04C000B7D73C /* AsyncDisplayKit */ = {
isa = PBXNativeTarget;
buildConfigurationList = 058D09CF195D04C000B7D73C /* Build configuration list for PBXNativeTarget "AsyncDisplayKit" */;
@@ -733,6 +793,7 @@
);
dependencies = (
058D09C3195D04C000B7D73C /* PBXTargetDependency */,
057D02E61AC0A67000C7AC3C /* PBXTargetDependency */,
);
name = AsyncDisplayKitTests;
productName = AsyncDisplayKitTests;
@@ -747,6 +808,14 @@
attributes = {
LastUpgradeCheck = 0510;
ORGANIZATIONNAME = Facebook;
TargetAttributes = {
057D02BE1AC0A66700C7AC3C = {
CreatedOnToolsVersion = 6.2;
};
058D09BB195D04C000B7D73C = {
TestTargetID = 057D02BE1AC0A66700C7AC3C;
};
};
};
buildConfigurationList = 058D09A7195D04C000B7D73C /* Build configuration list for PBXProject "AsyncDisplayKit" */;
compatibilityVersion = "Xcode 3.2";
@@ -754,6 +823,7 @@
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 058D09A3195D04C000B7D73C;
productRefGroup = 058D09AD195D04C000B7D73C /* Products */;
@@ -762,11 +832,19 @@
targets = (
058D09AB195D04C000B7D73C /* AsyncDisplayKit */,
058D09BB195D04C000B7D73C /* AsyncDisplayKitTests */,
057D02BE1AC0A66700C7AC3C /* AsyncDisplayKitTestHost */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
057D02BD1AC0A66700C7AC3C /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
058D09BA195D04C000B7D73C /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
@@ -812,6 +890,15 @@
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
057D02BB1AC0A66700C7AC3C /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
057D02C71AC0A66700C7AC3C /* AppDelegate.m in Sources */,
057D02C41AC0A66700C7AC3C /* main.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
058D09A8195D04C000B7D73C /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
@@ -889,6 +976,11 @@
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
057D02E61AC0A67000C7AC3C /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 057D02BE1AC0A66700C7AC3C /* AsyncDisplayKitTestHost */;
targetProxy = 057D02E51AC0A67000C7AC3C /* PBXContainerItemProxy */;
};
058D09C3195D04C000B7D73C /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 058D09AB195D04C000B7D73C /* AsyncDisplayKit */;
@@ -908,6 +1000,41 @@
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
057D02DF1AC0A66800C7AC3C /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_WARN_UNREACHABLE_CODE = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = AsyncDisplayKitTestHost/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
057D02E01AC0A66800C7AC3C /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_WARN_UNREACHABLE_CODE = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
INFOPLIST_FILE = AsyncDisplayKitTestHost/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
058D09CD195D04C000B7D73C /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
@@ -1014,6 +1141,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = FB07EABBCF28656C6297BC2D /* Pods-AsyncDisplayKitTests.debug.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
@@ -1031,6 +1159,7 @@
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
INFOPLIST_FILE = "AsyncDisplayKitTests/AsyncDisplayKitTests-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AsyncDisplayKitTestHost.app/AsyncDisplayKitTestHost";
WRAPPER_EXTENSION = xctest;
};
name = Debug;
@@ -1039,6 +1168,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = D3779BCFF841AD3EB56537ED /* Pods-AsyncDisplayKitTests.release.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
@@ -1055,6 +1185,7 @@
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
INFOPLIST_FILE = "AsyncDisplayKitTests/AsyncDisplayKitTests-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AsyncDisplayKitTestHost.app/AsyncDisplayKitTestHost";
WRAPPER_EXTENSION = xctest;
};
name = Release;
@@ -1062,6 +1193,15 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
057D02E31AC0A66800C7AC3C /* Build configuration list for PBXNativeTarget "AsyncDisplayKitTestHost" */ = {
isa = XCConfigurationList;
buildConfigurations = (
057D02DF1AC0A66800C7AC3C /* Debug */,
057D02E01AC0A66800C7AC3C /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
058D09A7195D04C000B7D73C /* Build configuration list for PBXProject "AsyncDisplayKit" */ = {
isa = XCConfigurationList;
buildConfigurations = (

View File

@@ -0,0 +1,13 @@
/* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@end

View File

@@ -0,0 +1,17 @@
/* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import "AppDelegate.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
return YES;
}
@end

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.facebook.$(PRODUCT_NAME:rfc1034identifier)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>

View File

@@ -0,0 +1,16 @@
/* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}