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

Unified Diff: pkg/unittest/lib/mock.dart

Issue 13956006: Remove insertRange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebuild DOM (unrelated CL) and update status files. Created 7 years, 8 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 | « pkg/serialization/lib/src/serialization_rule.dart ('k') | pkg/yaml/lib/model.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/mock.dart
diff --git a/pkg/unittest/lib/mock.dart b/pkg/unittest/lib/mock.dart
index db243dbd545c4912ddea83e16e4262413cb64193..47eae38b901964ea296ac4eb78de93a779aa0dc7 100644
--- a/pkg/unittest/lib/mock.dart
+++ b/pkg/unittest/lib/mock.dart
@@ -513,7 +513,8 @@ class LogEntryList {
actionMatcher.matches(entry, matchState)) {
rtn.add(entry);
if (destructive) {
- logs.removeRange(i--, 1);
+ int startIndex = i--;
+ logs.removeRange(startIndex, startIndex + 1);
}
}
}
@@ -621,7 +622,7 @@ class LogEntryList {
int pos = findLogEntry(logFilter, 0, defaultPosition);
if (inPlace) {
if (pos < logs.length) {
- logs.removeRange(pos, logs.length - pos);
+ logs.removeRange(pos, logs.length);
}
filter = description;
return this;
« no previous file with comments | « pkg/serialization/lib/src/serialization_rule.dart ('k') | pkg/yaml/lib/model.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698