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

Unified Diff: test/codegen/lib/mirrors/deferred_mirrors_metatarget_test.dart

Issue 2265533002: Add mirrors tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 4 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
Index: test/codegen/lib/mirrors/deferred_mirrors_metatarget_test.dart
diff --git a/test/codegen/language/deferred_no_such_method_test.dart b/test/codegen/lib/mirrors/deferred_mirrors_metatarget_test.dart
similarity index 70%
copy from test/codegen/language/deferred_no_such_method_test.dart
copy to test/codegen/lib/mirrors/deferred_mirrors_metatarget_test.dart
index 9f1b232ce6d9dc4b483c9d6ff71c60f809239bee..f0091c8f328d38d2d0b016f9512670f0f6253dcf 100644
--- a/test/codegen/language/deferred_no_such_method_test.dart
+++ b/test/codegen/lib/mirrors/deferred_mirrors_metatarget_test.dart
@@ -2,15 +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 'package:expect/expect.dart';
+/// Test that metaTargets can be reached via the mirrorSystem.
+
import 'package:async_helper/async_helper.dart';
+import 'package:expect/expect.dart';
-import "deferred_no_such_method_lib.dart" deferred as lib;
+import "deferred_mirrors_metatarget_lib.dart" deferred as lib;
void main() {
asyncStart();
lib.loadLibrary().then((_) {
- Expect.equals(42, new lib.C().nonExisting());
+ Expect.equals("A", lib.foo());
asyncEnd();
});
-}
+}

Powered by Google App Engine
This is Rietveld 408576698