| 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 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1397 if (compiler == "dart2js" || compiler == "dart2dart") { | 1397 if (compiler == "dart2js" || compiler == "dart2dart") { |
| 1398 args = []; | 1398 args = []; |
| 1399 if (configuration["checked"]) { | 1399 if (configuration["checked"]) { |
| 1400 args.add('--enable-checked-mode'); | 1400 args.add('--enable-checked-mode'); |
| 1401 } | 1401 } |
| 1402 // args.add("--verbose"); | 1402 // args.add("--verbose"); |
| 1403 if (!isBrowserRuntime(configuration['runtime'])) { | 1403 if (!isBrowserRuntime(configuration['runtime'])) { |
| 1404 args.add("--allow-mock-compilation"); | 1404 args.add("--allow-mock-compilation"); |
| 1405 } | 1405 } |
| 1406 } | 1406 } |
| 1407 // TODO(riocw): Unify our minification calling convention between dart2js |
| 1408 // and dart2dart. |
| 1409 if (compiler == "dart2js" && configuration["minify"]) { |
| 1410 args.add("--minify"); |
| 1411 } |
| 1407 return args; | 1412 return args; |
| 1408 } | 1413 } |
| 1409 | 1414 |
| 1410 static String jsshellFileName(Map configuration) { | 1415 static String jsshellFileName(Map configuration) { |
| 1411 var executableSuffix = executableSuffix('jsshell'); | 1416 var executableSuffix = executableSuffix('jsshell'); |
| 1412 var executable = 'jsshell$executableSuffix'; | 1417 var executable = 'jsshell$executableSuffix'; |
| 1413 var jsshellDir = '${dartDir()}/tools/testing/bin'; | 1418 var jsshellDir = '${dartDir()}/tools/testing/bin'; |
| 1414 return '$jsshellDir/$executable'; | 1419 return '$jsshellDir/$executable'; |
| 1415 } | 1420 } |
| 1416 | 1421 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1475 * $noCrash tests are expected to be flaky but not crash | 1480 * $noCrash tests are expected to be flaky but not crash |
| 1476 * $pass tests are expected to pass | 1481 * $pass tests are expected to pass |
| 1477 * $failOk tests are expected to fail that we won't fix | 1482 * $failOk tests are expected to fail that we won't fix |
| 1478 * $fail tests are expected to fail that we should fix | 1483 * $fail tests are expected to fail that we should fix |
| 1479 * $crash tests are expected to crash that we should fix | 1484 * $crash tests are expected to crash that we should fix |
| 1480 * $timeout tests are allowed to timeout | 1485 * $timeout tests are allowed to timeout |
| 1481 """; | 1486 """; |
| 1482 print(report); | 1487 print(report); |
| 1483 } | 1488 } |
| 1484 } | 1489 } |
| OLD | NEW |