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

Side by Side Diff: tests/language/mixin_naming_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:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 class S { } 7 class S {}
8 class M1 { } 8
9 class M2 { } 9 class M1 {}
10 class M3 { } 10
11 class M2 {}
12
13 class M3 {}
11 14
12 class C = S with M1, M2, M3; 15 class C = S with M1, M2, M3;
13 class D extends S with M1, M2, M3 { }
14 16
15 class S_M1 { } 17 class D extends S with M1, M2, M3 {}
16 class S_M1_M2 { } 18
19 class S_M1 {}
20
21 class S_M1_M2 {}
17 22
18 main() { 23 main() {
19 var c = new C(); 24 var c = new C();
20 Expect.isTrue(c is C); 25 Expect.isTrue(c is C);
21 Expect.isFalse(c is D); 26 Expect.isFalse(c is D);
22 Expect.isTrue(c is S); 27 Expect.isTrue(c is S);
23 Expect.isFalse(c is S_M1); 28 Expect.isFalse(c is S_M1);
24 Expect.isFalse(c is S_M1_M2); 29 Expect.isFalse(c is S_M1_M2);
25 30
26 var d = new D(); 31 var d = new D();
(...skipping 10 matching lines...) Expand all
37 Expect.isTrue(sm is S_M1); 42 Expect.isTrue(sm is S_M1);
38 Expect.isFalse(sm is S_M1_M2); 43 Expect.isFalse(sm is S_M1_M2);
39 44
40 var smm = new S_M1_M2(); 45 var smm = new S_M1_M2();
41 Expect.isFalse(smm is C); 46 Expect.isFalse(smm is C);
42 Expect.isFalse(smm is D); 47 Expect.isFalse(smm is D);
43 Expect.isFalse(smm is S); 48 Expect.isFalse(smm is S);
44 Expect.isFalse(smm is S_M1); 49 Expect.isFalse(smm is S_M1);
45 Expect.isTrue(smm is S_M1_M2); 50 Expect.isTrue(smm is S_M1_M2);
46 } 51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698