Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios] remove testCompassTap test
Browse files Browse the repository at this point in the history
Fails on CI because KIF is unstable. Refs
61615a4, #2769, #2734
  • Loading branch information
friedbunny committed Jan 14, 2016
1 parent 0066637 commit 75ed155
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions test/ios/MapViewTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,32 +76,6 @@ - (void)testDirectionSet {
@"compass rotation should indicate map rotation");
}

- (void)testCompassTap {
[self waitForNotificationThatRegionDidChangeAnimatedWhileExecutingBlock:^{
[tester.mapView setDirection:180 animated:YES];
}];

XCTAssertEqual(tester.mapView.direction,
180,
@"setting direction should take effect");

[self waitForNotificationThatRegionDidChangeAnimatedWhileExecutingBlock:^{
[tester.compass tap];
}];

XCTAssertEqual(tester.mapView.direction,
0,
@"tapping compass should reset map direction");

[tester waitForAnimationsToFinish];
XCTAssertEqual(tester.compass.alpha,
0,
@"compass should not be visible when map is unrotated");

XCTAssert(CGAffineTransformEqualToTransform(tester.compass.transform, CGAffineTransformIdentity),
@"compass rotation should indicate map rotation");
}

- (void)testDirectionReset {
[self waitForNotificationThatRegionDidChangeAnimatedWhileExecutingBlock:^{
[tester.mapView setDirection:90 animated:YES];
Expand Down

0 comments on commit 75ed155

Please sign in to comment.