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

Unified Diff: pkg/intl/test/start_web_server.dart

Issue 11035027: Add in-process http server to the dart test scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address more comments. Created 8 years, 2 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: pkg/intl/test/start_web_server.dart
diff --git a/pkg/intl/test/start_web_server.dart b/pkg/intl/test/start_web_server.dart
deleted file mode 100644
index 73b15165bbbb74dc392d4f98b05c5c55140a680a..0000000000000000000000000000000000000000
--- a/pkg/intl/test/start_web_server.dart
+++ /dev/null
@@ -1,26 +0,0 @@
-// 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.
-
-/**
- * This file starts a trivial HTTP server to serve locale data files. We start
- * it as a separate process, then terminate so that the test can continue to
- * run. See web_server.dart for more information.
- */
-
-#import("dart:io");
-#import("dart:isolate");
-
-main() {
- var thisDir = new File(new Options().script).directorySync();
- var serverPath = "${thisDir.path}/web_server.dart";
- // TODO(alanknight): This uses nohup and & to stop the child process from
- // stopping when we exit. This won't work on Windows.
- var p = Process.start(
- "nohup",
- [new Options().executable, serverPath, "&"]);
- p.onExit = (p) => print("Exited abnormally with exit code: $p");
- // Give the other process a moment to fully start, and give us a meaningful
- // exit code if there's an abnormal exit, before we finish.
- new Timer(1000, (t) => exit(0));
-}

Powered by Google App Engine
This is Rietveld 408576698