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

Unified Diff: tests/lib/mirrors/deferred_mirrors_metatarget_test.dart

Issue 278733003: When mirrors are used with deferred loading we now go through all (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Handle patch libraries + Adress Karl's 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/lib/mirrors/deferred_mirrors_metatarget_lib.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/deferred_mirrors_metatarget_test.dart
diff --git a/tests/language/deferred_no_such_method_test.dart b/tests/lib/mirrors/deferred_mirrors_metatarget_test.dart
similarity index 64%
copy from tests/language/deferred_no_such_method_test.dart
copy to tests/lib/mirrors/deferred_mirrors_metatarget_test.dart
index 00791b5facd9b300fd6d4997d960123ebe043784..f0091c8f328d38d2d0b016f9512670f0f6253dcf 100644
--- a/tests/language/deferred_no_such_method_test.dart
+++ b/tests/lib/mirrors/deferred_mirrors_metatarget_test.dart
@@ -2,18 +2,17 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import "dart:async";
-import 'package:expect/expect.dart';
-import 'package:async_helper/async_helper.dart';
+/// Test that metaTargets can be reached via the mirrorSystem.
-@l import "deferred_no_such_method_lib.dart" as lib;
+import 'package:async_helper/async_helper.dart';
+import 'package:expect/expect.dart';
-const l = const DeferredLibrary('lib');
+import "deferred_mirrors_metatarget_lib.dart" deferred as lib;
void main() {
asyncStart();
- l.load().then((_) {
- Expect.equals(42, new lib.C().nonExisting());
+ lib.loadLibrary().then((_) {
+ Expect.equals("A", lib.foo());
asyncEnd();
});
-}
+}
« no previous file with comments | « tests/lib/mirrors/deferred_mirrors_metatarget_lib.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698