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

Side by Side Diff: tests/isolate/src/TestFramework.dart

Issue 9422019: isolates refactor: this change introduces 'dart:isolate' as a library. This is a (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: review changes Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library("TestFramework"); 5 #library("TestFramework");
6 #import("dart:coreimpl"); 6 #import("dart:coreimpl");
7 #import("dart:isolate");
7 8
8 9
9 typedef void AsynchronousTestFunction(TestExpectation check); 10 typedef void AsynchronousTestFunction(TestExpectation check);
10 11
11 12
12 void runTests(List tests, [bool guarded = true]) { 13 void runTests(List tests, [bool guarded = true]) {
13 TestRunner runner = new TestRunner(new TestSuite(tests), guarded); 14 TestRunner runner = new TestRunner(new TestSuite(tests), guarded);
14 TestResult result = new TestResult(runner); 15 TestResult result = new TestResult(runner);
15 runner.run(result); 16 runner.run(result);
16 } 17 }
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 void performTest() { 266 void performTest() {
266 Expect.fail('performTest called in AsynchronousTestCase'); 267 Expect.fail('performTest called in AsynchronousTestCase');
267 } 268 }
268 269
269 AsynchronousTestFunction test; 270 AsynchronousTestFunction test;
270 271
271 static int running = 0; 272 static int running = 0;
272 static ReceivePort keepalive = null; 273 static ReceivePort keepalive = null;
273 274
274 } 275 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698