Chromium Code Reviews| Index: tools/testing/dart/test_suite.dart |
| diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart |
| index 96299ae2c4c79e8654738c9b67b2a981cfe96f74..790a96f18692306f954e33c86bb0088f143c1be5 100644 |
| --- a/tools/testing/dart/test_suite.dart |
| +++ b/tools/testing/dart/test_suite.dart |
| @@ -971,8 +971,12 @@ 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. Therefore we need the following condition. |
| + if (serverList.length >= 2) { |
|
ricow1
2013/01/23 14:40:32
why not just check if we passed the list flag?
|
| + fullHtmlPath = 'http://127.0.0.1:${serverList[0].port}$htmlPath?' |
| + 'crossOriginPort=${serverList[1].port}'; |
| + } |
| } |
| if (info.optionsFromFile['isMultiHtmlTest'] |
| && subtestNames.length > 0) { |