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

Unified Diff: tests/isolate/cross_isolate_message_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/count_test.dart ('k') | tests/isolate/illegal_msg_function_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/cross_isolate_message_test.dart
diff --git a/tests/isolate/cross_isolate_message_test.dart b/tests/isolate/cross_isolate_message_test.dart
index 00874d09e97a4f6e232bdb7dd641ac8f056ed77a..56181c82d86acd0cd31ece073e70e0b109d2c130 100644
--- a/tests/isolate/cross_isolate_message_test.dart
+++ b/tests/isolate/cross_isolate_message_test.dart
@@ -7,7 +7,8 @@
library CrossIsolateMessageTest;
import 'dart:isolate';
-import '../../pkg/unittest/lib/unittest.dart';
+import 'package:unittest/unittest.dart';
+import "remote_unittest_helper.dart";
/*
* Everything starts in the main-isolate (in the main-method).
@@ -34,7 +35,8 @@ void crossIsolate2(SendPort toIsolate1) {
toIsolate1.send(["fromIsolate2", 42]);
}
-main() {
+void main([args, port]) {
+ if (testRemote(main, port)) return;
test("send message cross isolates ", () {
ReceivePort fromIsolate1 = new ReceivePort();
Isolate.spawn(crossIsolate1, fromIsolate1.sendPort);
« no previous file with comments | « tests/isolate/count_test.dart ('k') | tests/isolate/illegal_msg_function_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698