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

Unified Diff: tests/standalone/io/http_connection_close_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_connection_close_test.dart
diff --git a/tests/standalone/io/http_connection_close_test.dart b/tests/standalone/io/http_connection_close_test.dart
index e8f36091480986024dee67b11926d423feb2d1b8..a2a11c749e1acdecb8f53a6660c887eef0b16268 100644
--- a/tests/standalone/io/http_connection_close_test.dart
+++ b/tests/standalone/io/http_connection_close_test.dart
@@ -35,7 +35,7 @@ void testHttp11Close(bool closeRequest) {
Socket.connect("127.0.0.1", server.port)
.then((socket) {
- List<int> buffer = new List<int>.fixedLength(1024);
+ List<int> buffer = new List<int>(1024);
socket.addString("GET / HTTP/1.1\r\nConnection: close\r\n\r\n");
socket.listen(
(data) {},

Powered by Google App Engine
This is Rietveld 408576698