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

Side by Side Diff: tests/language/mixin_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) 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 M1 { foo() => 42; } 7 class M1 {
8 foo() => 42;
9 }
10
8 class M2 = Object with M1; 11 class M2 = Object with M1;
9 12
10 class S { } 13 class S {}
14
11 class C = S with M2; 15 class C = S with M2;
12 16
13 main() { 17 main() {
14 var c = new C(); 18 var c = new C();
15 Expect.isTrue(c is S); 19 Expect.isTrue(c is S);
16 Expect.isTrue(c is M1); 20 Expect.isTrue(c is M1);
17 Expect.isTrue(c is M2); 21 Expect.isTrue(c is M2);
18 Expect.isTrue(c is C); 22 Expect.isTrue(c is C);
19 Expect.equals(42, c.foo()); 23 Expect.equals(42, c.foo());
20 } 24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698