OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 // VMOptions= | 4 // VMOptions= |
5 // VMOptions=--short_socket_read | 5 // VMOptions=--short_socket_read |
6 // VMOptions=--short_socket_write | 6 // VMOptions=--short_socket_write |
7 // VMOptions=--short_socket_read --short_socket_write | 7 // VMOptions=--short_socket_read --short_socket_write |
| 8 // OtherResources=http_launch_data/http_isolate_main.dart |
| 9 // OtherResources=http_launch_data/http_launch_main.dart |
| 10 // OtherResources=http_launch_data/http_spawn_main.dart |
| 11 // OtherResources=http_launch_data/packages/simple/simple.dart |
8 // | 12 // |
9 // Test: | 13 // Test: |
10 // *) Launching a script fetched over HTTP. | 14 // *) Launching a script fetched over HTTP. |
11 // *) Importing a library fetched over HTTP. | 15 // *) Importing a library fetched over HTTP. |
12 // *) Automatically resolving package_root when script is fetched over HTTP. | 16 // *) Automatically resolving package_root when script is fetched over HTTP. |
13 // *) Spawning a URI over HTTP. | 17 // *) Spawning a URI over HTTP. |
14 | 18 |
15 library http_launch_test; | 19 library http_launch_test; |
16 | 20 |
17 import 'dart:async'; | 21 import 'dart:async'; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 Expect.isTrue(stdout.startsWith('hello')); | 93 Expect.isTrue(stdout.startsWith('hello')); |
90 // Same output from all three process runs. | 94 // Same output from all three process runs. |
91 for (int i = 0; i < results.length; i++) { | 95 for (int i = 0; i < results.length; i++) { |
92 Expect.equals(stdout, results[i].stdout); | 96 Expect.equals(stdout, results[i].stdout); |
93 } | 97 } |
94 } | 98 } |
95 | 99 |
96 main() { | 100 main() { |
97 HttpServer.bind(InternetAddress.LOOPBACK_IP_V4, 0).then(serverRunning); | 101 HttpServer.bind(InternetAddress.LOOPBACK_IP_V4, 0).then(serverRunning); |
98 } | 102 } |
OLD | NEW |