OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 'package:async_helper/async_helper.dart'; | 5 import 'package:async_helper/async_helper.dart'; |
6 import "package:expect/expect.dart"; | 6 import "package:expect/expect.dart"; |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 Future testOneScheduleMicrotask() { | 9 Future testOneScheduleMicrotask() { |
10 var completer = new Completer(); | 10 var completer = new Completer(); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 main() { | 86 main() { |
87 asyncStart(); | 87 asyncStart(); |
88 testOneScheduleMicrotask() | 88 testOneScheduleMicrotask() |
89 .then((_) => testMultipleScheduleMicrotask()) | 89 .then((_) => testMultipleScheduleMicrotask()) |
90 .then((_) => testScheduleMicrotaskThenTimer()) | 90 .then((_) => testScheduleMicrotaskThenTimer()) |
91 .then((_) => testTimerThenScheduleMicrotask()) | 91 .then((_) => testTimerThenScheduleMicrotask()) |
92 .then((_) => testTimerThenScheduleMicrotaskChain()) | 92 .then((_) => testTimerThenScheduleMicrotaskChain()) |
93 .then((_) => asyncEnd()); | 93 .then((_) => asyncEnd()); |
94 } | 94 } |
OLD | NEW |