| 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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 // No compilation phase. | 526 // No compilation phase. |
| 527 compilerExecutable = null; | 527 compilerExecutable = null; |
| 528 compilerArgs = null; | 528 compilerArgs = null; |
| 529 break; | 529 break; |
| 530 default: | 530 default: |
| 531 Expect.fail('unimplemented component $component'); | 531 Expect.fail('unimplemented component $component'); |
| 532 } | 532 } |
| 533 | 533 |
| 534 List<String> args; | 534 List<String> args; |
| 535 if (component == 'webdriver') { | 535 if (component == 'webdriver') { |
| 536 args = ['$dartDir/tools/testing/run_selenium.py', '--out=$htmlPath', | 536 args = ['$dartDir/tools/testing/run_selenium.py', |
| 537 '--browser=${configuration["browser"]}', |
| 537 '--timeout=${configuration["timeout"] - 2}', | 538 '--timeout=${configuration["timeout"] - 2}', |
| 538 '--browser=${configuration["browser"]}']; | 539 '--out=$htmlPath']; |
| 539 } else { | 540 } else { |
| 540 args = [ | 541 args = [ |
| 541 '$dartDir/tools/testing/drt-trampoline.py', | 542 '$dartDir/tools/testing/drt-trampoline.py', |
| 542 dumpRenderTreeFilename, | 543 dumpRenderTreeFilename, |
| 543 '--no-timeout' | 544 '--no-timeout' |
| 544 ]; | 545 ]; |
| 545 if (component == 'dartium') { | 546 if (component == 'dartium') { |
| 546 var dartFlags = ['--ignore-unrecognized-flags']; | 547 var dartFlags = ['--ignore-unrecognized-flags']; |
| 547 if (configuration["checked"]) { | 548 if (configuration["checked"]) { |
| 548 dartFlags.add('--enable_asserts'); | 549 dartFlags.add('--enable_asserts'); |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1124 * $noCrash tests are expected to be flaky but not crash | 1125 * $noCrash tests are expected to be flaky but not crash |
| 1125 * $pass tests are expected to pass | 1126 * $pass tests are expected to pass |
| 1126 * $failOk tests are expected to fail that we won't fix | 1127 * $failOk tests are expected to fail that we won't fix |
| 1127 * $fail tests are expected to fail that we should fix | 1128 * $fail tests are expected to fail that we should fix |
| 1128 * $crash tests are expected to crash that we should fix | 1129 * $crash tests are expected to crash that we should fix |
| 1129 * $timeout tests are allowed to timeout | 1130 * $timeout tests are allowed to timeout |
| 1130 """; | 1131 """; |
| 1131 print(report); | 1132 print(report); |
| 1132 } | 1133 } |
| 1133 } | 1134 } |
| OLD | NEW |