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

Unified Diff: tests/html/native_gc_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
« no previous file with comments | « tests/html/localstorage_test.dart ('k') | tests/html/node_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/native_gc_test.dart
diff --git a/tests/html/native_gc_test.dart b/tests/html/native_gc_test.dart
index fe27e0bb3c7d48e4f2305b5cdb47725cf8b6d891..87251be4c19fb67c1b42520f40c73e6dac73cd8e 100644
--- a/tests/html/native_gc_test.dart
+++ b/tests/html/native_gc_test.dart
@@ -14,7 +14,7 @@ main() {
for (int i = 0; i < M; ++i) {
// This memory should be freed when the listener below is
// collected.
- List l = new List(N);
+ List l = new List.fixedLength(N);
// Record the iteration number.
l[N - 1] = i;
@@ -47,7 +47,7 @@ main() {
}
void triggerMajorGC() {
- List list = new List(1000000);
+ List list = new List.fixedLength(1000000);
Element div = new DivElement();
div.on.click.add((e) => print(list[0]));
}
« no previous file with comments | « tests/html/localstorage_test.dart ('k') | tests/html/node_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698