Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added DummyBundleLoader

  • Loading branch information...
commit e4b3eae27ed030cb7f4f6f913685f5cff59830af 1 parent 4ec703f
@Cocoanetics authored
View
169 DTCoreText.xcodeproj/project.pbxproj
@@ -129,6 +129,8 @@
A740368916E51B3A00ECCDE0 /* DemoAboutViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A740368716E51B3A00ECCDE0 /* DemoAboutViewController.xib */; };
A740369116E51C9800ECCDE0 /* About.html in Resources */ = {isa = PBXBuildFile; fileRef = A740369016E51C9800ECCDE0 /* About.html */; };
A74036AD16E663FA00ECCDE0 /* NSStringHTMLTest.m in Sources */ = {isa = PBXBuildFile; fileRef = A7C7AD0C14DA7C2C005A9C69 /* NSStringHTMLTest.m */; };
+ A741440D180012D800E3403B /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A741440B1800127300E3403B /* main.m */; };
+ A74144121800141500E3403B /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A7D63CD91611B9AC00D4712A /* Default-568h@2x.png */; };
A74C953614DC0C69002B5A45 /* MalformedURL.html in Resources */ = {isa = PBXBuildFile; fileRef = A74C953514DC0C69002B5A45 /* MalformedURL.html */; };
A74C973E14DC5294002B5A45 /* Emoji.html in Resources */ = {isa = PBXBuildFile; fileRef = A74C973D14DC5294002B5A45 /* Emoji.html */; };
A74F6FD616DBA48E00C12307 /* DTCoreTextParagraphStyleTest.m in Sources */ = {isa = PBXBuildFile; fileRef = A74F6FD516DBA48E00C12307 /* DTCoreTextParagraphStyleTest.m */; };
@@ -339,6 +341,9 @@
A7985E1C178ECE08005D40B2 /* DTHTMLWriterTest.m in Sources */ = {isa = PBXBuildFile; fileRef = A7985E0B178ECD86005D40B2 /* DTHTMLWriterTest.m */; };
A79CA82417FC9648001EBA6E /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A79CA82317FC9648001EBA6E /* UIKit.framework */; };
A79CA82617FC9651001EBA6E /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A79CA82517FC9651001EBA6E /* MobileCoreServices.framework */; };
+ A7A476BD180010F100459DFD /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
+ A7A476BE180010F100459DFD /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
+ A7A476BF180010F100459DFD /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; };
A7A672BA1532F2D100920A18 /* DTCompatibility.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A672B91532F2D100920A18 /* DTCompatibility.h */; settings = {ATTRIBUTES = (Public, ); }; };
A7A672BB1532F2D100920A18 /* DTCompatibility.h in Headers */ = {isa = PBXBuildFile; fileRef = A7A672B91532F2D100920A18 /* DTCompatibility.h */; settings = {ATTRIBUTES = (Public, ); }; };
A7A95D9514F3F45E002E3F7E /* LineHeight.html in Resources */ = {isa = PBXBuildFile; fileRef = A7A95D9414F3F45E002E3F7E /* LineHeight.html */; };
@@ -695,6 +700,13 @@
remoteGlobalIDString = A70F11DD148632CD009202BF;
remoteInfo = "Static Library";
};
+ A741440E180012F500E3403B /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = A7A476BB180010F100459DFD;
+ remoteInfo = "BundleLoader Dummy";
+ };
A781FE8E17FAABE500A1F5E8 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = A785701C17FAA69D0080AB0A /* DTFoundation.xcodeproj */;
@@ -944,6 +956,8 @@
A740368616E51B3A00ECCDE0 /* DemoAboutViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DemoAboutViewController.m; sourceTree = "<group>"; };
A740368716E51B3A00ECCDE0 /* DemoAboutViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = DemoAboutViewController.xib; sourceTree = "<group>"; };
A740369016E51C9800ECCDE0 /* About.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = About.html; sourceTree = "<group>"; };
+ A74144091800127300E3403B /* BundleLoaderDummy-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "BundleLoaderDummy-Info.plist"; sourceTree = "<group>"; };
+ A741440B1800127300E3403B /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
A74C953514DC0C69002B5A45 /* MalformedURL.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = MalformedURL.html; sourceTree = "<group>"; };
A74C973D14DC5294002B5A45 /* Emoji.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = Emoji.html; sourceTree = "<group>"; };
A74F6FCB16DB9AF500C12307 /* DTCoreText.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; name = DTCoreText.podspec; path = ../DTCoreText.podspec; sourceTree = "<group>"; };
@@ -1070,6 +1084,7 @@
A7985E0C178ECD86005D40B2 /* DTHTMLWriterTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DTHTMLWriterTest.h; sourceTree = "<group>"; };
A79CA82317FC9648001EBA6E /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; };
A79CA82517FC9651001EBA6E /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/MobileCoreServices.framework; sourceTree = DEVELOPER_DIR; };
+ A7A476BC180010F100459DFD /* BundleLoaderDummy.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BundleLoaderDummy.app; sourceTree = BUILT_PRODUCTS_DIR; };
A7A672B91532F2D100920A18 /* DTCompatibility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DTCompatibility.h; path = Core/Source/DTCompatibility.h; sourceTree = "<group>"; };
A7A95D9414F3F45E002E3F7E /* LineHeight.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = LineHeight.html; sourceTree = "<group>"; };
A7AE580B1725374C00A9BF61 /* DTImageTextAttachment.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DTImageTextAttachment.h; sourceTree = "<group>"; };
@@ -1215,6 +1230,16 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ A7A476B9180010F100459DFD /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A7A476BD180010F100459DFD /* UIKit.framework in Frameworks */,
+ A7A476BE180010F100459DFD /* Foundation.framework in Frameworks */,
+ A7A476BF180010F100459DFD /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
A7F7EF9F1573603100F5A4D0 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
@@ -1248,6 +1273,7 @@
A7949A5814CC456000A8CCDE /* MacUnitTest.octest */,
A7F7EFCD1573603100F5A4D0 /* libDTCoreText_no_DTFoundation.a */,
E2262DC61638331500BFDAD7 /* DTCoreText.framework */,
+ A7A476BC180010F100459DFD /* BundleLoaderDummy.app */,
);
name = Products;
path = ../..;
@@ -1390,6 +1416,15 @@
path = Demo;
sourceTree = SOURCE_ROOT;
};
+ A74144061800127300E3403B /* BundleLoaderDummy */ = {
+ isa = PBXGroup;
+ children = (
+ A74144091800127300E3403B /* BundleLoaderDummy-Info.plist */,
+ A741440B1800127300E3403B /* main.m */,
+ );
+ path = BundleLoaderDummy;
+ sourceTree = "<group>";
+ };
A7675E6E172EA21E00C548CB /* Debug */ = {
isa = PBXGroup;
children = (
@@ -1465,6 +1500,7 @@
A7949A6E14CC45B500A8CCDE /* MacUnitTest-Prefix.pch */,
A788CA1214863E9D00E1AFD9 /* UnitTest-Info.plist */,
A788CA1314863E9D00E1AFD9 /* UnitTest-Prefix.pch */,
+ A74144061800127300E3403B /* BundleLoaderDummy */,
A7C7ACF814DA68CE005A9C69 /* Source */,
A7C7ACEB14DA62BA005A9C69 /* Resources */,
);
@@ -2065,6 +2101,7 @@
A758FC9D14DBD76E007DF8B2 /* PBXBuildRule */,
);
dependencies = (
+ A741440F180012F500E3403B /* PBXTargetDependency */,
A70E630016C254EB009B47BF /* PBXTargetDependency */,
);
name = UnitTest;
@@ -2091,6 +2128,23 @@
productReference = A7949A5814CC456000A8CCDE /* MacUnitTest.octest */;
productType = "com.apple.product-type.bundle";
};
+ A7A476BB180010F100459DFD /* BundleLoader Dummy */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = A7A476E5180010F100459DFD /* Build configuration list for PBXNativeTarget "BundleLoader Dummy" */;
+ buildPhases = (
+ A7A476B8180010F100459DFD /* Sources */,
+ A7A476B9180010F100459DFD /* Frameworks */,
+ A7A476BA180010F100459DFD /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = "BundleLoader Dummy";
+ productName = UnitTestBundleLoader;
+ productReference = A7A476BC180010F100459DFD /* BundleLoaderDummy.app */;
+ productType = "com.apple.product-type.application";
+ };
A7F7EF761573603100F5A4D0 /* Static Library (no DTFoundation) */ = {
isa = PBXNativeTarget;
buildConfigurationList = A7F7EFCA1573603100F5A4D0 /* Build configuration list for PBXNativeTarget "Static Library (no DTFoundation)" */;
@@ -2168,6 +2222,7 @@
A7174BC414F288F900C57464 /* Documentation */,
A7F7EF761573603100F5A4D0 /* Static Library (no DTFoundation) */,
E2262DC51638331500BFDAD7 /* Mac Framework */,
+ A7A476BB180010F100459DFD /* BundleLoader Dummy */,
);
};
/* End PBXProject section */
@@ -2418,6 +2473,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ A7A476BA180010F100459DFD /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A74144121800141500E3403B /* Default-568h@2x.png in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
E2262DC41638331500BFDAD7 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
@@ -2661,6 +2724,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ A7A476B8180010F100459DFD /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A741440D180012D800E3403B /* main.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
A7F7EF771573603100F5A4D0 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
@@ -2784,6 +2855,11 @@
target = A70F11DD148632CD009202BF /* Static Library */;
targetProxy = A70E62FF16C254EB009B47BF /* PBXContainerItemProxy */;
};
+ A741440F180012F500E3403B /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = A7A476BB180010F100459DFD /* BundleLoader Dummy */;
+ targetProxy = A741440E180012F500E3403B /* PBXContainerItemProxy */;
+ };
A781FEB917FAAD5500A1F5E8 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "DTHTMLParser (Mac)";
@@ -2979,6 +3055,7 @@
A788CA781486456100E1AFD9 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/BundleLoaderDummy.app/BundleLoaderDummy";
COPY_PHASE_STRIP = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
@@ -2996,6 +3073,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
+ TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = octest;
};
name = Debug;
@@ -3003,6 +3081,7 @@
A788CA791486456100E1AFD9 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/BundleLoaderDummy.app/BundleLoaderDummy";
COPY_PHASE_STRIP = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
@@ -3017,6 +3096,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
+ TEST_HOST = "$(BUNDLE_LOADER)";
VALIDATE_PRODUCT = YES;
WRAPPER_EXTENSION = octest;
};
@@ -3066,6 +3146,83 @@
};
name = Release;
};
+ A7A476D2180010F100459DFD /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ INFOPLIST_FILE = "Test/BundleLoaderDummy/BundleLoaderDummy-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 6.1;
+ PRODUCT_NAME = BundleLoaderDummy;
+ SDKROOT = iphoneos;
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ A7A476D3180010F100459DFD /* Coverage */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ INFOPLIST_FILE = "Test/BundleLoaderDummy/BundleLoaderDummy-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 6.1;
+ PRODUCT_NAME = BundleLoaderDummy;
+ SDKROOT = iphoneos;
+ VALIDATE_PRODUCT = YES;
+ WRAPPER_EXTENSION = app;
+ };
+ name = Coverage;
+ };
+ A7A476D4180010F100459DFD /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ INFOPLIST_FILE = "Test/BundleLoaderDummy/BundleLoaderDummy-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 6.1;
+ PRODUCT_NAME = BundleLoaderDummy;
+ SDKROOT = iphoneos;
+ VALIDATE_PRODUCT = YES;
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
A7DC5CFB17F833F1006ADDF5 /* Coverage */ = {
isa = XCBuildConfiguration;
buildSettings = {
@@ -3159,6 +3316,7 @@
A7DC5CFF17F833F1006ADDF5 /* Coverage */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/BundleLoaderDummy.app/BundleLoaderDummy";
COPY_PHASE_STRIP = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
@@ -3178,6 +3336,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
+ TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = octest;
};
name = Coverage;
@@ -3470,6 +3629,16 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
+ A7A476E5180010F100459DFD /* Build configuration list for PBXNativeTarget "BundleLoader Dummy" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ A7A476D2180010F100459DFD /* Debug */,
+ A7A476D3180010F100459DFD /* Coverage */,
+ A7A476D4180010F100459DFD /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
A7F7EFCA1573603100F5A4D0 /* Build configuration list for PBXNativeTarget "Static Library (no DTFoundation)" */ = {
isa = XCConfigurationList;
buildConfigurations = (
View
BIN  Default-568h@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
15 Test/BundleLoaderDummy/AppDelegate.h
@@ -0,0 +1,15 @@
+//
+// AppDelegate.h
+// UnitTestBundleLoader
+//
+// Created by Oliver Drobnik on 10/5/13.
+// Copyright (c) 2013 Drobnik.com. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface AppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@end
View
20 Test/BundleLoaderDummy/AppDelegate.m
@@ -0,0 +1,20 @@
+//
+// AppDelegate.m
+// UnitTestBundleLoader
+//
+// Created by Oliver Drobnik on 10/5/13.
+// Copyright (c) 2013 Drobnik.com. All rights reserved.
+//
+
+#import "AppDelegate.h"
+
+@implementation AppDelegate
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
+ [self.window makeKeyAndVisible];
+ return YES;
+}
+
+@end
View
38 Test/BundleLoaderDummy/BundleLoaderDummy-Info.plist
@@ -0,0 +1,38 @@
+<?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>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.cocoanetics.${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.0</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
18 Test/BundleLoaderDummy/main.m
@@ -0,0 +1,18 @@
+//
+// main.m
+// UnitTestBundleLoader
+//
+// Created by Oliver Drobnik on 10/5/13.
+// Copyright (c) 2013 Drobnik.com. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+int main(int argc, char *argv[])
+{
+ @autoreleasepool
+ {
+ // app delegate is inconsequential for unit testing, but it cannot be nil
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([NSObject class]));
+ }
+}
View
48 Test/Source/NSDictionaryDTCoreText.m
@@ -203,31 +203,31 @@ - (void)testNSValidColors
}
-/*
-
- // this crashes or hangs issue #648
- - (void)testNSValidColors
- {
- if (!DTCoreTextModernAttributesPossible())
- {
- return;
- }
-
- NSDictionary *options = [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:DTUseiOS6Attributes];
- NSAttributedString *attributedString = [self attributedStringFromHTMLString:@"<span style=\"color:red;background-color:blue;\">Paragraph</span>" options:options];
- NSDictionary *attributes = [attributedString attributesAtIndex:0 effectiveRange:NULL];
-
- DTColor *color = [attributes foregroundColor];
- NSString *hexColor = DTHexStringFromDTColor(color);
-
- STAssertTrue([hexColor isEqualToString:@"ff0000"], @"Default Color should be red");
-
- color = [attributes backgroundColor];
- hexColor = DTHexStringFromDTColor(color);
+
- STAssertTrue([hexColor isEqualToString:@"0000ff"], @"Default Color should be blue");
- }
- */
+// this crashes or hangs issue #648
+- (void)testNSValidColorsFromHTML
+{
+ if (!DTCoreTextModernAttributesPossible())
+ {
+ return;
+ }
+
+ NSDictionary *options = [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:DTUseiOS6Attributes];
+ NSAttributedString *attributedString = [self attributedStringFromHTMLString:@"<span style=\"color:red;background-color:blue;\">Paragraph</span>" options:options];
+ NSDictionary *attributes = [attributedString attributesAtIndex:0 effectiveRange:NULL];
+
+ DTColor *color = [attributes foregroundColor];
+ NSString *hexColor = DTHexStringFromDTColor(color);
+
+ STAssertTrue([hexColor isEqualToString:@"ff0000"], @"Default Color should be red");
+
+ color = [attributes backgroundColor];
+ hexColor = DTHexStringFromDTColor(color);
+
+ STAssertTrue([hexColor isEqualToString:@"0000ff"], @"Default Color should be blue");
+}
+
- (void)testKerning
{
Please sign in to comment.
Something went wrong with that request. Please try again.