OLD | NEW |
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"; |
| 6 |
5 class S { | 7 class S { |
6 foo() => "S-foo"; | 8 foo() => "S-foo"; |
7 baz() => "S-baz"; | 9 baz() => "S-baz"; |
8 } | 10 } |
9 | 11 |
10 class M1 { | 12 class M1 { |
11 static m1bar() => "M1-bar"; | 13 static m1bar() => "M1-bar"; |
12 bar() => m1bar(); | 14 bar() => m1bar(); |
13 } | 15 } |
14 | 16 |
(...skipping 29 matching lines...) Expand all Loading... |
44 Expect.equals("M1-bar", e.bar()); | 46 Expect.equals("M1-bar", e.bar()); |
45 Expect.equals("M2-baz", e.baz()); | 47 Expect.equals("M2-baz", e.baz()); |
46 Expect.equals("M2-fez", e.fez()); | 48 Expect.equals("M2-fez", e.fez()); |
47 | 49 |
48 var f = new F(); | 50 var f = new F(); |
49 Expect.equals("S-foo", f.foo()); | 51 Expect.equals("S-foo", f.foo()); |
50 Expect.equals("M1-bar", f.bar()); | 52 Expect.equals("M1-bar", f.bar()); |
51 Expect.equals("M2-baz", f.baz()); | 53 Expect.equals("M2-baz", f.baz()); |
52 Expect.equals("F-fez", f.fez()); | 54 Expect.equals("F-fez", f.fez()); |
53 } | 55 } |
OLD | NEW |