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

Side by Side Diff: tests/language_strong/deferred_redirecting_factory_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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library main; 4 library main;
5 5
6 import "deferred_redirecting_factory_lib1.dart" deferred as lib1; 6 import "deferred_redirecting_factory_lib1.dart" deferred as lib1;
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import "package:async_helper/async_helper.dart"; 8 import "package:async_helper/async_helper.dart";
9 9
10 class C { 10 class C {
(...skipping 20 matching lines...) Expand all
31 }); 31 });
32 } 32 }
33 33
34 test3() async { 34 test3() async {
35 await lib1.loadLibrary(); 35 await lib1.loadLibrary();
36 await lib1.loadLib2(); 36 await lib1.loadLib2();
37 Expect.equals("lib1", new C.a().foo); 37 Expect.equals("lib1", new C.a().foo);
38 Expect.equals("lib2", new C.b().foo); 38 Expect.equals("lib2", new C.b().foo);
39 } 39 }
40 40
41
42 test() async { 41 test() async {
43 await test1(); 42 await test1();
44 await test2(); 43 await test2();
45 await test3(); 44 await test3();
46 } 45 }
47 46
48 void main() { 47 void main() {
49 asyncStart(); 48 asyncStart();
50 test().then((_) => asyncEnd()); 49 test().then((_) => asyncEnd());
51 } 50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698