| 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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1330 } | 1330 } |
| 1331 | 1331 |
| 1332 static List<String> standardOptions(Map configuration) { | 1332 static List<String> standardOptions(Map configuration) { |
| 1333 List args = ["--ignore-unrecognized-flags"]; | 1333 List args = ["--ignore-unrecognized-flags"]; |
| 1334 if (configuration["checked"]) { | 1334 if (configuration["checked"]) { |
| 1335 args.add('--enable_asserts'); | 1335 args.add('--enable_asserts'); |
| 1336 args.add("--enable_type_checks"); | 1336 args.add("--enable_type_checks"); |
| 1337 } | 1337 } |
| 1338 if (configuration["compiler"] == "dart2js") { | 1338 if (configuration["compiler"] == "dart2js") { |
| 1339 args = []; | 1339 args = []; |
| 1340 if (configuration["checked"]) { |
| 1341 args.add('--enable-checked-mode'); |
| 1342 } |
| 1340 args.add("--verbose"); | 1343 args.add("--verbose"); |
| 1341 if (!isBrowserRuntime(configuration['runtime'])) { | 1344 if (!isBrowserRuntime(configuration['runtime'])) { |
| 1342 args.add("--allow-mock-compilation"); | 1345 args.add("--allow-mock-compilation"); |
| 1343 } | 1346 } |
| 1344 } | 1347 } |
| 1345 return args; | 1348 return args; |
| 1346 } | 1349 } |
| 1347 | 1350 |
| 1348 static bool isBrowserRuntime(String runtime) => | 1351 static bool isBrowserRuntime(String runtime) => |
| 1349 const <String>['drt', | 1352 const <String>['drt', |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1399 * $noCrash tests are expected to be flaky but not crash | 1402 * $noCrash tests are expected to be flaky but not crash |
| 1400 * $pass tests are expected to pass | 1403 * $pass tests are expected to pass |
| 1401 * $failOk tests are expected to fail that we won't fix | 1404 * $failOk tests are expected to fail that we won't fix |
| 1402 * $fail tests are expected to fail that we should fix | 1405 * $fail tests are expected to fail that we should fix |
| 1403 * $crash tests are expected to crash that we should fix | 1406 * $crash tests are expected to crash that we should fix |
| 1404 * $timeout tests are allowed to timeout | 1407 * $timeout tests are allowed to timeout |
| 1405 """; | 1408 """; |
| 1406 print(report); | 1409 print(report); |
| 1407 } | 1410 } |
| 1408 } | 1411 } |
| OLD | NEW |