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

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

Issue 17422004: ClassMirror.newInstance in minified mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged and updated lib.status Created 7 years, 6 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 | « dart/tests/lib/lib.status ('k') | no next file » | 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 // TODO(rmacnak): Move the existing mirror tests here (a place for 5 // TODO(rmacnak): Move the existing mirror tests here (a place for
6 // cross-implementation tests). 6 // cross-implementation tests).
7 7
8 library MirrorsTest; 8 library MirrorsTest;
9 import "dart:mirrors"; 9 import "dart:mirrors";
10 import "../../../pkg/unittest/lib/unittest.dart"; 10 import "../../../pkg/unittest/lib/unittest.dart";
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 } 201 }
202 202
203 mainWithArgument({bool isDart2js: false, bool isMinified: false}) { 203 mainWithArgument({bool isDart2js: false, bool isMinified: false}) {
204 var mirrors = currentMirrorSystem(); 204 var mirrors = currentMirrorSystem();
205 test("Test reflective method invocation", () { testInvoke(mirrors); }); 205 test("Test reflective method invocation", () { testInvoke(mirrors); });
206 test("Test instance field access", () { testInstanceFieldAccess(mirrors); }); 206 test("Test instance field access", () { testInstanceFieldAccess(mirrors); });
207 test('Test intercepted objects', () { testIntercepted(mirrors); }); 207 test('Test intercepted objects', () { testIntercepted(mirrors); });
208 if (!isMinified) // TODO(ahe): Remove this line. 208 if (!isMinified) // TODO(ahe): Remove this line.
209 test("Test field access", () { testFieldAccess(mirrors); }); 209 test("Test field access", () { testFieldAccess(mirrors); });
210 test("Test closure mirrors", () { testClosureMirrors(mirrors); }); 210 test("Test closure mirrors", () { testClosureMirrors(mirrors); });
211 if (!isMinified) // TODO(ahe): Remove this line.
212 test("Test invoke constructor", () { testInvokeConstructor(mirrors); }); 211 test("Test invoke constructor", () { testInvokeConstructor(mirrors); });
213 test("Test current library uri", () { 212 test("Test current library uri", () {
214 testLibraryUri(new Class(), 213 testLibraryUri(new Class(),
215 (Uri uri) => uri.path.endsWith('/mirrors_test.dart')); 214 (Uri uri) => uri.path.endsWith('/mirrors_test.dart'));
216 }); 215 });
217 test("Test dart library uri", () { 216 test("Test dart library uri", () {
218 testLibraryUri("test", (Uri uri) => uri == Uri.parse('dart:core')); 217 testLibraryUri("test", (Uri uri) => uri == Uri.parse('dart:core'));
219 }); 218 });
220 if (!isMinified) // TODO(ahe): Remove this line. 219 if (!isMinified) // TODO(ahe): Remove this line.
221 test("Test simple and qualifiedName", () { testNames(mirrors, isDart2js); }); 220 test("Test simple and qualifiedName", () { testNames(mirrors, isDart2js); });
222 if (isDart2js) return; // TODO(ahe): Remove this line. 221 if (isDart2js) return; // TODO(ahe): Remove this line.
223 test("Test reflect type", () { testReflectClass(mirrors); }); 222 test("Test reflect type", () { testReflectClass(mirrors); });
224 } 223 }
225 224
226 main() { 225 main() {
227 mainWithArgument(); 226 mainWithArgument();
228 } 227 }
OLDNEW
« no previous file with comments | « dart/tests/lib/lib.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698