| 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 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1163 static List<String> standardOptions(Map configuration) { | 1163 static List<String> standardOptions(Map configuration) { |
| 1164 List args = ["--ignore-unrecognized-flags"]; | 1164 List args = ["--ignore-unrecognized-flags"]; |
| 1165 if (configuration["checked"]) { | 1165 if (configuration["checked"]) { |
| 1166 args.add('--enable_asserts'); | 1166 args.add('--enable_asserts'); |
| 1167 args.add("--enable_type_checks"); | 1167 args.add("--enable_type_checks"); |
| 1168 } | 1168 } |
| 1169 if (configuration["component"] == "leg" | 1169 if (configuration["component"] == "leg" |
| 1170 || configuration["component"] == "legium") { | 1170 || configuration["component"] == "legium") { |
| 1171 args.add("--verbose"); | 1171 args.add("--verbose"); |
| 1172 args.add("--leg"); | 1172 args.add("--leg"); |
| 1173 if (configuration["host_checked"]) { |
| 1174 args.add("--vm_flags=--enable_asserts --enable_type_checks"); |
| 1175 } |
| 1173 } | 1176 } |
| 1174 return args; | 1177 return args; |
| 1175 } | 1178 } |
| 1176 | 1179 |
| 1177 static bool isBrowserComponent(String component) => | 1180 static bool isBrowserComponent(String component) => |
| 1178 const <String>['dartium', | 1181 const <String>['dartium', |
| 1179 'frogium', | 1182 'frogium', |
| 1180 'legium', | 1183 'legium', |
| 1181 'webdriver'].some((x) => x == component); | 1184 'webdriver'].some((x) => x == component); |
| 1182 } | 1185 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1225 * $noCrash tests are expected to be flaky but not crash | 1228 * $noCrash tests are expected to be flaky but not crash |
| 1226 * $pass tests are expected to pass | 1229 * $pass tests are expected to pass |
| 1227 * $failOk tests are expected to fail that we won't fix | 1230 * $failOk tests are expected to fail that we won't fix |
| 1228 * $fail tests are expected to fail that we should fix | 1231 * $fail tests are expected to fail that we should fix |
| 1229 * $crash tests are expected to crash that we should fix | 1232 * $crash tests are expected to crash that we should fix |
| 1230 * $timeout tests are allowed to timeout | 1233 * $timeout tests are allowed to timeout |
| 1231 """; | 1234 """; |
| 1232 print(report); | 1235 print(report); |
| 1233 } | 1236 } |
| 1234 } | 1237 } |
| OLD | NEW |