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

Unified Diff: tests/lib/crypto/sha256_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/sha256_test.dart
diff --git a/tests/lib/crypto/sha256_test.dart b/tests/lib/crypto/sha256_test.dart
index 62a8dc942d5f13a2d0b97792cdfa551801d870c5..767812a226bb36f5d812c55ac39faa6604cfd261 100644
--- a/tests/lib/crypto/sha256_test.dart
+++ b/tests/lib/crypto/sha256_test.dart
@@ -11,7 +11,7 @@ part 'sha256_long_test_vectors.dart';
part 'sha256_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