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 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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"] == "dart2js" | 1169 if (configuration["component"] == "dart2js" |
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"]) { | 1173 if (configuration["host_checked"]) { |
1174 args.add("--vm_flags=--enable_asserts --enable_type_checks"); | 1174 args.add("--vm_flags=--enable_asserts --enable_type_checks"); |
1175 } | 1175 } |
| 1176 if (configuration["component"] == "dart2js") { |
| 1177 args.add("--allow-mock-compilation"); |
| 1178 } |
1176 } | 1179 } |
1177 return args; | 1180 return args; |
1178 } | 1181 } |
1179 | 1182 |
1180 static bool isBrowserComponent(String component) => | 1183 static bool isBrowserComponent(String component) => |
1181 const <String>['dartium', | 1184 const <String>['dartium', |
1182 'frogium', | 1185 'frogium', |
1183 'legium', | 1186 'legium', |
1184 'webdriver'].some((x) => x == component); | 1187 'webdriver'].some((x) => x == component); |
1185 } | 1188 } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1228 * $noCrash tests are expected to be flaky but not crash | 1231 * $noCrash tests are expected to be flaky but not crash |
1229 * $pass tests are expected to pass | 1232 * $pass tests are expected to pass |
1230 * $failOk tests are expected to fail that we won't fix | 1233 * $failOk tests are expected to fail that we won't fix |
1231 * $fail tests are expected to fail that we should fix | 1234 * $fail tests are expected to fail that we should fix |
1232 * $crash tests are expected to crash that we should fix | 1235 * $crash tests are expected to crash that we should fix |
1233 * $timeout tests are allowed to timeout | 1236 * $timeout tests are allowed to timeout |
1234 """; | 1237 """; |
1235 print(report); | 1238 print(report); |
1236 } | 1239 } |
1237 } | 1240 } |
OLD | NEW |