OLD | NEW |
1 library streams_test; | 1 library streams_test; |
2 import '../../pkg/unittest/lib/unittest.dart'; | 2 import '../../pkg/unittest/lib/unittest.dart'; |
3 import '../../pkg/unittest/lib/html_config.dart'; | 3 import '../../pkg/unittest/lib/html_config.dart'; |
4 import 'dart:async'; | 4 import 'dart:async'; |
5 import 'dart:html'; | 5 import 'dart:html'; |
6 | 6 |
7 class StreamHelper { | 7 class StreamHelper { |
8 var _a; | 8 var _a; |
9 StreamHelper() { | 9 StreamHelper() { |
10 _a = new TextInputElement(); | 10 _a = new TextInputElement(); |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 test('asBroadcastStream', () { | 180 test('asBroadcastStream', () { |
181 stream.asBroadcastStream().listen((_) {}); | 181 stream.asBroadcastStream().listen((_) {}); |
182 }); | 182 }); |
183 | 183 |
184 test('where', () { | 184 test('where', () { |
185 stream.where((_) => true).listen((_) {}); | 185 stream.where((_) => true).listen((_) {}); |
186 }); | 186 }); |
187 | 187 |
188 test('mappedBy', () { | 188 test('mappedBy', () { |
189 stream.map((_) => null).listen((_) {}); | 189 stream.mappedBy((_) => null).listen((_) {}); |
190 }); | 190 }); |
191 | 191 |
192 test('reduce', () { | 192 test('reduce', () { |
193 stream.reduce(null, (a, b) => null).then((_) {}); | 193 stream.reduce(null, (a, b) => null).then((_) {}); |
194 }); | 194 }); |
195 | 195 |
196 test('contains', () { | 196 test('contains', () { |
197 stream.contains((_) => true).then((_) {}); | 197 stream.contains((_) => true).then((_) {}); |
198 }); | 198 }); |
199 | 199 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 }); | 270 }); |
271 | 271 |
272 test('singleMatching', () { | 272 test('singleMatching', () { |
273 stream.singleMatching((_) => true).then((_) {}); | 273 stream.singleMatching((_) => true).then((_) {}); |
274 }); | 274 }); |
275 | 275 |
276 test('elementAt', () { | 276 test('elementAt', () { |
277 stream.elementAt(0).then((_) {}); | 277 stream.elementAt(0).then((_) {}); |
278 }); | 278 }); |
279 } | 279 } |
OLD | NEW |