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 import 'dart:mirrors'; | 5 import 'dart:mirrors'; |
6 import 'package:expect/expect.dart'; | 6 import 'package:expect/expect.dart'; |
7 | 7 |
8 class C {} | 8 class C {} |
9 | 9 |
10 expectThrowsNSM(f) { | 10 expectThrowsNSM(f) { |
(...skipping 17 matching lines...) Expand all Loading... |
28 expectThrowsNSM(() => reflectClass(C).getters); | 28 expectThrowsNSM(() => reflectClass(C).getters); |
29 expectThrowsNSM(() => reflectClass(C).setters); | 29 expectThrowsNSM(() => reflectClass(C).setters); |
30 expectThrowsNSM(() => reflectClass(C).variables); | 30 expectThrowsNSM(() => reflectClass(C).variables); |
31 expectThrowsNSM(() => reflectClass(C).constructors); | 31 expectThrowsNSM(() => reflectClass(C).constructors); |
32 | 32 |
33 expectThrowsNSM(() => MirroredError); | 33 expectThrowsNSM(() => MirroredError); |
34 expectThrowsNSM(() => MirrorException); | 34 expectThrowsNSM(() => MirrorException); |
35 expectThrowsNSM(() => MirroredUncaughtExceptionError); | 35 expectThrowsNSM(() => MirroredUncaughtExceptionError); |
36 // Don't ask about MirroredCompilationError. | 36 // Don't ask about MirroredCompilationError. |
37 } | 37 } |
OLD | NEW |