Skip to content

Commit 501e9c5

Browse files
author
Daniil Manin
committed
Fix #587: Make all iOS tests work on OSX as well
1 parent 95e842b commit 501e9c5

10 files changed

+17
-34
lines changed

MacawTests/Animation/AnimationUtilsTests.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
//
88

99
import XCTest
10+
1011
#if os(OSX)
1112
@testable import MacawOSX
12-
#endif
13-
14-
#if os(iOS)
13+
#elseif os(iOS)
1514
@testable import Macaw
1615
#endif
1716

MacawTests/Animation/CombineAnimationTests.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
//
88

99
import XCTest
10+
1011
#if os(OSX)
1112
@testable import MacawOSX
12-
#endif
13-
14-
#if os(iOS)
13+
#elseif os(iOS)
1514
@testable import Macaw
1615
#endif
1716

MacawTests/Animation/ControlStatesTests.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import XCTest
1010

1111
#if os(OSX)
1212
@testable import MacawOSX
13-
#endif
14-
15-
#if os(iOS)
13+
#elseif os(iOS)
1614
@testable import Macaw
1715
#endif
1816

MacawTests/Animation/DelayedAnimationTests.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
//
88

99
import XCTest
10+
1011
#if os(OSX)
1112
@testable import MacawOSX
12-
#endif
13-
14-
#if os(iOS)
13+
#elseif os(iOS)
1514
@testable import Macaw
1615
#endif
1716

MacawTests/Animation/SequenceAnimationTests.swift

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@
66
// Copyright © 2017 Exyte. All rights reserved.
77
//
88

9-
#if os(iOS)
10-
119
import XCTest
10+
1211
#if os(OSX)
1312
@testable import MacawOSX
14-
#endif
15-
16-
#if os(iOS)
13+
#elseif os(iOS)
1714
@testable import Macaw
1815
#endif
1916

@@ -84,5 +81,3 @@ class SequenceAnimationTests: XCTestCase {
8481
}
8582

8683
}
87-
88-
#endif

MacawTests/Bounds/ImageBoundsTests.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import XCTest
1010

1111
#if os(OSX)
1212
@testable import MacawOSX
13-
#endif
14-
15-
#if os(iOS)
13+
#elseif os(iOS)
1614
@testable import Macaw
1715
#endif
1816

MacawTests/Bounds/NodeBoundsTests.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
//
88

99
import XCTest
10+
1011
#if os(OSX)
1112
@testable import MacawOSX
12-
#endif
13-
14-
#if os(iOS)
13+
#elseif os(iOS)
1514
@testable import Macaw
1615
#endif
1716

MacawTests/MacawSVGTests.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import XCTest
22

33
#if os(OSX)
44
@testable import MacawOSX
5-
#endif
6-
7-
#if os(iOS)
5+
#elseif os(iOS)
86
@testable import Macaw
97
#endif
108

MacawTests/MacawTests.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import XCTest
2+
23
#if os(OSX)
34
@testable import MacawOSX
4-
#endif
5-
6-
#if os(iOS)
5+
#elseif os(iOS)
76
@testable import Macaw
87
#endif
98

MacawTests/SVGParserTest.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
//
88

99
import XCTest
10+
1011
#if os(OSX)
1112
@testable import MacawOSX
12-
#endif
13-
14-
#if os(iOS)
13+
#elseif os(iOS)
1514
@testable import Macaw
1615
#endif
1716

0 commit comments

Comments
 (0)