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

Unified Diff: utils/tests/archive/reader_test.dart

Issue 11414069: Make mappedBy lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error. Created 8 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
Index: utils/tests/archive/reader_test.dart
diff --git a/utils/tests/archive/reader_test.dart b/utils/tests/archive/reader_test.dart
index cec31cf28bfab40e6ad1720b1f3fa23ce4b2094d..22eee6e34c5f5b8fbd4faf0642b2078c95fa2e6c 100644
--- a/utils/tests/archive/reader_test.dart
+++ b/utils/tests/archive/reader_test.dart
@@ -57,7 +57,9 @@ main() {
var future = reader.openFilename("$dataPath/test-archive.tar.gz")
.chain((input) => input.readAll())
.transform((entries) {
- entries = entries.mappedBy((entry) => [entry.pathname, entry.contents.trim()]);
+ entries = entries
+ .mappedBy((entry) => [entry.pathname, entry.contents.trim()])
+ .toList();
expect(entries[0], orderedEquals(["filename1", "contents 1"]));
expect(entries[1], orderedEquals(["filename2", "contents 2"]));
expect(entries[2], orderedEquals(["filename3", "contents 3"]));

Powered by Google App Engine
This is Rietveld 408576698