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

Unified Diff: tests/lib/async/slow_sink_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 | « tests/language/type_vm_test.dart ('k') | tests/standalone/io/file_invalid_arguments_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/slow_sink_test.dart
diff --git a/tests/lib/async/slow_sink_test.dart b/tests/lib/async/slow_sink_test.dart
index a428b815efa49ad01486119d2ac90ab2454e210a..50c7cb236494940c65c624f2f9cf57479935b100 100644
--- a/tests/lib/async/slow_sink_test.dart
+++ b/tests/lib/async/slow_sink_test.dart
@@ -42,7 +42,7 @@ class DataProvider extends StreamController {
bool run = true;
send() {
if (!run) return;
- var wait = add(new List(bytesPerSecond * ms ~/ 1000));
+ var wait = add(new List.fixedLength(bytesPerSecond * ms ~/ 1000));
if (wait != null) {
wait.then(() {
new Timer(ms, (_) => send());
« no previous file with comments | « tests/language/type_vm_test.dart ('k') | tests/standalone/io/file_invalid_arguments_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698