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

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

Issue 11312122: Change List constructors. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload. Adapt code for List.fixedLength. Created 8 years 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/standalone/io/file_test.dart ('k') | tests/standalone/io/regress-1925.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_read_test.dart
diff --git a/tests/standalone/io/http_read_test.dart b/tests/standalone/io/http_read_test.dart
index 15e2606659602e785e4e2469a56bf6bea3ef9a15..b26e8651c35bd282002fb8b772654b393b4cffa4 100644
--- a/tests/standalone/io/http_read_test.dart
+++ b/tests/standalone/io/http_read_test.dart
@@ -182,7 +182,7 @@ void testReadInto(bool chunkedEncoding) {
InputStream stream = response.inputStream;
List<int> body = new List<int>();
stream.onData = () {
- List tmp = new List(3);
+ List tmp = new List.fixedLength(3);
int bytes = stream.readInto(tmp);
body.addAll(tmp.getRange(0, bytes));
};
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tests/standalone/io/regress-1925.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698