Skip to content

Commit

Permalink
fixed MacUnitTest
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Dec 25, 2012
1 parent b14cc7e commit 3916ba8
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Core/Source/DTCoreText.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

// common utilities
#import "CGUtils.h"
#if TARGET_OS_IPHONE
#import "DTCoreTextFunctions.h"
#endif

// common classes
#import "DTCSSListStyle.h"
Expand Down
19 changes: 19 additions & 0 deletions Core/Test/Resources/ListItemBulletColorAndFont.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!-- list bullets should both be blue and not bold -->
<html>
<head>
<style>
a {
color: red;
text-decoration: none;
}
</style>
</head>
<body>
<div style="color:blue;font-size:50px">
<ul>
<li>Normal</li>
<li><a href="#"><b>Some link</b></a></li>
</ul>
</div>
</body>
</html>
36 changes: 36 additions & 0 deletions DTCoreText.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@
A7C7AD1114DA7C2D005A9C69 /* UIColorHTMLTest.m in Sources */ = {isa = PBXBuildFile; fileRef = A7C7AD0E14DA7C2C005A9C69 /* UIColorHTMLTest.m */; };
A7D54EA514E003190063E78B /* Objects.html in Resources */ = {isa = PBXBuildFile; fileRef = A7D54EA414E003190063E78B /* Objects.html */; };
A7D63CDA1611B9AC00D4712A /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A7D63CD91611B9AC00D4712A /* Default-568h@2x.png */; };
A7DBC1AA1689B846003F1D38 /* ListItemBulletColorAndFont.html in Resources */ = {isa = PBXBuildFile; fileRef = A7DBC1A91689B846003F1D38 /* ListItemBulletColorAndFont.html */; };
A7DBC1AB1689B8C5003F1D38 /* ListItemBulletColorAndFont.html in Resources */ = {isa = PBXBuildFile; fileRef = A7DBC1A91689B846003F1D38 /* ListItemBulletColorAndFont.html */; };
A7DBC1B01689B910003F1D38 /* libDTFoundation_Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A7B4E2D41686FDB300717707 /* libDTFoundation_Mac.a */; };
A7DBC1B11689B91E003F1D38 /* libDTHTMLParser.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A7B4E2D81686FDB300717707 /* libDTHTMLParser.a */; };
A7DBE49B12E6E53C00F25897 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7DBE49A12E6E53C00F25897 /* MediaPlayer.framework */; };
A7DBE4F812E6E5B000F25897 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7DBE4F712E6E5B000F25897 /* AVFoundation.framework */; };
A7E3346E16837482002EFCBE /* DTCSSStylesheetTest.m in Sources */ = {isa = PBXBuildFile; fileRef = A7E3346D16837482002EFCBE /* DTCSSStylesheetTest.m */; };
Expand Down Expand Up @@ -618,6 +622,20 @@
remoteGlobalIDString = A7E383C1160DFEDB00CF72D6;
remoteInfo = DTHTMLParser;
};
A7DBC1AC1689B8FC003F1D38 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = A7E383AB160DFEA700CF72D6 /* DTFoundation.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = A710A4FF1607556000437D36;
remoteInfo = "Static Library (Mac)";
};
A7DBC1AE1689B900003F1D38 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = A7E383AB160DFEA700CF72D6 /* DTFoundation.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = 3D7CE53D166613B60028D339;
remoteInfo = "DTHTMLParser (Mac)";
};
A7E383B6160DFEA800CF72D6 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = A7E383AB160DFEA700CF72D6 /* DTFoundation.xcodeproj */;
Expand Down Expand Up @@ -800,6 +818,7 @@
A7C7AD0E14DA7C2C005A9C69 /* UIColorHTMLTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UIColorHTMLTest.m; sourceTree = "<group>"; };
A7D54EA414E003190063E78B /* Objects.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = Objects.html; sourceTree = "<group>"; };
A7D63CD91611B9AC00D4712A /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
A7DBC1A91689B846003F1D38 /* ListItemBulletColorAndFont.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = ListItemBulletColorAndFont.html; sourceTree = "<group>"; };
A7DBE49A12E6E53C00F25897 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; };
A7DBE4F712E6E5B000F25897 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
A7E3346C16837482002EFCBE /* DTCSSStylesheetTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DTCSSStylesheetTest.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -872,6 +891,8 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
A7DBC1B11689B91E003F1D38 /* libDTHTMLParser.a in Frameworks */,
A7DBC1B01689B910003F1D38 /* libDTFoundation_Mac.a in Frameworks */,
A7F5671D14D8469000D1F167 /* Cocoa.framework in Frameworks */,
A7C1CC0F14D6CFD5008D6468 /* AppKit.framework in Frameworks */,
A7949A5914CC456000A8CCDE /* SenTestingKit.framework in Frameworks */,
Expand Down Expand Up @@ -1202,6 +1223,7 @@
A74C973D14DC5294002B5A45 /* Emoji.html */,
A71B927014E0165000360C30 /* PreWhitespace.html */,
A71B927214E016A300360C30 /* PreWhitespace.plist */,
A7DBC1A91689B846003F1D38 /* ListItemBulletColorAndFont.html */,
);
path = Resources;
sourceTree = "<group>";
Expand Down Expand Up @@ -1522,6 +1544,8 @@
A758FC9F14DBD77D007DF8B2 /* PBXBuildRule */,
);
dependencies = (
A7DBC1AF1689B900003F1D38 /* PBXTargetDependency */,
A7DBC1AD1689B8FC003F1D38 /* PBXTargetDependency */,
);
name = MacUnitTest;
productName = MacUnitTest;
Expand Down Expand Up @@ -1727,6 +1751,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A7DBC1AA1689B846003F1D38 /* ListItemBulletColorAndFont.html in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -1758,6 +1783,7 @@
A71B927114E0165000360C30 /* PreWhitespace.html in Resources */,
A71B927314E016A300360C30 /* PreWhitespace.plist in Resources */,
A7A95D9714F3F496002E3F7E /* LineHeight.html in Resources */,
A7DBC1AB1689B8C5003F1D38 /* ListItemBulletColorAndFont.html in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -2123,6 +2149,16 @@
name = DTHTMLParser;
targetProxy = A7B4E2E71686FE1B00717707 /* PBXContainerItemProxy */;
};
A7DBC1AD1689B8FC003F1D38 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "Static Library (Mac)";
targetProxy = A7DBC1AC1689B8FC003F1D38 /* PBXContainerItemProxy */;
};
A7DBC1AF1689B900003F1D38 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "DTHTMLParser (Mac)";
targetProxy = A7DBC1AE1689B900003F1D38 /* PBXContainerItemProxy */;
};
A7E383E8160DFFDE00CF72D6 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "Static Library";
Expand Down

0 comments on commit 3916ba8

Please sign in to comment.