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

Side by Side Diff: tests/lib/async/stream_controller_async_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_async_test; 6 library stream_controller_async_test;
7 7
8 import "package:expect/expect.dart";
8 import 'dart:async'; 9 import 'dart:async';
9 import 'dart:isolate'; 10 import 'dart:isolate';
10 import '../../../pkg/unittest/lib/unittest.dart'; 11 import '../../../pkg/unittest/lib/unittest.dart';
11 import 'event_helper.dart'; 12 import 'event_helper.dart';
12 13
13 testController() { 14 testController() {
14 // Test reduce 15 // Test reduce
15 test("StreamController.reduce", () { 16 test("StreamController.reduce", () {
16 StreamController c = new StreamController.broadcast(); 17 StreamController c = new StreamController.broadcast();
17 Stream stream = c.stream; 18 Stream stream = c.stream;
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 testFuture("reduce", (s, act) => s.reduce(0, (a,b) => act(b))); 452 testFuture("reduce", (s, act) => s.reduce(0, (a,b) => act(b)));
452 } 453 }
453 454
454 main() { 455 main() {
455 testController(); 456 testController();
456 testSingleController(); 457 testSingleController();
457 testExtraMethods(); 458 testExtraMethods();
458 testPause(); 459 testPause();
459 testRethrow(); 460 testRethrow();
460 } 461 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698