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

Unified Diff: tests/standalone/http_launch_data/http_spawn_main.dart

Issue 16092007: HTTP loading tests and package root support (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: tests/standalone/http_launch_data/http_spawn_main.dart
diff --git a/tests/standalone/package/sibling_isolate.dart b/tests/standalone/http_launch_data/http_spawn_main.dart
similarity index 51%
copy from tests/standalone/package/sibling_isolate.dart
copy to tests/standalone/http_launch_data/http_spawn_main.dart
index 14b400dc90034442c9741afbe0161b70ba32b8d4..c91a193c12b3dcb896d758630739b9c4e13abffb 100644
--- a/tests/standalone/package/sibling_isolate.dart
+++ b/tests/standalone/http_launch_data/http_spawn_main.dart
@@ -1,17 +1,17 @@
-
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library sibling_isolate;
+library http_lanuch_main;
-import 'package:shared.dart'as shared;
import 'dart:isolate';
+import 'dart:io';
-// This file is spawned from package_isolate_test.dart
main() {
- shared.output = 'isolate';
- port.receive((msg, replyTo) {
- replyTo.send(shared.output);
+ int port = int.parse(new Options().arguments[0]);
+ SendPort spawnedPort = spawnUri('http://127.0.0.1:$port/http_isolate_main.dart');
+ spawnedPort.call('hello').then((response) {
+ print(response);
});
}
+

Powered by Google App Engine
This is Rietveld 408576698