@@ -55,9 +55,13 @@ class EventDispatcherTest: XCTestCase {
55
55
56
56
eventDispatcher? . dispatcher. sync {
57
57
}
58
-
59
- XCTAssert ( eventDispatcher? . dataStore. count == 1 )
60
-
58
+
59
+ if #available( iOS 10 . 0 , tvOS 10 . 0 , * ) {
60
+ XCTAssert ( eventDispatcher? . dataStore. count == 1 )
61
+ }
62
+ else {
63
+ XCTAssert ( eventDispatcher? . dataStore. count == 0 )
64
+ }
61
65
eventDispatcher? . flushEvents ( )
62
66
63
67
eventDispatcher? . dispatcher. sync {
@@ -86,8 +90,13 @@ class EventDispatcherTest: XCTestCase {
86
90
}
87
91
wait ( )
88
92
89
- XCTAssert ( eventDispatcher? . dataStore. count == 1 )
90
-
93
+ if #available( iOS 10 . 0 , tvOS 10 . 0 , * ) {
94
+ XCTAssert ( eventDispatcher? . dataStore. count == 1 )
95
+ }
96
+ else {
97
+ XCTAssert ( eventDispatcher? . dataStore. count == 0 )
98
+ }
99
+
91
100
eventDispatcher? . flushEvents ( )
92
101
wait ( )
93
102
@@ -114,8 +123,13 @@ class EventDispatcherTest: XCTestCase {
114
123
}
115
124
wait ( )
116
125
117
- XCTAssert ( eventDispatcher? . dataStore. count == 1 )
118
-
126
+ if #available( iOS 10 . 0 , tvOS 10 . 0 , * ) {
127
+ XCTAssert ( eventDispatcher? . dataStore. count == 1 )
128
+ }
129
+ else {
130
+ XCTAssert ( eventDispatcher? . dataStore. count == 0 )
131
+ }
132
+
119
133
eventDispatcher? . flushEvents ( )
120
134
wait ( )
121
135
@@ -141,8 +155,13 @@ class EventDispatcherTest: XCTestCase {
141
155
}
142
156
wait ( )
143
157
144
- XCTAssert ( eventDispatcher? . dataStore. count == 1 )
145
-
158
+ if #available( iOS 10 . 0 , tvOS 10 . 0 , * ) {
159
+ XCTAssert ( eventDispatcher? . dataStore. count == 1 )
160
+ }
161
+ else {
162
+ XCTAssert ( eventDispatcher? . dataStore. count == 0 )
163
+ }
164
+
146
165
eventDispatcher? . flushEvents ( )
147
166
wait ( )
148
167
0 commit comments