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

Unified Diff: tests/standalone/io/stream_pipe_test.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 years, 10 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
Index: tests/standalone/io/stream_pipe_test.dart
diff --git a/tests/standalone/io/stream_pipe_test.dart b/tests/standalone/io/stream_pipe_test.dart
index f663e81d9035aeafe1525c9711e4ae5846a57324..46590fa348178412e7db304f56108e394072b2ae 100644
--- a/tests/standalone/io/stream_pipe_test.dart
+++ b/tests/standalone/io/stream_pipe_test.dart
@@ -34,8 +34,8 @@ bool compareFileContent(String fileName1,
}
}
if (count == null) count = length1;
- var data1 = new List<int>.fixedLength(count);
- var data2 = new List<int>.fixedLength(count);
+ var data1 = new List<int>(count);
+ var data2 = new List<int>(count);
if (file1Offset != 0) file1.setPositionSync(file1Offset);
if (file2Offset != 0) file2.setPositionSync(file2Offset);
var read1 = file1.readListSync(data1, 0, count);
@@ -112,7 +112,7 @@ testFileToFilePipe2() {
dstFileName,
count: srcLength));
dst.setPositionSync(srcLength);
- var data = new List<int>.fixedLength(1);
+ var data = new List<int>(1);
var read2 = dst.readListSync(data, 0, 1);
Expect.equals(32, data[0]);
src.closeSync();

Powered by Google App Engine
This is Rietveld 408576698