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

Unified Diff: tests/isolate/mandel_isolate_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/isolate/isolate.status ('k') | tests/isolate/message_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/mandel_isolate_test.dart
diff --git a/tests/isolate/mandel_isolate_test.dart b/tests/isolate/mandel_isolate_test.dart
index 7074ee731526389ed4fd91b2698504e925d0696e..292d6d63f4e4ecdcc0184ed8361f8db1f55411f6 100644
--- a/tests/isolate/mandel_isolate_test.dart
+++ b/tests/isolate/mandel_isolate_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
library MandelIsolateTest;
+import 'dart:async';
import 'dart:isolate';
import 'dart:math';
import '../../pkg/unittest/lib/unittest.dart';
@@ -26,7 +27,7 @@ class MandelbrotState {
MandelbrotState() {
_result = new List<List<int>>(N);
- _lineProcessedBy = new List<LineProcessorClient>(N);
+ _lineProcessedBy = new List<LineProcessorClient>.fixedLength(N);
_sent = 0;
_missing = N;
_validated = new Completer<bool>();
@@ -106,7 +107,7 @@ class LineProcessorClient {
List<int> processLine(int y) {
double inverseN = 2.0 / N;
double Civ = y * inverseN - 1.0;
- List<int> result = new List<int>(N);
+ List<int> result = new List<int>.fixedLength(N);
for (int x = 0; x < N; x++) {
double Crv = x * inverseN - 1.5;
« no previous file with comments | « tests/isolate/isolate.status ('k') | tests/isolate/message_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698