merge with master

This commit is contained in:
Antonio Zugaldia
2015-09-16 09:29:53 -04:00
parent 97d53be25e
commit 99053f47f7
3 changed files with 32 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
# Changelog
## iOS 2.1.2
- Built with Xcode 6.4 to not yet trigger Bitcode compatibility until Xcode 7 stabilizes. ([#2332](https://github.com/mapbox/mapbox-gl-native/issues/2332))
## iOS 2.1.1
- Fixes for Xcode 7 and Bitcode. ([#2238](https://github.com/mapbox/mapbox-gl-native/pull/2238))

View File

@@ -1,7 +1,7 @@
Pod::Spec.new do |m|
m.name = 'Mapbox-iOS-SDK'
m.version = '2.1.1-symbols'
m.version = '2.1.2-symbols'
m.summary = 'Open source vector map solution for iOS with full styling capabilities.'
m.description = 'Open source OpenGL-based vector map solution for iOS with full styling capabilities and Cocoa bindings.'

View File

@@ -220,6 +220,33 @@
@"panning map right should decrease center longitude");
}
- (void)testSetCenterCancelsTransitions {
XCTestExpectation *cameraIsInDCExpectation = [self expectationWithDescription:@"camera reset to DC"];
CLLocationCoordinate2D dc = CLLocationCoordinate2DMake(38.894368, -77.036487);
CLLocationCoordinate2D dc_west = CLLocationCoordinate2DMake(38.894368, -77.076487);
[tester.mapView setCenterCoordinate:dc animated:NO];
[tester.mapView setCenterCoordinate:dc_west animated:YES];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.15 * NSEC_PER_SEC),
dispatch_get_main_queue(),
^{
[tester.mapView setCenterCoordinate:dc animated:NO];
XCTAssertEqualWithAccuracy(dc.latitude,
tester.mapView.centerCoordinate.latitude,
0.0005,
@"setting center coordinate should cancel transitions");
XCTAssertEqualWithAccuracy(dc.longitude,
tester.mapView.centerCoordinate.longitude,
0.0005,
@"setting center coordinate should cancel transitions");
[cameraIsInDCExpectation fulfill];
});
[self waitForExpectationsWithTimeout:1.0 handler:^(NSError *error) {
;
}];
}
- (void)testPanDisabled {
tester.mapView.scrollEnabled = NO;
CLLocationCoordinate2D centerCoordinate = tester.mapView.centerCoordinate;