| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 MirrorsTest; | 5 library MirrorsTest; |
| 6 | 6 |
| 7 import 'dart:mirrors'; | 7 import 'dart:mirrors'; |
| 8 | 8 |
| 9 import '../../light_unittest.dart'; | 9 import '../../light_unittest.dart'; |
| 10 | 10 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 test("Test field access", () { testFieldAccess(mirrors); }); | 216 test("Test field access", () { testFieldAccess(mirrors); }); |
| 217 test("Test closure mirrors", () { testClosureMirrors(mirrors); }); | 217 test("Test closure mirrors", () { testClosureMirrors(mirrors); }); |
| 218 test("Test invoke constructor", () { testInvokeConstructor(mirrors); }); | 218 test("Test invoke constructor", () { testInvokeConstructor(mirrors); }); |
| 219 test("Test current library uri", () { | 219 test("Test current library uri", () { |
| 220 testLibraryUri(new Class(), | 220 testLibraryUri(new Class(), |
| 221 // TODO(floitsch): change this to "/mirrors_test.dart" when | 221 // TODO(floitsch): change this to "/mirrors_test.dart" when |
| 222 // dart2js_mirrors_test.dart has been removed. | 222 // dart2js_mirrors_test.dart has been removed. |
| 223 (Uri uri) => uri.path.endsWith('mirrors_test.dart')); | 223 (Uri uri) => uri.path.endsWith('mirrors_test.dart')); |
| 224 }); | 224 }); |
| 225 test("Test dart library uri", () { | 225 test("Test dart library uri", () { |
| 226 testLibraryUri("test", (Uri uri) => uri == Uri.parse('dart:core')); | 226 testLibraryUri("test", |
| 227 (Uri uri) { |
| 228 if (uri == Uri.parse('dart:core')) return true; |
| 229 // TODO(floitsch): do we want to fake the interceptors to |
| 230 // be in dart:core? |
| 231 return (uri == Uri.parse('dart:_interceptors')); |
| 232 }); |
| 227 }); | 233 }); |
| 228 test("Test simple and qualifiedName", () { testNames(mirrors); }); | 234 test("Test simple and qualifiedName", () { testNames(mirrors); }); |
| 229 test("Test reflect type", () { testReflectClass(mirrors); }); | 235 test("Test reflect type", () { testReflectClass(mirrors); }); |
| 230 } | 236 } |
| OLD | NEW |