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

Unified Diff: pkg/serialization/test/serialization_test.dart

Issue 12041019: Remove List.filled constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove List.filled usage in serialization package. Created 7 years, 11 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 | « no previous file | runtime/lib/array_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/serialization/test/serialization_test.dart
diff --git a/pkg/serialization/test/serialization_test.dart b/pkg/serialization/test/serialization_test.dart
index 9279ffa384b1b4061eac3681335582d0a3005254..33247ae054f2fed18f45058853e3ab0584f3c949 100644
--- a/pkg/serialization/test/serialization_test.dart
+++ b/pkg/serialization/test/serialization_test.dart
@@ -515,7 +515,12 @@ Reader setUpReader(aSerialization, sampleData) {
var reader = new Reader(aSerialization);
// We're not sure which rule needs the sample data, so put it everywhere
// and trust that the extra will just be ignored.
- reader.data = new List.filled(10, [sampleData]);
+ var fillValue = [sampleData];
+ var data = [];
+ for (int i = 0; i < 10; i++) {
+ data.add(fillValue);
+ }
+ reader.data = data;
return reader;
}
@@ -648,4 +653,4 @@ class NodeRule extends CustomRule {
node.parent = state[0];
node.children = state[2];
}
-}
+}
« no previous file with comments | « no previous file | runtime/lib/array_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698