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

Unified Diff: pkg/observe/test/observable_list_test.dart

Issue 18267005: Fix bug in pkg:observe (observable_list.remove(Object)) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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/observe/lib/src/observable_list.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/observe/test/observable_list_test.dart
diff --git a/pkg/observe/test/observable_list_test.dart b/pkg/observe/test/observable_list_test.dart
index e211243e842975f94636167640c90cb21a23f184..b886f039aafb9c82f53ddb8e38e5a0ea60c54d7b 100644
--- a/pkg/observe/test/observable_list_test.dart
+++ b/pkg/observe/test/observable_list_test.dart
@@ -31,6 +31,15 @@ main() {
expectChanges(changes, [_lengthChange]);
});
+ test('removeObject', () {
+ list.remove(2);
+ expect(list, orderedEquals([1, 3]));
+
+ deliverChangeRecords();
+ deliverChangeRecords();
+ expectChanges(changes, [_lengthChange]);
+ });
+
test('removeRange changes length', () {
list.add(4);
list.removeRange(1, 3);
« no previous file with comments | « pkg/observe/lib/src/observable_list.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698