| 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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 } | 680 } |
| 681 | 681 |
| 682 var extraCommand = optionsFromFile['extraCommand']; | 682 var extraCommand = optionsFromFile['extraCommand']; |
| 683 if (extraCommand != null) { | 683 if (extraCommand != null) { |
| 684 var args = optionsFromFile['extraCommandArgs']; | 684 var args = optionsFromFile['extraCommandArgs']; |
| 685 // As a special case, a command of "dart" should run with the same | 685 // As a special case, a command of "dart" should run with the same |
| 686 // dart executable that we are using. | 686 // dart executable that we are using. |
| 687 if (extraCommand == 'dart') { | 687 if (extraCommand == 'dart') { |
| 688 extraCommand = new Options().executable; | 688 extraCommand = new Options().executable; |
| 689 } | 689 } |
| 690 args= args.map((arg)=>arg.replaceAll(@"$dartDir", dartDir.toString())); |
| 690 commands.add(new Command(extraCommand, args)); | 691 commands.add(new Command(extraCommand, args)); |
| 691 } | 692 } |
| 692 | 693 |
| 693 // Construct the command that executes the browser test | 694 // Construct the command that executes the browser test |
| 694 List<String> args; | 695 List<String> args; |
| 695 if (runtime == 'ie' || runtime == 'ff' || runtime == 'chrome' || | 696 if (runtime == 'ie' || runtime == 'ff' || runtime == 'chrome' || |
| 696 runtime == 'safari' || runtime == 'opera' || runtime == 'dartium') { | 697 runtime == 'safari' || runtime == 'opera' || runtime == 'dartium') { |
| 697 args = [dartDir.append('tools/testing/run_selenium.py').toNativePath(), | 698 args = [dartDir.append('tools/testing/run_selenium.py').toNativePath(), |
| 698 '--browser=$runtime', | 699 '--browser=$runtime', |
| 699 '--timeout=${configuration["timeout"] - 2}', | 700 '--timeout=${configuration["timeout"] - 2}', |
| (...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1460 * $noCrash tests are expected to be flaky but not crash | 1461 * $noCrash tests are expected to be flaky but not crash |
| 1461 * $pass tests are expected to pass | 1462 * $pass tests are expected to pass |
| 1462 * $failOk tests are expected to fail that we won't fix | 1463 * $failOk tests are expected to fail that we won't fix |
| 1463 * $fail tests are expected to fail that we should fix | 1464 * $fail tests are expected to fail that we should fix |
| 1464 * $crash tests are expected to crash that we should fix | 1465 * $crash tests are expected to crash that we should fix |
| 1465 * $timeout tests are allowed to timeout | 1466 * $timeout tests are allowed to timeout |
| 1466 """; | 1467 """; |
| 1467 print(report); | 1468 print(report); |
| 1468 } | 1469 } |
| 1469 } | 1470 } |
| OLD | NEW |