| 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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 dartFlags.add("--enable_type_checks"); | 648 dartFlags.add("--enable_type_checks"); |
| 649 } | 649 } |
| 650 dartFlags.addAll(vmOptions); | 650 dartFlags.addAll(vmOptions); |
| 651 args.add('--dart-flags=${Strings.join(dartFlags, " ")}'); | 651 args.add('--dart-flags=${Strings.join(dartFlags, " ")}'); |
| 652 } | 652 } |
| 653 args.add(htmlPath); | 653 args.add(htmlPath); |
| 654 } | 654 } |
| 655 commands.add(new Command('python', args)); | 655 commands.add(new Command('python', args)); |
| 656 | 656 |
| 657 // Create BrowserTestCase and queue it. | 657 // Create BrowserTestCase and queue it. |
| 658 var testCase = new BrowserTestCase(testName, commands, configuration, | 658 var testCase = new BrowserTestCase('$suiteName/$testName', |
| 659 completeHandler, expectations, optionsFromFile['isNegative']); | 659 commands, configuration, completeHandler, expectations, |
| 660 optionsFromFile['isNegative']); |
| 660 doTest(testCase); | 661 doTest(testCase); |
| 661 } | 662 } |
| 662 } | 663 } |
| 663 | 664 |
| 664 /** Helper to create a compilation command for a single input file. */ | 665 /** Helper to create a compilation command for a single input file. */ |
| 665 Command _compileCommand(String inputFile, String outputFile, | 666 Command _compileCommand(String inputFile, String outputFile, |
| 666 String compiler, String dir, var vmOptions) { | 667 String compiler, String dir, var vmOptions) { |
| 667 String executable = TestUtils.compilerPath(configuration); | 668 String executable = TestUtils.compilerPath(configuration); |
| 668 List<String> args = TestUtils.standardOptions(configuration); | 669 List<String> args = TestUtils.standardOptions(configuration); |
| 669 switch (compiler) { | 670 switch (compiler) { |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1367 * $noCrash tests are expected to be flaky but not crash | 1368 * $noCrash tests are expected to be flaky but not crash |
| 1368 * $pass tests are expected to pass | 1369 * $pass tests are expected to pass |
| 1369 * $failOk tests are expected to fail that we won't fix | 1370 * $failOk tests are expected to fail that we won't fix |
| 1370 * $fail tests are expected to fail that we should fix | 1371 * $fail tests are expected to fail that we should fix |
| 1371 * $crash tests are expected to crash that we should fix | 1372 * $crash tests are expected to crash that we should fix |
| 1372 * $timeout tests are allowed to timeout | 1373 * $timeout tests are allowed to timeout |
| 1373 """; | 1374 """; |
| 1374 print(report); | 1375 print(report); |
| 1375 } | 1376 } |
| 1376 } | 1377 } |
| OLD | NEW |