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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 the basic StreamController and StreamController.singleSubscription. 5 // Test the basic StreamController and StreamController.singleSubscription.
6 library stream_controller_test; 6 library stream_controller_test;
7 7
8 import "package:expect/expect.dart";
8 import 'dart:async'; 9 import 'dart:async';
9 import 'event_helper.dart'; 10 import 'event_helper.dart';
10 11
11 testMultiController() { 12 testMultiController() {
12 // Test normal flow. 13 // Test normal flow.
13 var c = new StreamController.broadcast(); 14 var c = new StreamController.broadcast();
14 Events expectedEvents = new Events() 15 Events expectedEvents = new Events()
15 ..add(42) 16 ..add(42)
16 ..add("dibs") 17 ..add("dibs")
17 ..error("error!") 18 ..error("error!")
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 actualEvents = new Events.capture(c.stream.distinct((a, b) => a < b)); 391 actualEvents = new Events.capture(c.stream.distinct((a, b) => a < b));
391 sentEvents.replay(c); 392 sentEvents.replay(c);
392 Expect.listEquals(expectedEvents.events, actualEvents.events); 393 Expect.listEquals(expectedEvents.events, actualEvents.events);
393 } 394 }
394 395
395 main() { 396 main() {
396 testMultiController(); 397 testMultiController();
397 testSingleController(); 398 testSingleController();
398 testExtraMethods(); 399 testExtraMethods();
399 } 400 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698