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 hierarchy_test; | 5 library hierarchy_test; |
6 | 6 |
7 @MirrorsUsed(targets: 'hierarchy_test, Object') | 7 @MirrorsUsed(targets: 'hierarchy_test, Object') |
8 import 'dart:mirrors'; | 8 import 'dart:mirrors'; |
9 | 9 |
10 import 'package:expect/expect.dart'; | 10 import 'package:expect/expect.dart'; |
(...skipping 27 matching lines...) Expand all Loading... |
38 } | 38 } |
39 | 39 |
40 main() { | 40 main() { |
41 Expect.stringEquals(''' | 41 Expect.stringEquals(''' |
42 > hierarchy_test.Bar | 42 > hierarchy_test.Bar |
43 + hierarchy_test.FooMixin | 43 + hierarchy_test.FooMixin |
44 > hierarchy_test.Qux | 44 > hierarchy_test.Qux |
45 > dart.core.Object | 45 > dart.core.Object |
46 ''', stringifyHierarchy(reflect(new Bar()..foo()..bar()..qux()))); | 46 ''', stringifyHierarchy(reflect(new Bar()..foo()..bar()..qux()))); |
47 | 47 |
48 // TODO(ahe): Using wrong mixin syntax, see http://dartbug.com/12464. | |
49 Expect.stringEquals(''' | 48 Expect.stringEquals(''' |
50 > hierarchy_test.Baz | 49 > hierarchy_test.Baz |
51 > hierarchy_test.FooMixin(hierarchy_test.Qux) | 50 > hierarchy_test.Qux with hierarchy_test.FooMixin |
52 + hierarchy_test.FooMixin | 51 + hierarchy_test.FooMixin |
53 > hierarchy_test.Qux | 52 > hierarchy_test.Qux |
54 > dart.core.Object | 53 > dart.core.Object |
55 ''', stringifyHierarchy(reflect(new Baz()..foo()..bar()..qux()))); | 54 ''', stringifyHierarchy(reflect(new Baz()..foo()..bar()..qux()))); |
56 } | 55 } |
OLD | NEW |