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

Side by Side Diff: tests/language/deferred_mixin_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) 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 import 'package:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 import 'package:async_helper/async_helper.dart'; 6 import 'package:async_helper/async_helper.dart';
7 7
8 import "deferred_mixin_lib1.dart" deferred as lib1; 8 import "deferred_mixin_lib1.dart" deferred as lib1;
9 import "deferred_mixin_lib2.dart" deferred as lib2; 9 import "deferred_mixin_lib2.dart" deferred as lib2;
10 10
11 class NonDeferredMixin { 11 class NonDeferredMixin {
12 foo() => "NonDeferredMixin"; 12 foo() => "NonDeferredMixin";
13 } 13 }
14 14
15 class NonDeferredMixin1 { 15 class NonDeferredMixin1 {
16 foo() => "NonDeferredMixin1"; 16 foo() => "NonDeferredMixin1";
17 } 17 }
18 18
19 class NonDeferredMixin2 { 19 class NonDeferredMixin2 {
20 foo() => "NonDeferredMixin2"; 20 foo() => "NonDeferredMixin2";
21 } 21 }
22 22
23 main() { 23 main() {
24 Expect.equals("NonDeferredMixin", new NonDeferredMixin().foo()); 24 Expect.equals("NonDeferredMixin", new NonDeferredMixin().foo());
25 Expect.equals("NonDeferredMixin1", new NonDeferredMixin1().foo()); 25 Expect.equals("NonDeferredMixin1", new NonDeferredMixin1().foo());
26 Expect.equals("NonDeferredMixin2", new NonDeferredMixin2().foo()); 26 Expect.equals("NonDeferredMixin2", new NonDeferredMixin2().foo());
27 asyncStart(); 27 asyncStart();
28 lib1.loadLibrary().then((_) { 28 lib1.loadLibrary().then((_) {
29 Expect.equals("lib1.Mixin", new lib1.Mixin().foo()); 29 Expect.equals("lib1.Mixin", new lib1.Mixin().foo());
30 Expect.equals("A with NonDeferredMixin", new lib1.A().foo()); 30 Expect.equals("A with NonDeferredMixin", new lib1.A().foo());
31 Expect.equals("B with lib1.Mixin", new lib1.B().foo()); 31 Expect.equals("B with lib1.Mixin", new lib1.B().foo());
32 Expect.equals("C with NonDeferredMixin1", new lib1.C().foo()); 32 Expect.equals("C with NonDeferredMixin1", new lib1.C().foo());
33 Expect.equals("D with lib1.Mixin", new lib1.D().foo()); 33 Expect.equals("D with lib1.Mixin", new lib1.D().foo());
34 Expect.equals("E with SharedMixin", new lib1.E().foo()); 34 Expect.equals("E with SharedMixin", new lib1.E().foo());
35 lib2.loadLibrary().then((_) { 35 lib2.loadLibrary().then((_) {
36 Expect.equals("lib2.A with SharedMixin", new lib2.A().foo()); 36 Expect.equals("lib2.A with SharedMixin", new lib2.A().foo());
37 asyncEnd(); 37 asyncEnd();
38 }); 38 });
39 }); 39 });
40 } 40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698