Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: tests/lib/async/stream_from_iterable_test.dart

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Test merging streams. 5 // Test merging streams.
6 library dart.test.stream_from_iterable; 6 library dart.test.stream_from_iterable;
7 7
8 import "package:expect/expect.dart";
9 import "dart:async"; 8 import "dart:async";
10 import '../../../pkg/unittest/lib/unittest.dart'; 9 import '../../../pkg/unittest/lib/unittest.dart';
11 import 'event_helper.dart'; 10 import 'event_helper.dart';
12 11
13 class IterableTest<T> { 12 class IterableTest<T> {
14 static int counter = 0; 13 static int counter = 0;
15 Iterable<T> iterable; 14 Iterable<T> iterable;
16 IterableTest(this.iterable); 15 IterableTest(this.iterable);
17 void run() { 16 void run() {
18 test("stream from iterable ${counter++}", () { 17 test("stream from iterable ${counter++}", () {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 if (value == 20) { 66 if (value == 20) {
68 subscription.pause(new Future.delayed(duration, () {})); 67 subscription.pause(new Future.delayed(duration, () {}));
69 } 68 }
70 }, onDone: expectAsync0(() { 69 }, onDone: expectAsync0(() {
71 actual.close(); 70 actual.close();
72 Events expected = new Events.fromIterable(iter); 71 Events expected = new Events.fromIterable(iter);
73 Expect.listEquals(expected.events, actual.events); 72 Expect.listEquals(expected.events, actual.events);
74 })); 73 }));
75 }); 74 });
76 } 75 }
OLDNEW
« no previous file with comments | « tests/lib/async/stream_event_transform_test.dart ('k') | tests/lib/async/stream_min_max_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698