Index: tests/lib_strong/collection/list_test.dart |
diff --git a/tests/lib_strong/collection/list_test.dart b/tests/lib_strong/collection/list_test.dart |
index a1fedcc1c00b196bde290b11f1f534fdcec36e03..f307a61ce642590ec5706bb61700698dacc169cf 100644 |
--- a/tests/lib_strong/collection/list_test.dart |
+++ b/tests/lib_strong/collection/list_test.dart |
@@ -31,13 +31,12 @@ class MyNoSuchMethodList<E> extends Object |
MyNoSuchMethodList(List<E> this._list); |
noSuchMethod(Invocation invocation) { |
- if (invocation.memberName == #length) { |
- if (invocation.isGetter) return _list.length; |
- if (invocation.isSetter) { |
- _list.length = invocation.positionalArguments.first; |
- return null; |
- } |
- return super.noSuchMethod(invocation); |
+ if (invocation.memberName == #length && invocation.isGetter) { |
+ return _list.length; |
+ } |
+ if (invocation.memberName == new Symbol("length=") && invocation.isSetter) { |
+ _list.length = invocation.positionalArguments.first; |
+ return null; |
} |
if (invocation.memberName == new Symbol("[]") && |
invocation.positionalArguments.length == 1) { |
@@ -60,13 +59,12 @@ class MyIndexableNoSuchMethod<E> { |
MyIndexableNoSuchMethod(List<E> this._list); |
noSuchMethod(Invocation invocation) { |
- if (invocation.memberName == #length) { |
- if (invocation.isGetter) return _list.length; |
- if (invocation.isSetter) { |
- _list.length = invocation.positionalArguments.first; |
- return null; |
- } |
- return super.noSuchMethod(invocation); |
+ if (invocation.memberName == #length && invocation.isGetter) { |
+ return _list.length; |
+ } |
+ if (invocation.memberName == new Symbol("length=") && invocation.isSetter) { |
+ _list.length = invocation.positionalArguments.first; |
+ return null; |
} |
if (invocation.memberName == new Symbol("prototype")) { |
return 42; |