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

Side by Side 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, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Classes and methods for enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 964
965 List<String> args = <String>[]; 965 List<String> args = <String>[];
966 var basePath = TestUtils.dartDir().toString(); 966 var basePath = TestUtils.dartDir().toString();
967 if (!htmlPath.startsWith('/') && !htmlPath.startsWith('http')) { 967 if (!htmlPath.startsWith('/') && !htmlPath.startsWith('http')) {
968 htmlPath = '/$htmlPath'; 968 htmlPath = '/$htmlPath';
969 } 969 }
970 htmlPath = htmlPath.startsWith(basePath) ? 970 htmlPath = htmlPath.startsWith(basePath) ?
971 htmlPath.substring(basePath.length) : htmlPath; 971 htmlPath.substring(basePath.length) : htmlPath;
972 String fullHtmlPath = htmlPath; 972 String fullHtmlPath = htmlPath;
973 if (!htmlPath.startsWith('http')) { 973 if (!htmlPath.startsWith('http')) {
974 fullHtmlPath = 'http://127.0.0.1:${serverList[0].port}$htmlPath?' 974 // Note: If we run test.py with the "--list" option, no http servers
975 'crossOriginPort=${serverList[1].port}'; 975 // will be started. Therefore serverList is an empty list in this
976 // case. So we use PORT/CROSS_ORIGIN_PORT instead of real ports.
977 var serverPort = "PORT";
978 var crossOriginPort = "CROSS_ORIGIN_PORT";
979 if (!configuration['list']) {
980 serverPort = serverList[0].port.toString();
981 crossOriginPort = serverList[1].port.toString();
982 }
983 fullHtmlPath = 'http://127.0.0.1:$serverPort$htmlPath?'
984 'crossOriginPort=$crossOriginPort';
976 } 985 }
977 if (info.optionsFromFile['isMultiHtmlTest'] 986 if (info.optionsFromFile['isMultiHtmlTest']
978 && subtestNames.length > 0) { 987 && subtestNames.length > 0) {
979 fullHtmlPath = '${fullHtmlPath}#${subtestNames[subtestIndex]}'; 988 fullHtmlPath = '${fullHtmlPath}#${subtestNames[subtestIndex]}';
980 } 989 }
981 990
982 if (TestUtils.usesWebDriver(runtime)) { 991 if (TestUtils.usesWebDriver(runtime)) {
983 args = [ 992 args = [
984 dartDir.append('tools/testing/run_selenium.py').toNativePath(), 993 dartDir.append('tools/testing/run_selenium.py').toNativePath(),
985 '--browser=$runtime', 994 '--browser=$runtime',
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
1897 * $pass tests are expected to pass 1906 * $pass tests are expected to pass
1898 * $failOk tests are expected to fail that we won't fix 1907 * $failOk tests are expected to fail that we won't fix
1899 * $fail tests are expected to fail that we should fix 1908 * $fail tests are expected to fail that we should fix
1900 * $crash tests are expected to crash that we should fix 1909 * $crash tests are expected to crash that we should fix
1901 * $timeout tests are allowed to timeout 1910 * $timeout tests are allowed to timeout
1902 * $compileErrorSkip tests are skipped on browsers due to compile-time error 1911 * $compileErrorSkip tests are skipped on browsers due to compile-time error
1903 """; 1912 """;
1904 print(report); 1913 print(report);
1905 } 1914 }
1906 } 1915 }
OLDNEW
« 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