| 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 2204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2215 args.add("--categories=all"); | 2215 args.add("--categories=all"); |
| 2216 } | 2216 } |
| 2217 } | 2217 } |
| 2218 if ((compiler == "dart2js" || compiler == "dart2dart") && | 2218 if ((compiler == "dart2js" || compiler == "dart2dart") && |
| 2219 configuration["minified"]) { | 2219 configuration["minified"]) { |
| 2220 args.add("--minify"); | 2220 args.add("--minify"); |
| 2221 } | 2221 } |
| 2222 if (compiler == "dart2js" && configuration["csp"]) { | 2222 if (compiler == "dart2js" && configuration["csp"]) { |
| 2223 args.add("--csp"); | 2223 args.add("--csp"); |
| 2224 } | 2224 } |
| 2225 if (compiler == "dart2js" && configuration["cps_ir"]) { |
| 2226 args.add("--use-cps-ir"); |
| 2227 } |
| 2225 if (compiler == "dartanalyzer" || compiler == "dart2analyzer") { | 2228 if (compiler == "dartanalyzer" || compiler == "dart2analyzer") { |
| 2226 args.add("--show-package-warnings"); | 2229 args.add("--show-package-warnings"); |
| 2227 args.add("--enable-async"); | 2230 args.add("--enable-async"); |
| 2228 } | 2231 } |
| 2229 return args; | 2232 return args; |
| 2230 } | 2233 } |
| 2231 | 2234 |
| 2232 static bool isBrowserRuntime(String runtime) { | 2235 static bool isBrowserRuntime(String runtime) { |
| 2233 const BROWSERS = const [ | 2236 const BROWSERS = const [ |
| 2234 'drt', | 2237 'drt', |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2395 for (var key in PATH_REPLACEMENTS.keys) { | 2398 for (var key in PATH_REPLACEMENTS.keys) { |
| 2396 if (path.startsWith(key)) { | 2399 if (path.startsWith(key)) { |
| 2397 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); | 2400 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); |
| 2398 break; | 2401 break; |
| 2399 } | 2402 } |
| 2400 } | 2403 } |
| 2401 } | 2404 } |
| 2402 return path; | 2405 return path; |
| 2403 } | 2406 } |
| 2404 } | 2407 } |
| OLD | NEW |