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

Side by Side Diff: tests/language/async_test.dart

Issue 898703004: Fix async_test problems. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« no previous file with comments | « pkg/compiler/lib/src/warnings.dart ('k') | tests/language/language.status » ('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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 5
6 import 'package:expect/expect.dart'; 6 import 'package:expect/expect.dart';
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 9
10 topLevelFunction() async { } 10 topLevelFunction() async { }
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 var b2 = new B(); 119 var b2 = new B();
120 b2.dontDoThat = 4; /// setter1: compile-time error 120 b2.dontDoThat = 4; /// setter1: compile-time error
121 121
122 var checkAsync = (var someFunc) { 122 var checkAsync = (var someFunc) {
123 var toTest = someFunc(); 123 var toTest = someFunc();
124 Expect.isTrue(toTest is Future); 124 Expect.isTrue(toTest is Future);
125 toTest.then((int result) => Expect.equals(result, 4)); 125 toTest.then((int result) => Expect.equals(result, 4));
126 }; 126 };
127 checkAsync(() async => 4); 127 checkAsync(() async => 4);
128 128
129 new A.fail(); /// constructor2: continued
130 new A.create(); /// constructor3: continued
129 } 131 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/warnings.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698