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

Unified Diff: tests/compiler/dart2js/value_range_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 | « sdk/lib/isolate/mangler.dart ('k') | tests/compiler/dart2js_extra/invalid_length_negative_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/value_range_test.dart
diff --git a/tests/compiler/dart2js/value_range_test.dart b/tests/compiler/dart2js/value_range_test.dart
index 485fe5e28b5cf1ccb61745c6beda7933fcc7492a..0a4799b8f53fa6de88b566346e68509c0b47d545 100644
--- a/tests/compiler/dart2js/value_range_test.dart
+++ b/tests/compiler/dart2js/value_range_test.dart
@@ -40,7 +40,7 @@ ABOVE_ZERO,
main(check) {
// Make sure value is an int.
var value = check ? 42 : 54;
- var a = new List(value);
+ var a = new List.fixedLength(value);
var sum = 0;
for (int i = 0; i < value; i++) {
sum += a[i];
@@ -68,7 +68,7 @@ REMOVED, // TODO(6829): Put it back to KEPT
"""
main() {
- var a = new List(4);
+ var a = new List.fixedLength(4);
return a[0];
}
""",
@@ -76,7 +76,7 @@ REMOVED,
"""
main() {
- var a = new List(4);
+ var a = new List.fixedLength(4);
return a.removeLast();
}
""",
@@ -84,7 +84,7 @@ REMOVED,
"""
main(value) {
- var a = new List(value);
+ var a = new List.fixedLength(value);
return a[value];
}
""",
@@ -92,7 +92,7 @@ KEPT,
"""
main(value) {
- var a = new List(1024);
+ var a = new List.fixedLength(1024);
return a[1023 & value];
}
""",
@@ -100,7 +100,7 @@ REMOVED,
"""
main(value) {
- var a = new List(1024);
+ var a = new List.fixedLength(1024);
return a[1024 & value];
}
""",
« no previous file with comments | « sdk/lib/isolate/mangler.dart ('k') | tests/compiler/dart2js_extra/invalid_length_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698