| 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 library mixin_members_test; | 5 library mixin_members_test; |
| 6 | 6 |
| 7 import "dart:mirrors"; | 7 import "dart:mirrors"; |
| 8 | 8 |
| 9 import "package:expect/expect.dart"; | 9 import "package:expect/expect.dart"; |
| 10 | 10 |
| 11 import 'stringify.dart'; | 11 import 'stringify.dart'; |
| 12 | 12 |
| 13 class Fooer { | 13 abstract class Fooer { |
| 14 foo1(); | 14 foo1(); |
| 15 } | 15 } |
| 16 | 16 |
| 17 class S implements Fooer { | 17 class S implements Fooer { |
| 18 foo1() {} | 18 foo1() {} |
| 19 foo2() {} | 19 foo2() {} |
| 20 } | 20 } |
| 21 | 21 |
| 22 class M1 { | 22 class M1 { |
| 23 bar1() {} | 23 bar1() {} |
| (...skipping 23 matching lines...) Expand all Loading... |
| 47 // TODO(ahe): Shouldn't have to sort. | 47 // TODO(ahe): Shouldn't have to sort. |
| 48 sort(sM1.members.keys), '(S with M1).members'); | 48 sort(sM1.members.keys), '(S with M1).members'); |
| 49 expect('[s(M1)]', simpleNames(sM1.superinterfaces), | 49 expect('[s(M1)]', simpleNames(sM1.superinterfaces), |
| 50 '(S with M1).superinterfaces'); | 50 '(S with M1).superinterfaces'); |
| 51 expect('[s(foo1), s(foo2)]', | 51 expect('[s(foo1), s(foo2)]', |
| 52 // TODO(ahe): Shouldn't have to sort. | 52 // TODO(ahe): Shouldn't have to sort. |
| 53 sort(s.members.keys), 's.members'); | 53 sort(s.members.keys), 's.members'); |
| 54 expect('[s(Fooer)]', simpleNames(s.superinterfaces), 's.superinterfaces'); | 54 expect('[s(Fooer)]', simpleNames(s.superinterfaces), 's.superinterfaces'); |
| 55 Expect.equals(s, reflectClass(S)); | 55 Expect.equals(s, reflectClass(S)); |
| 56 } | 56 } |
| OLD | NEW |