| 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);
|
| });
|
| }
|
| +
|
|
|