Skip to content

Commit

Permalink
Xcode 6.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rnystrom committed Apr 8, 2015
1 parent 6d8d7ae commit 527a622
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions AsyncDisplayKit/ASScrollNode.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#import "ASScrollNode.h"

@implementation ASScrollNode
@dynamic view;

- (instancetype)init
{
Expand Down
1 change: 0 additions & 1 deletion AsyncDisplayKitTests/ASControlNodeTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ @implementation ReceiverController
@end

@interface ASActionController : ReceiverController
@property (nonatomic) NSInteger hits;
@end
@implementation ASActionController
- (void)action { self.hits++; }
Expand Down
6 changes: 3 additions & 3 deletions AsyncDisplayKitTests/ASDisplayNodeTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -834,9 +834,9 @@ - (ASDisplayNode *)_getDeepSubnodeForRoot:(ASDisplayNode *)root withIndices:(NSA
}

static inline BOOL _CGPointEqualToPointWithEpsilon(CGPoint point1, CGPoint point2, CGFloat epsilon) {
CGFloat absEpsilon = fabsf(epsilon);
BOOL xOK = fabsf(point1.x - point2.x) < absEpsilon;
BOOL yOK = fabsf(point1.y - point2.y) < absEpsilon;
CGFloat absEpsilon = fabs(epsilon);
BOOL xOK = fabs(point1.x - point2.x) < absEpsilon;
BOOL yOK = fabs(point1.y - point2.y) < absEpsilon;
return xOK && yOK;
}

Expand Down
2 changes: 1 addition & 1 deletion AsyncDisplayKitTests/ASTextNodeRendererTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ - (void)testTruncationConservesOriginalHeight
[self setUpRenderer];
CGSize calculatedSizeWithTruncation = [_renderer size];
// Floating point equality
XCTAssertTrue(fabsf(calculatedSizeWithTruncation.height - calculatedSize.height) < .001, @"The height after truncation (%f) doesn't match the normal calculated height (%f)", calculatedSizeWithTruncation.height, calculatedSize.height);
XCTAssertTrue(fabs(calculatedSizeWithTruncation.height - calculatedSize.height) < .001, @"The height after truncation (%f) doesn't match the normal calculated height (%f)", calculatedSizeWithTruncation.height, calculatedSize.height);
}

- (void)testNoCrashOnTappingEmptyTextNode
Expand Down
4 changes: 2 additions & 2 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DEPENDENCIES:
- OCMock (~> 2.2)

SPEC CHECKSUMS:
FBSnapshotTestCase: e2914fbaabccea1dcc773d6a16b1c24540642488
OCMock: 6db79185520e24f9f299548f2b8b07e41d881bd5
FBSnapshotTestCase: 26f32d8fa9eb30e9f09712ecfb097808bc79b898
OCMock: a6a7dc0e3997fb9f35d99f72528698ebf60d64f2

COCOAPODS: 0.35.0

0 comments on commit 527a622

Please sign in to comment.