| 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 2010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2021 } | 2021 } |
| 2022 if (compiler == "dart2js" && configuration["csp"]) { | 2022 if (compiler == "dart2js" && configuration["csp"]) { |
| 2023 args.add("--csp"); | 2023 args.add("--csp"); |
| 2024 } | 2024 } |
| 2025 if (compiler == "dart2js" && configuration["cps_ir"]) { | 2025 if (compiler == "dart2js" && configuration["cps_ir"]) { |
| 2026 args.add("--use-cps-ir"); | 2026 args.add("--use-cps-ir"); |
| 2027 } | 2027 } |
| 2028 if (compiler == "dart2js" && configuration["fast_startup"]) { | 2028 if (compiler == "dart2js" && configuration["fast_startup"]) { |
| 2029 args.add("--fast-startup"); | 2029 args.add("--fast-startup"); |
| 2030 } | 2030 } |
| 2031 if ((compiler == "dart2js" || compiler == "none") && |
| 2032 configuration["enable_asserts"]) { |
| 2033 args.add("--enable-asserts"); |
| 2034 } |
| 2031 if (compiler == "dart2js" && configuration["dart2js_with_kernel"]) { | 2035 if (compiler == "dart2js" && configuration["dart2js_with_kernel"]) { |
| 2032 args.add("--use-kernel"); | 2036 args.add("--use-kernel"); |
| 2033 } | 2037 } |
| 2034 return args; | 2038 return args; |
| 2035 } | 2039 } |
| 2036 | 2040 |
| 2037 static bool isBrowserRuntime(String runtime) { | 2041 static bool isBrowserRuntime(String runtime) { |
| 2038 const BROWSERS = const [ | 2042 const BROWSERS = const [ |
| 2039 'drt', | 2043 'drt', |
| 2040 'dartium', | 2044 'dartium', |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2220 } | 2224 } |
| 2221 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { | 2225 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { |
| 2222 ++shortNameCounter; | 2226 ++shortNameCounter; |
| 2223 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); | 2227 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); |
| 2224 path = "short${shortNameCounter}_$pathEnd"; | 2228 path = "short${shortNameCounter}_$pathEnd"; |
| 2225 } | 2229 } |
| 2226 } | 2230 } |
| 2227 return path; | 2231 return path; |
| 2228 } | 2232 } |
| 2229 } | 2233 } |
| OLD | NEW |