| 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 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2034 args.add("--allow-mock-compilation"); | 2034 args.add("--allow-mock-compilation"); |
| 2035 args.add("--categories=all"); | 2035 args.add("--categories=all"); |
| 2036 } | 2036 } |
| 2037 } | 2037 } |
| 2038 if ((compiler == "dart2js" || compiler == "dart2dart") && | 2038 if ((compiler == "dart2js" || compiler == "dart2dart") && |
| 2039 configuration["minified"]) { | 2039 configuration["minified"]) { |
| 2040 args.add("--minify"); | 2040 args.add("--minify"); |
| 2041 } | 2041 } |
| 2042 if (compiler == "dartanalyzer" || compiler == "dart2analyzer") { | 2042 if (compiler == "dartanalyzer" || compiler == "dart2analyzer") { |
| 2043 args.add("--show-package-warnings"); | 2043 args.add("--show-package-warnings"); |
| 2044 args.add("--enable-async"); |
| 2044 } | 2045 } |
| 2045 return args; | 2046 return args; |
| 2046 } | 2047 } |
| 2047 | 2048 |
| 2048 static bool isBrowserRuntime(String runtime) { | 2049 static bool isBrowserRuntime(String runtime) { |
| 2049 const BROWSERS = const [ | 2050 const BROWSERS = const [ |
| 2050 'drt', | 2051 'drt', |
| 2051 'dartium', | 2052 'dartium', |
| 2052 'ie9', | 2053 'ie9', |
| 2053 'ie10', | 2054 'ie10', |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2287 * $pass tests are expected to pass | 2288 * $pass tests are expected to pass |
| 2288 * $failOk tests are expected to fail that we won't fix | 2289 * $failOk tests are expected to fail that we won't fix |
| 2289 * $fail tests are expected to fail that we should fix | 2290 * $fail tests are expected to fail that we should fix |
| 2290 * $crash tests are expected to crash that we should fix | 2291 * $crash tests are expected to crash that we should fix |
| 2291 * $timeout tests are allowed to timeout | 2292 * $timeout tests are allowed to timeout |
| 2292 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 2293 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 2293 """; | 2294 """; |
| 2294 print(report); | 2295 print(report); |
| 2295 } | 2296 } |
| 2296 } | 2297 } |
| OLD | NEW |