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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. Created 7 years, 8 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
« no previous file with comments | « tests/lib/async/future_delayed_error_test.dart ('k') | tests/lib/async/futures_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 library future_test; 5 library future_test;
6 6
7 import "package:expect/expect.dart";
7 import 'dart:async'; 8 import 'dart:async';
8 import 'dart:isolate'; 9 import 'dart:isolate';
9 10
10 const Duration MS = const Duration(milliseconds: 1); 11 const Duration MS = const Duration(milliseconds: 1);
11 12
12 testImmediate() { 13 testImmediate() {
13 final future = new Future<String>.immediate("42"); 14 final future = new Future<String>.immediate("42");
14 var port = new ReceivePort(); 15 var port = new ReceivePort();
15 future.then((x) { 16 future.then((x) {
16 Expect.equals("42", x); 17 Expect.equals("42", x);
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 testFutureCatchThrowsAsync(); 643 testFutureCatchThrowsAsync();
643 testFutureWhenThrowsAsync(); 644 testFutureWhenThrowsAsync();
644 testFutureCatchRethrowsAsync(); 645 testFutureCatchRethrowsAsync();
645 646
646 testChainedFutureValue(); 647 testChainedFutureValue();
647 testChainedFutureValueDelay(); 648 testChainedFutureValueDelay();
648 testChainedFutureError(); 649 testChainedFutureError();
649 } 650 }
650 651
651 652
OLDNEW
« no previous file with comments | « tests/lib/async/future_delayed_error_test.dart ('k') | tests/lib/async/futures_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698