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

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, 6 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/http_launch_data/http_spawn_main.dart b/tests/standalone/http_launch_data/http_spawn_main.dart
new file mode 100644
index 0000000000000000000000000000000000000000..dadc38558c8fb56cddaa76867e2bc3933e89223d
--- /dev/null
+++ b/tests/standalone/http_launch_data/http_spawn_main.dart
@@ -0,0 +1,18 @@
+// Copyright (c) 2013, 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 http_lanuch_main;
+
+import 'dart:isolate';
+import 'dart:io';
+
+main() {
+ 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);
+ });
+}
+
« no previous file with comments | « tests/standalone/http_launch_data/http_launch_main.dart ('k') | tests/standalone/http_launch_data/packages/simple/simple.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698