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

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

Issue 11778030: Test fixes for dartium (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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;
7
6 import 'dart:async'; 8 import 'dart:async';
7 import 'event_helper.dart'; 9 import 'event_helper.dart';
8 10
9 testController() { 11 testController() {
10 // Test normal flow. 12 // Test normal flow.
11 var c = new StreamController(); 13 var c = new StreamController();
12 Events expectedEvents = new Events() 14 Events expectedEvents = new Events()
13 ..add(42) 15 ..add(42)
14 ..add("dibs") 16 ..add("dibs")
15 ..error("error!") 17 ..error("error!")
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 actualEvents = new Events.capture(c.distinct((a, b) => a < b)); 352 actualEvents = new Events.capture(c.distinct((a, b) => a < b));
351 sentEvents.replay(c); 353 sentEvents.replay(c);
352 Expect.listEquals(expectedEvents.events, actualEvents.events); 354 Expect.listEquals(expectedEvents.events, actualEvents.events);
353 } 355 }
354 356
355 main() { 357 main() {
356 testController(); 358 testController();
357 testSingleController(); 359 testSingleController();
358 testExtraMethods(); 360 testExtraMethods();
359 } 361 }
OLDNEW
« no previous file with comments | « tests/lib/async/stream_controller_async_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