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

Unified Diff: tests/corelib/queue_test.dart

Issue 12537009: Rename XMatching to XWhere. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge and rebuild dom libraries. Created 7 years, 9 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 | « tests/corelib/list_reversed_test.dart ('k') | tests/html/streams_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/queue_test.dart
diff --git a/tests/corelib/queue_test.dart b/tests/corelib/queue_test.dart
index dd91cda14877866c64bb0201a5c8ccdbe3807263..51356e76761261f43c5919de27f5a0ace6a3093d 100644
--- a/tests/corelib/queue_test.dart
+++ b/tests/corelib/queue_test.dart
@@ -230,10 +230,10 @@ abstract class QueueTest {
queue.retainAll([1, 3, 5, 7, 9, 10]); // Remove 2 and 8.
testLength(17, queue);
- queue.removeMatching((x) => x == 7);
+ queue.removeWhere((x) => x == 7);
testLength(14, queue);
- queue.retainMatching((x) => x != 3);
+ queue.retainWhere((x) => x != 3);
testLength(11, queue);
Expect.listEquals([9, 1, 5, 9, 10, 1, 5, 9, 10, 1, 5], queue.toList());
@@ -346,11 +346,11 @@ class ListQueueTest extends QueueTest {
Expect.equals(255, q.length);
// Remove element at end of internal buffer.
- q.removeMatching((v) => v == 255);
+ q.removeWhere((v) => v == 255);
// Remove element at beginning of internal buffer.
- q.removeMatching((v) => v == 0);
+ q.removeWhere((v) => v == 0);
// Remove element at both ends of internal buffer.
- q.removeMatching((v) => v == 254 || v == 1);
+ q.removeWhere((v) => v == 254 || v == 1);
Expect.equals(251, q.length);
« no previous file with comments | « tests/corelib/list_reversed_test.dart ('k') | tests/html/streams_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698