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

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

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 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
OLDNEW
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 import 'catch_errors.dart'; 8 import 'catch_errors.dart';
9 9
10 var events = []; 10 var events = [];
(...skipping 23 matching lines...) Expand all
34 34
35 main() { 35 main() {
36 asyncStart(); 36 asyncStart();
37 37
38 // Test that nested runZonedScheduleMicrotask go to the next outer zone. 38 // Test that nested runZonedScheduleMicrotask go to the next outer zone.
39 var result = runZonedScheduleMicrotask( 39 var result = runZonedScheduleMicrotask(
40 () => runZonedScheduleMicrotask(body, onScheduleMicrotask: handler2), 40 () => runZonedScheduleMicrotask(body, onScheduleMicrotask: handler2),
41 onScheduleMicrotask: handler); 41 onScheduleMicrotask: handler);
42 events.add("after"); 42 events.add("after");
43 Timer.run(() { 43 Timer.run(() {
44 Expect.listEquals( 44 Expect.listEquals([
45 ["body entry", 45 "body entry",
46 "handler2", "handler", "handler done", "handler2 done", 46 "handler2",
47 "after", 47 "handler",
48 "run async body", 48 "handler done",
49 "handler2", "handler", "handler done", "handler2 done", 49 "handler2 done",
50 "run nested body"], 50 "after",
51 events); 51 "run async body",
52 "handler2",
53 "handler",
54 "handler done",
55 "handler2 done",
56 "run nested body"
57 ], events);
52 asyncEnd(); 58 asyncEnd();
53 }); 59 });
54 } 60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698