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

Unified Diff: tests/lib_2/mirrors/closures_test.dart

Issue 2999373002: Migrated test block 218 to Dart 2.0. (Closed)
Patch Set: Addressed Bob's comments. Created 3 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: tests/lib_2/mirrors/closures_test.dart
diff --git a/tests/lib_strong/mirrors/closures_test.dart b/tests/lib_2/mirrors/closures_test.dart
similarity index 86%
rename from tests/lib_strong/mirrors/closures_test.dart
rename to tests/lib_2/mirrors/closures_test.dart
index 35e81f9805821b2bd2becc4aa986948e3379bfc0..a1e2e93de6c684c14d2f07550a2bdd3379866921 100644
--- a/tests/lib_strong/mirrors/closures_test.dart
+++ b/tests/lib_2/mirrors/closures_test.dart
@@ -8,7 +8,7 @@ import 'stringify.dart';
testIntercepted() {
var instance = [];
- var closureMirror = reflect(instance.toString);
+ var closureMirror = reflect(instance.toString) as ClosureMirror;
var methodMirror = closureMirror.function;
Expect.equals(#toString, methodMirror.simpleName);
Expect.equals('[]', closureMirror.apply([]).reflectee);
@@ -16,7 +16,7 @@ testIntercepted() {
testNonIntercepted() {
var closure = new Map().containsKey;
- var closureMirror = reflect(closure);
+ var closureMirror = reflect(closure) as ClosureMirror;
var methodMirror = closureMirror.function;
Expect.equals(#containsKey, methodMirror.simpleName);
Expect.isFalse(closureMirror.apply([7]).reflectee);
« no previous file with comments | « tests/lib_2/mirrors/closure_mirror_import2.dart ('k') | tests/lib_2/mirrors/closurization_equivalence_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698