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

Unified Diff: tools/testing/dart/http_server.dart

Issue 282173004: test.dart: Handle checkout paths containing spaces. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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
« no previous file with comments | « tools/testing/dart/drt_updater.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/http_server.dart
===================================================================
--- tools/testing/dart/http_server.dart (revision 36288)
+++ tools/testing/dart/http_server.dart (working copy)
@@ -38,6 +38,8 @@
// Issue: 8368
main(List<String> arguments) {
+ // This script is in [dart]/tools/testing/dart.
+ TestUtils.setDartDirUri(Platform.script.resolve('../../..'));
/** Convenience method for local testing. */
var parser = new ArgParser();
parser.addOption('port', abbr: 'p',
@@ -60,14 +62,6 @@
if (args['help']) {
print(parser.getUsage());
} else {
- // Pretend we're running test.dart so that TestUtils doesn't get confused
- // about the "current directory." This is only used if we're trying to run
- // this file independently for local testing.
- TestUtils.testScriptPath = new Path(Platform.script.path)
- .directoryPath
- .join(new Path('../../test.dart'))
- .canonicalize()
- .toNativePath();
var servers = new TestingServers(new Path(args['build-directory']),
args['csp'],
args['runtime']);
« no previous file with comments | « tools/testing/dart/drt_updater.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698