| OLD | NEW |
| 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 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1103 runtime, fullHtmlPath, TestUtils.dartTestExecutable.toString(), | 1103 runtime, fullHtmlPath, TestUtils.dartTestExecutable.toString(), |
| 1104 args, configurationDir, checkedMode: configuration['checked'])); | 1104 args, configurationDir, checkedMode: configuration['checked'])); |
| 1105 } else if (TestUtils.usesWebDriver(runtime)) { | 1105 } else if (TestUtils.usesWebDriver(runtime)) { |
| 1106 args = [ | 1106 args = [ |
| 1107 dartDir.append('tools/testing/run_selenium.py').toNativePath(), | 1107 dartDir.append('tools/testing/run_selenium.py').toNativePath(), |
| 1108 '--browser=$runtime', | 1108 '--browser=$runtime', |
| 1109 // NOTE: This value will be overridden by the test runner | 1109 // NOTE: This value will be overridden by the test runner |
| 1110 '--timeout=${configuration['timeout']}', | 1110 '--timeout=${configuration['timeout']}', |
| 1111 '--out=$fullHtmlPath']; | 1111 '--out=$fullHtmlPath']; |
| 1112 if (runtime == 'dartium') { | 1112 if (runtime == 'dartium') { |
| 1113 var dartiumLocation = Locations.getDartiumLocation(configuration); | 1113 var dartiumLocation = |
| 1114 Locations.getBrowserLocation('dartium', configuration); |
| 1114 args.add('--executable=$dartiumLocation'); | 1115 args.add('--executable=$dartiumLocation'); |
| 1115 } | 1116 } |
| 1116 if (subtestIndex != 0) { | 1117 if (subtestIndex != 0) { |
| 1117 args.add('--force-refresh'); | 1118 args.add('--force-refresh'); |
| 1118 } | 1119 } |
| 1119 commandSet.add(CommandBuilder.instance.getSeleniumTestCommand( | 1120 commandSet.add(CommandBuilder.instance.getSeleniumTestCommand( |
| 1120 runtime, fullHtmlPath, 'python', args, configurationDir)); | 1121 runtime, fullHtmlPath, 'python', args, configurationDir)); |
| 1121 } else { | 1122 } else { |
| 1122 assert(runtime == "drt"); | 1123 assert(runtime == "drt"); |
| 1123 | 1124 |
| (...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2061 * $pass tests are expected to pass | 2062 * $pass tests are expected to pass |
| 2062 * $failOk tests are expected to fail that we won't fix | 2063 * $failOk tests are expected to fail that we won't fix |
| 2063 * $fail tests are expected to fail that we should fix | 2064 * $fail tests are expected to fail that we should fix |
| 2064 * $crash tests are expected to crash that we should fix | 2065 * $crash tests are expected to crash that we should fix |
| 2065 * $timeout tests are allowed to timeout | 2066 * $timeout tests are allowed to timeout |
| 2066 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 2067 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 2067 """; | 2068 """; |
| 2068 print(report); | 2069 print(report); |
| 2069 } | 2070 } |
| 2070 } | 2071 } |
| OLD | NEW |