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

Unified Diff: tests/compiler/dart2js/quarantined/http_test.dart

Issue 2238073005: Fix http test (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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/compiler/dart2js/quarantined/http_test.dart
diff --git a/tests/compiler/dart2js/quarantined/http_test.dart b/tests/compiler/dart2js/quarantined/http_test.dart
index cdb1348ff9e45a69f94ae1dcde22268840dc1ac8..328cea36a7476eef0287783188333a811dde8e11 100644
--- a/tests/compiler/dart2js/quarantined/http_test.dart
+++ b/tests/compiler/dart2js/quarantined/http_test.dart
@@ -15,7 +15,9 @@ import 'package:async_helper/async_helper.dart';
import 'package:expect/expect.dart';
import 'package:path/path.dart' as path;
-Uri pathOfData = Platform.script.resolve('../http_launch_data/');
+import '../launch_helper.dart' show launchDart2Js;
+
+Uri pathOfData = Platform.script.resolve('http_launch_data/');
Directory tempDir;
String outFilePath;
@@ -39,14 +41,6 @@ Future handleRequest(HttpRequest request) {
});
}
-Future launchDart2Js(args) {
- String ext = Platform.isWindows ? '.bat' : '';
- String command =
- path.normalize(path.join(path.fromUri(Platform.script),
- '../../../../../sdk/bin/dart2js${ext}'));
- return Process.run(command, args);
-}
-
void check(ProcessResult result) {
Expect.equals(0, result.exitCode);
File outFile = new File(outFilePath);
« no previous file with comments | « tests/compiler/dart2js/quarantined/http_launch_data/pkcert/key4.db ('k') | tests/compiler/dart2js/zero_termination_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698