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

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

Issue 11929022: Small bugfix in test_suite.dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_suite.dart
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart
index 2b3075f339034999ce80828266c2601b91e950c1..e7145babd6b1a262fb6600a592f922ff539fb208 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -971,8 +971,16 @@ class StandardTestSuite extends TestSuite {
htmlPath.substring(basePath.length) : htmlPath;
String fullHtmlPath = htmlPath;
if (!htmlPath.startsWith('http')) {
- fullHtmlPath = 'http://127.0.0.1:${serverList[0].port}$htmlPath?'
- 'crossOriginPort=${serverList[1].port}';
+ // Note: If we run test.py with the "--list" option, no http servers
+ // will be started.
+ var serverPort = "PORT";
ahe 2013/01/25 12:40:23 It is kinda hard to understand how this works. Cou
kustermann 2013/01/28 11:20:54 This doesn't prevent servers from starting. In too
+ var crossOriginPort = "CROSS_ORIGIN_PORT";
+ if (!configuration['list']) {
+ serverPort = serverList[0].port;
ricow1 2013/01/24 14:06:14 this is probably slightly messing up types, what a
kustermann 2013/01/28 11:20:54 Done.
+ crossOriginPort = serverList[1].port;
+ }
+ fullHtmlPath = 'http://127.0.0.1:$serverPort$htmlPath?'
+ 'crossOriginPort=$crossOriginPort';
}
if (info.optionsFromFile['isMultiHtmlTest']
&& subtestNames.length > 0) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698