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

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

Issue 706793002: Remove/skip invalid mirror tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/hierarchy_test.dart ('k') | tests/lib/mirrors/mirrors_used_typedef_declaration_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/intercepted_object_test.dart
diff --git a/tests/lib/mirrors/intercepted_object_test.dart b/tests/lib/mirrors/intercepted_object_test.dart
index 1aa806085429e895e2b612122bf4aad288f34a40..e01733b114ca622d9263f1714a09a308d025cf1c 100644
--- a/tests/lib/mirrors/intercepted_object_test.dart
+++ b/tests/lib/mirrors/intercepted_object_test.dart
@@ -25,6 +25,12 @@ checkImplements(object, String name) {
return;
}
}
+
+ // A class implements itself, even if not explicitly declared.
+ if (symName == stringify(cls.simpleName)) {
+ checkClassMirrorMethods(cls);
+ return;
+ }
// TODO(floitsch): use correct fail
expect(name, "super interface not found");
« no previous file with comments | « tests/lib/mirrors/hierarchy_test.dart ('k') | tests/lib/mirrors/mirrors_used_typedef_declaration_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698