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