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

Unified Diff: tests/standalone/io/http_head_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/http_head_test.dart
diff --git a/tests/standalone/io/http_head_test.dart b/tests/standalone/io/http_head_test.dart
index 215872ce5418620628c3a647577196c1f0b6eaf3..9325ceb553814ad0c80f8e5bb97ad8585281cbf5 100644
--- a/tests/standalone/io/http_head_test.dart
+++ b/tests/standalone/io/http_head_test.dart
@@ -13,7 +13,7 @@ void testHEAD(int totalConnections) {
response.close();
} else if (request.uri.path == "/test200") {
response.contentLength = 200;
- List<int> data = new List<int>.fixedLength(200, fill: 0);
+ List<int> data = new List<int>.filled(200, 0);
response.add(data);
response.close();
} else {

Powered by Google App Engine
This is Rietveld 408576698