| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 184 |
| 185 test('where', () { | 185 test('where', () { |
| 186 stream.where((_) => true).listen((_) {}); | 186 stream.where((_) => true).listen((_) {}); |
| 187 }); | 187 }); |
| 188 | 188 |
| 189 test('map', () { | 189 test('map', () { |
| 190 stream.map((_) => null).listen((_) {}); | 190 stream.map((_) => null).listen((_) {}); |
| 191 }); | 191 }); |
| 192 | 192 |
| 193 test('reduce', () { | 193 test('reduce', () { |
| 194 stream.reduce(null, (a, b) => null).then((_) {}); | 194 stream.reduce((a, b) => null).then((_) {}); |
| 195 }); | 195 }); |
| 196 | 196 |
| 197 test('fold', () { | 197 test('fold', () { |
| 198 stream.fold(null, (a, b) => null).then((_) {}); | 198 stream.fold(null, (a, b) => null).then((_) {}); |
| 199 }); | 199 }); |
| 200 | 200 |
| 201 test('contains', () { | 201 test('contains', () { |
| 202 stream.contains((_) => true).then((_) {}); | 202 stream.contains((_) => true).then((_) {}); |
| 203 }); | 203 }); |
| 204 | 204 |
| 205 test('every', () { | 205 test('every', () { |
| 206 stream.every((_) => true).then((_) {}); | 206 stream.every((_) => true).then((_) {}); |
| 207 }); | 207 }); |
| 208 | 208 |
| 209 test('any', () { | 209 test('any', () { |
| 210 stream.any((_) => true).then((_) {}); | 210 stream.any((_) => true).then((_) {}); |
| 211 }); | 211 }); |
| 212 | 212 |
| 213 test('length', () { | 213 test('length', () { |
| 214 stream.length.then((_) {}); | 214 stream.length.then((_) {}); |
| 215 }); | 215 }); |
| 216 | 216 |
| 217 test('min', () { | |
| 218 stream.min((a, b) => 0).then((_) {}); | |
| 219 }); | |
| 220 | |
| 221 test('max', () { | |
| 222 stream.max((a, b) => 0).then((_) {}); | |
| 223 }); | |
| 224 | |
| 225 test('isEmpty', () { | 217 test('isEmpty', () { |
| 226 stream.isEmpty.then((_) {}); | 218 stream.isEmpty.then((_) {}); |
| 227 }); | 219 }); |
| 228 | 220 |
| 229 test('toList', () { | 221 test('toList', () { |
| 230 stream.toList().then((_) {}); | 222 stream.toList().then((_) {}); |
| 231 }); | 223 }); |
| 232 | 224 |
| 233 test('toSet', () { | 225 test('toSet', () { |
| 234 stream.toSet().then((_) {}); | 226 stream.toSet().then((_) {}); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 }); | 267 }); |
| 276 | 268 |
| 277 test('singleWhere', () { | 269 test('singleWhere', () { |
| 278 stream.singleWhere((_) => true).then((_) {}); | 270 stream.singleWhere((_) => true).then((_) {}); |
| 279 }); | 271 }); |
| 280 | 272 |
| 281 test('elementAt', () { | 273 test('elementAt', () { |
| 282 stream.elementAt(0).then((_) {}); | 274 stream.elementAt(0).then((_) {}); |
| 283 }); | 275 }); |
| 284 } | 276 } |
| OLD | NEW |