| 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 2262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2273 } | 2273 } |
| 2274 if ((compiler == "dart2js") && configuration["minified"]) { | 2274 if ((compiler == "dart2js") && configuration["minified"]) { |
| 2275 args.add("--minify"); | 2275 args.add("--minify"); |
| 2276 } | 2276 } |
| 2277 if (compiler == "dart2js" && configuration["csp"]) { | 2277 if (compiler == "dart2js" && configuration["csp"]) { |
| 2278 args.add("--csp"); | 2278 args.add("--csp"); |
| 2279 } | 2279 } |
| 2280 if (compiler == "dart2js" && configuration["cps_ir"]) { | 2280 if (compiler == "dart2js" && configuration["cps_ir"]) { |
| 2281 args.add("--use-cps-ir"); | 2281 args.add("--use-cps-ir"); |
| 2282 } | 2282 } |
| 2283 if (compiler == "dart2js" && configuration["fast_startup"]) { |
| 2284 args.add("--fast-startup"); |
| 2285 } |
| 2283 if (compiler == "dart2analyzer") { | 2286 if (compiler == "dart2analyzer") { |
| 2284 args.add("--show-package-warnings"); | 2287 args.add("--show-package-warnings"); |
| 2285 args.add("--enable-async"); | 2288 args.add("--enable-async"); |
| 2286 } | 2289 } |
| 2287 return args; | 2290 return args; |
| 2288 } | 2291 } |
| 2289 | 2292 |
| 2290 static bool isBrowserRuntime(String runtime) { | 2293 static bool isBrowserRuntime(String runtime) { |
| 2291 const BROWSERS = const [ | 2294 const BROWSERS = const [ |
| 2292 'drt', | 2295 'drt', |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2472 } | 2475 } |
| 2473 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { | 2476 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { |
| 2474 ++shortNameCounter; | 2477 ++shortNameCounter; |
| 2475 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); | 2478 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); |
| 2476 path = "short${shortNameCounter}_$pathEnd"; | 2479 path = "short${shortNameCounter}_$pathEnd"; |
| 2477 } | 2480 } |
| 2478 } | 2481 } |
| 2479 return path; | 2482 return path; |
| 2480 } | 2483 } |
| 2481 } | 2484 } |
| OLD | NEW |