| Index: tests/lib/mirrors/dart2js_mirrors_test.dart
|
| diff --git a/tests/lib/mirrors/dart2js_mirrors_test.dart b/tests/lib/mirrors/dart2js_mirrors_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e9e0af090b0d4c0a846654bd43080e72be3472ce
|
| --- /dev/null
|
| +++ b/tests/lib/mirrors/dart2js_mirrors_test.dart
|
| @@ -0,0 +1,25 @@
|
| +#library('dart2js_mirrors_test');
|
| +
|
| +#import('dart:mirrors');
|
| +#import("../../../pkg/unittest/unittest.dart");
|
| +
|
| +void main() {
|
| + try {
|
| + print(currentMirrorSystem());
|
| + fail("UnsupportedOperationException expected");
|
| + } on UnsupportedOperationException catch (e) {
|
| + print(e);
|
| + }
|
| + try {
|
| + print(mirrorSystemOf(null));
|
| + fail("UnsupportedOperationException expected");
|
| + } on UnsupportedOperationException catch (e) {
|
| + print(e);
|
| + }
|
| + try {
|
| + print(reflect(null));
|
| + fail("UnsupportedOperationException expected");
|
| + } on UnsupportedOperationException catch (e) {
|
| + print(e);
|
| + }
|
| +}
|
|
|