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

Side by Side Diff: tests/language_2/async_await_foreign_test.dart

Issue 2990773002: Migrate language/arithmetic2_test ... language/async_await_syntax_test. (Closed)
Patch Set: Update migrated tests and statuses to Dart 2.0. Created 3 years, 4 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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'package:expect/expect.dart'; 6 import 'package:expect/expect.dart';
7 7
8 typedef Future<Null> Task(); 8 typedef Future<Null> Task();
9 9
10 class ForeignFuture implements Future<Null> { 10 class ForeignFuture implements Future<Null> {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 await new ForeignFuture([hello]); 63 await new ForeignFuture([hello]);
64 } catch (e) {} 64 } catch (e) {}
65 return 'world'; 65 return 'world';
66 } 66 }
67 67
68 Future main() async { 68 Future main() async {
69 var r2 = await world(); 69 var r2 = await world();
70 Expect.equals('hello', r1); 70 Expect.equals('hello', r1);
71 Expect.equals('world', r2); 71 Expect.equals('world', r2);
72 } 72 }
OLDNEW
« no previous file with comments | « tests/language_2/async_await_catch_regression_test.dart ('k') | tests/language_2/async_await_syntax_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698