OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 matcher.mirror_test; | 5 library matcher.mirror_test; |
6 | 6 |
7 import 'package:matcher/mirror_matchers.dart'; | 7 import 'package:matcher/mirror_matchers.dart'; |
8 import 'package:unittest/unittest.dart' show test; | 8 import 'package:test/test.dart' show test; |
9 | 9 |
10 import 'test_utils.dart'; | 10 import 'test_utils.dart'; |
11 | 11 |
12 class C { | 12 class C { |
13 var instanceField = 1; | 13 var instanceField = 1; |
14 get instanceGetter => 2; | 14 get instanceGetter => 2; |
15 static var staticField = 3; | 15 static var staticField = 3; |
16 static get staticGetter => 4; | 16 static get staticGetter => 4; |
17 } | 17 } |
18 | 18 |
(...skipping 16 matching lines...) Expand all Loading... |
35 'Actual: <Instance of \'C\'> ' | 35 'Actual: <Instance of \'C\'> ' |
36 'Which: has a member named "staticField",' | 36 'Which: has a member named "staticField",' |
37 ' but it is not an instance property'); | 37 ' but it is not an instance property'); |
38 shouldFail(c, hasProperty('staticGetter'), | 38 shouldFail(c, hasProperty('staticGetter'), |
39 'Expected: has property "staticGetter" ' | 39 'Expected: has property "staticGetter" ' |
40 'Actual: <Instance of \'C\'> ' | 40 'Actual: <Instance of \'C\'> ' |
41 'Which: has a member named "staticGetter",' | 41 'Which: has a member named "staticGetter",' |
42 ' but it is not an instance property'); | 42 ' but it is not an instance property'); |
43 }); | 43 }); |
44 } | 44 } |
OLD | NEW |