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