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]; |
} |
-} |
+} |