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

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

Issue 49083004: Re-triage mirror test failures on the analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/method_mirror_returntype_test.dart ('k') | tests/lib/mirrors/mixin_members_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/method_mirror_source_test.dart
diff --git a/tests/lib/mirrors/method_mirror_source_test.dart b/tests/lib/mirrors/method_mirror_source_test.dart
index 094e36d73ce1d89afc6e33f76d9ad388010a36b1..2507915ec17e8c1e2246e5706a920b95c13913bb 100644
--- a/tests/lib/mirrors/method_mirror_source_test.dart
+++ b/tests/lib/mirrors/method_mirror_source_test.dart
@@ -7,11 +7,14 @@ import "dart:mirrors";
import "package:expect/expect.dart";
expectSource(Mirror mirror, String source) {
+ MethodMirror methodMirror;
if (mirror is ClosureMirror) {
- mirror = mirror.function;
+ methodMirror = mirror.function;
+ } else {
+ methodMirror = mirror as MethodMirror;
}
- Expect.isTrue(mirror is MethodMirror);
- Expect.equals(mirror.source, source);
+ Expect.isTrue(methodMirror is MethodMirror);
+ Expect.equals(methodMirror.source, source);
}
foo1() {}
« no previous file with comments | « tests/lib/mirrors/method_mirror_returntype_test.dart ('k') | tests/lib/mirrors/mixin_members_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698