OLD | NEW |
1 library streams_test; | 1 library streams_test; |
2 import '../../pkg/unittest/lib/unittest.dart'; | 2 import 'package:unittest/unittest.dart'; |
3 import '../../pkg/unittest/lib/html_config.dart'; | 3 import 'package:unittest/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(); |
11 document.body.append(_a); | 11 document.body.append(_a); |
12 } | 12 } |
13 | 13 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 }); | 267 }); |
268 | 268 |
269 test('singleWhere', () { | 269 test('singleWhere', () { |
270 stream.singleWhere((_) => true).then((_) {}); | 270 stream.singleWhere((_) => true).then((_) {}); |
271 }); | 271 }); |
272 | 272 |
273 test('elementAt', () { | 273 test('elementAt', () { |
274 stream.elementAt(0).then((_) {}); | 274 stream.elementAt(0).then((_) {}); |
275 }); | 275 }); |
276 } | 276 } |
OLD | NEW |