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

Unified Diff: tests/isolate/browser/typed_data_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: Close the receivePort if we fail spawning. 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
Index: tests/isolate/browser/typed_data_message_test.dart
diff --git a/tests/isolate/browser/typed_data_message_test.dart b/tests/isolate/browser/typed_data_message_test.dart
index 9432290ff029422fbe04e09b834392ebed2b1507..61954b952f2ef55272e0420732305a1b6277f995 100644
--- a/tests/isolate/browser/typed_data_message_test.dart
+++ b/tests/isolate/browser/typed_data_message_test.dart
@@ -9,6 +9,7 @@ library TypedDataMessageTest;
import 'dart:isolate';
import 'dart:typed_data';
import 'package:unittest/unittest.dart';
+import "../remote_unittest_helper.dart";
// ---------------------------------------------------------------------------
// Message passing test.
@@ -86,7 +87,8 @@ Future sendReceive(SendPort port, msg) {
return response.first;
}
-main() {
+void main([args, port]) {
+ if (testRemote(main, port)) return;
initializeList();
test("send objects and receive them back", () {
ReceivePort response = new ReceivePort();

Powered by Google App Engine
This is Rietveld 408576698