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

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

Issue 64793003: Update mirror tests for removed API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 7 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/mixin_members_test.dart ('k') | tests/lib/mirrors/parameter_metadata_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/operator_test.dart
diff --git a/tests/lib/mirrors/operator_test.dart b/tests/lib/mirrors/operator_test.dart
index 54367b15277af333945f21df18f6dd5199ed7182..c534f1ff514481b263bfebe1a9ef47d7329ffbda 100644
--- a/tests/lib/mirrors/operator_test.dart
+++ b/tests/lib/mirrors/operator_test.dart
@@ -42,7 +42,8 @@ void main() {
var operators = new Map<Symbol, MethodMirror>();
var operatorParameters = new Map<Symbol, List>();
var returnTypes = new Map<Symbol, Mirror>();
- for (MethodMirror method in cls.methods.values) {
+ for (MethodMirror method in cls.declarations.values.where(
+ (d) => d is MethodMirror && !d.isConstructor)) {
Expect.isTrue(method.isRegularMethod);
Expect.isTrue(method.isOperator);
Expect.isFalse(method.isGetter);
« no previous file with comments | « tests/lib/mirrors/mixin_members_test.dart ('k') | tests/lib/mirrors/parameter_metadata_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698