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

Unified Diff: tests/isolate/count_test.dart

Issue 70103014: Make isolate tests work on drt (and hopefully dartium). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Retain isolate_stress_test in status file Created 7 years, 1 month 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/browser/typed_data_message_test.dart ('k') | tests/isolate/cross_isolate_message_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/count_test.dart
diff --git a/tests/isolate/count_test.dart b/tests/isolate/count_test.dart
index c0cbde3eda001662dcabfd8e498713b0598c534e..881ac6bbd30fac8631d4f3d661519be0ee600fbc 100644
--- a/tests/isolate/count_test.dart
+++ b/tests/isolate/count_test.dart
@@ -3,8 +3,9 @@
// BSD-style license that can be found in the LICENSE file.
library CountTest;
-import '../../pkg/unittest/lib/unittest.dart';
import 'dart:isolate';
+import 'package:unittest/unittest.dart';
+import "remote_unittest_helper.dart";
void countMessages(replyTo) {
int count = 0;
@@ -23,7 +24,8 @@ void countMessages(replyTo) {
});
}
-void main() {
+void main([args, port]) {
+ if (testRemote(main, port)) return;
test("count 10 consecutive messages", () {
ReceivePort local = new ReceivePort();
Isolate.spawn(countMessages, local.sendPort);
« no previous file with comments | « tests/isolate/browser/typed_data_message_test.dart ('k') | tests/isolate/cross_isolate_message_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698