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 // TODO(ahe): Don't add mirrors used, the test doesn't work without it. | |
8 @MirrorsUsed(targets: 'mixin_members_test', override: '*') | |
9 import "dart:mirrors"; | 7 import "dart:mirrors"; |
10 | 8 |
11 import "package:expect/expect.dart"; | 9 import "package:expect/expect.dart"; |
12 | 10 |
13 import 'stringify.dart'; | 11 import 'stringify.dart'; |
14 | 12 |
15 class Fooer { | 13 class Fooer { |
16 foo1(); | 14 foo1(); |
17 } | 15 } |
18 | 16 |
(...skipping 30 matching lines...) Expand all Loading... |
49 // TODO(ahe): Shouldn't have to sort. | 47 // TODO(ahe): Shouldn't have to sort. |
50 sort(sM1.members.keys), '(S with M1).members'); | 48 sort(sM1.members.keys), '(S with M1).members'); |
51 expect('[s(M1)]', simpleNames(sM1.superinterfaces), | 49 expect('[s(M1)]', simpleNames(sM1.superinterfaces), |
52 '(S with M1).superinterfaces'); | 50 '(S with M1).superinterfaces'); |
53 expect('[s(foo1), s(foo2)]', | 51 expect('[s(foo1), s(foo2)]', |
54 // TODO(ahe): Shouldn't have to sort. | 52 // TODO(ahe): Shouldn't have to sort. |
55 sort(s.members.keys), 's.members'); | 53 sort(s.members.keys), 's.members'); |
56 expect('[s(Fooer)]', simpleNames(s.superinterfaces), 's.superinterfaces'); | 54 expect('[s(Fooer)]', simpleNames(s.superinterfaces), 's.superinterfaces'); |
57 Expect.equals(s, reflectClass(S)); | 55 Expect.equals(s, reflectClass(S)); |
58 } | 56 } |
OLD | NEW |