Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: tests/lib/mirrors/mirrors_test.dart

Issue 236313012: Don't hide interceptors in mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/lib/mirrors/intercepted_object_test.dart ('k') | tests/lib/mirrors/null_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tests/lib/mirrors/intercepted_object_test.dart ('k') | tests/lib/mirrors/null_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698