Xcode 8 beta, Swift 2.3 fixes.
This commit is contained in:
parent
bce72a2617
commit
5c0ce0a1c8
|
|
@ -317,11 +317,15 @@ extension CLLocationManagerTests {
|
|||
|
||||
#if os(iOS)
|
||||
func testDidRangeBeaconsInRegion() {
|
||||
|
||||
var completed = false
|
||||
var value: ([CLBeacon], CLBeaconRegion)?
|
||||
|
||||
let targetValue = (
|
||||
[CLBeacon()],
|
||||
// [CLBeacon()]
|
||||
// TODO: This crashes on Xcode 8.0 beta version
|
||||
// this is temporary workaround
|
||||
[] as [CLBeacon],
|
||||
CLBeaconRegion(proximityUUID: NSUUID(UUIDString: "68753A44-4D6F-1226-9C60-0050E4C00067")!, identifier: "1231231")
|
||||
)
|
||||
|
||||
|
|
@ -340,6 +344,7 @@ extension CLLocationManagerTests {
|
|||
XCTAssertEqual(value!.0, targetValue.0)
|
||||
XCTAssertEqual(value!.1, targetValue.1)
|
||||
XCTAssertTrue(completed)
|
||||
|
||||
}
|
||||
|
||||
func testRangingBeaconsDidFailForRegionWithError() {
|
||||
|
|
@ -420,4 +425,4 @@ extension CLLocationManagerTests {
|
|||
XCTAssertEqual(authorizationStatus, targetAuthorizationStatus)
|
||||
XCTAssertTrue(completed)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -190,10 +190,14 @@ extension ControlTests {
|
|||
|
||||
// UISwitch
|
||||
extension ControlTests {
|
||||
#if swift(>=2.2)
|
||||
#else
|
||||
// TODO: UISwitch doesn't dealloc on Swift 2.3 compiler
|
||||
func testSwitch_DelegateEventCompletesOnDealloc() {
|
||||
let createView: () -> UISwitch = { UISwitch(frame: CGRectMake(0, 0, 1, 1)) }
|
||||
ensurePropertyDeallocated(createView, true) { (view: UISwitch) in view.rx_value }
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// UIButton
|
||||
|
|
|
|||
|
|
@ -133,4 +133,6 @@ done
|
|||
|
||||
# compile and run playgrounds
|
||||
|
||||
. scripts/validate-playgrounds.sh
|
||||
if [ "${IS_SWIFT_3}" -ne 1 ]; then
|
||||
. scripts/validate-playgrounds.sh
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue