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 mirrors_mixin_test; | 5 library mirrors_mixin_test; |
6 | 6 |
7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
8 import 'package:async_helper/async_helper.dart'; | 8 import 'package:async_helper/async_helper.dart'; |
9 import 'mirror_system_helper.dart'; | 9 import 'mirror_system_helper.dart'; |
10 | 10 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 Expect.isTrue(isSameDeclarationList([M2, M1], getAppliedMixins(H))); | 231 Expect.isTrue(isSameDeclarationList([M2, M1], getAppliedMixins(H))); |
232 Expect.isTrue(isSameDeclarationSet([A, M1], getExplicitInterfaces(H))); | 232 Expect.isTrue(isSameDeclarationSet([A, M1], getExplicitInterfaces(H))); |
233 | 233 |
234 // class H2 extends H {} | 234 // class H2 extends H {} |
235 var H2 = library.declarations[#H2]; | 235 var H2 = library.declarations[#H2]; |
236 Expect.isTrue(isSameDeclaration(H, getSuperclass(H2))); | 236 Expect.isTrue(isSameDeclaration(H, getSuperclass(H2))); |
237 Expect.isTrue(getAppliedMixins(H2).isEmpty); | 237 Expect.isTrue(getAppliedMixins(H2).isEmpty); |
238 Expect.isTrue(getExplicitInterfaces(H2).isEmpty); | 238 Expect.isTrue(getExplicitInterfaces(H2).isEmpty); |
239 })); | 239 })); |
240 } | 240 } |
OLD | NEW |