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

Unified Diff: tests/isolate/static_function_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/stacktrace_message_test.dart ('k') | tests/isolate/unresolved_ports_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/static_function_test.dart
diff --git a/tests/isolate/static_function_test.dart b/tests/isolate/static_function_test.dart
index d5745cc8d3edb49ebfbeb3b298f050528dab5333..db0beba16763cff1abccfd1b02a09e9430685042 100644
--- a/tests/isolate/static_function_test.dart
+++ b/tests/isolate/static_function_test.dart
@@ -8,7 +8,8 @@ library static_function_test;
import 'dart:isolate';
import 'dart:async';
import 'static_function_lib.dart' as lib;
-import '../../pkg/unittest/lib/unittest.dart';
+import 'package:unittest/unittest.dart';
+import 'remote_unittest_helper.dart';
void function(SendPort port) { port.send("TOP"); }
void _function(SendPort port) { port.send("_TOP"); }
@@ -75,7 +76,8 @@ void throwsTest(name, function) {
});
}
-void main() {
+void main([args, port]) {
+ if (testRemote(main, port)) return;
// Sanity check.
spawnTest("function", function, "TOP");
spawnTest("_function", _function, "_TOP");
« no previous file with comments | « tests/isolate/stacktrace_message_test.dart ('k') | tests/isolate/unresolved_ports_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698