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

Unified Diff: tests/lib/crypto/sha1_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/lib/crypto/sha1_test.dart
diff --git a/tests/lib/crypto/sha1_test.dart b/tests/lib/crypto/sha1_test.dart
index b9e90697c15c2d01307038f07101bce316b0c529..d977230e9ff19c823fa1933f83d26e35749bc866 100644
--- a/tests/lib/crypto/sha1_test.dart
+++ b/tests/lib/crypto/sha1_test.dart
@@ -11,7 +11,7 @@ part 'sha1_long_test_vectors.dart';
part 'sha1_short_test_vectors.dart';
List<int> createTestArr(int len) {
- var arr = new List<int>.fixedLength(len);
+ var arr = new List<int>(len);
for (var i = 0; i < len; i++) {
arr[i] = i;
}

Powered by Google App Engine
This is Rietveld 408576698