| 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 2181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2192 } | 2192 } |
| 2193 | 2193 |
| 2194 static List<String> standardOptions(Map configuration) { | 2194 static List<String> standardOptions(Map configuration) { |
| 2195 List args = ["--ignore-unrecognized-flags"]; | 2195 List args = ["--ignore-unrecognized-flags"]; |
| 2196 if (configuration["checked"]) { | 2196 if (configuration["checked"]) { |
| 2197 args.add('--enable_asserts'); | 2197 args.add('--enable_asserts'); |
| 2198 args.add("--enable_type_checks"); | 2198 args.add("--enable_type_checks"); |
| 2199 } | 2199 } |
| 2200 String compiler = configuration["compiler"]; | 2200 String compiler = configuration["compiler"]; |
| 2201 if (compiler == "dart2js") { | 2201 if (compiler == "dart2js") { |
| 2202 args = []; | 2202 args = ['--generate-code-with-compile-time-errors', '--test-mode']; |
| 2203 if (configuration["checked"]) { | 2203 if (configuration["checked"]) { |
| 2204 args.add('--enable-checked-mode'); | 2204 args.add('--enable-checked-mode'); |
| 2205 } | 2205 } |
| 2206 // args.add("--verbose"); | 2206 // args.add("--verbose"); |
| 2207 if (!isBrowserRuntime(configuration['runtime'])) { | 2207 if (!isBrowserRuntime(configuration['runtime'])) { |
| 2208 args.add("--allow-mock-compilation"); | 2208 args.add("--allow-mock-compilation"); |
| 2209 args.add("--categories=all"); | 2209 args.add("--categories=all"); |
| 2210 } | 2210 } |
| 2211 } | 2211 } |
| 2212 if ((compiler == "dart2js") && | 2212 if ((compiler == "dart2js") && |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2392 for (var key in PATH_REPLACEMENTS.keys) { | 2392 for (var key in PATH_REPLACEMENTS.keys) { |
| 2393 if (path.startsWith(key)) { | 2393 if (path.startsWith(key)) { |
| 2394 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); | 2394 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); |
| 2395 break; | 2395 break; |
| 2396 } | 2396 } |
| 2397 } | 2397 } |
| 2398 } | 2398 } |
| 2399 return path; | 2399 return path; |
| 2400 } | 2400 } |
| 2401 } | 2401 } |
| OLD | NEW |