Transform needs only a single TransformState

This commit is contained in:
John Firebaugh
2015-04-22 16:10:31 -07:00
parent 3396bcaaac
commit 4ba78b6bcf
3 changed files with 85 additions and 100 deletions

View File

@@ -76,9 +76,8 @@
0,
@"compass should not be visible when map is unrotated");
XCTAssertEqualObjects([NSValue valueWithCGAffineTransform:tester.compass.transform],
[NSValue valueWithCGAffineTransform:CGAffineTransformIdentity],
@"compass rotation should indicate map rotation");
XCTAssert(CGAffineTransformEqualToTransform(tester.compass.transform, CGAffineTransformIdentity),
@"compass rotation should indicate map rotation");
}
- (void)testDirectionReset {
@@ -100,9 +99,8 @@
0,
@"compass should not be visible when map is unrotated");
XCTAssertEqualObjects([NSValue valueWithCGAffineTransform:tester.compass.transform],
[NSValue valueWithCGAffineTransform:CGAffineTransformIdentity],
@"compass rotation should indicate map rotation");
XCTAssert(CGAffineTransformEqualToTransform(tester.compass.transform, CGAffineTransformIdentity),
@"compass rotation should indicate map rotation");
}
- (void)testZoom {