| 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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 var dartFlags = ['--ignore-unrecognized-flags']; | 642 var dartFlags = ['--ignore-unrecognized-flags']; |
| 643 if (configuration["checked"]) { | 643 if (configuration["checked"]) { |
| 644 dartFlags.add('--enable_asserts'); | 644 dartFlags.add('--enable_asserts'); |
| 645 dartFlags.add("--enable_type_checks"); | 645 dartFlags.add("--enable_type_checks"); |
| 646 } | 646 } |
| 647 dartFlags.addAll(vmOptions); | 647 dartFlags.addAll(vmOptions); |
| 648 args.add('--dart-flags=${Strings.join(dartFlags, " ")}'); | 648 args.add('--dart-flags=${Strings.join(dartFlags, " ")}'); |
| 649 } | 649 } |
| 650 args.add(htmlPath); | 650 args.add(htmlPath); |
| 651 if (expectedOutput != null) { | 651 if (expectedOutput != null) { |
| 652 args.add('--out-expectation=$expectedOutput'); | 652 args.add('--out-expectation=${expectedOutput.toNativePath()}'); |
| 653 } | 653 } |
| 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('$suiteName/$testName', | 658 var testCase = new BrowserTestCase('$suiteName/$testName', |
| 659 commands, configuration, completeHandler, expectations, | 659 commands, configuration, completeHandler, expectations, |
| 660 optionsFromFile['isNegative']); | 660 optionsFromFile['isNegative']); |
| 661 doTest(testCase); | 661 doTest(testCase); |
| 662 } | 662 } |
| (...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1394 * $noCrash tests are expected to be flaky but not crash | 1394 * $noCrash tests are expected to be flaky but not crash |
| 1395 * $pass tests are expected to pass | 1395 * $pass tests are expected to pass |
| 1396 * $failOk tests are expected to fail that we won't fix | 1396 * $failOk tests are expected to fail that we won't fix |
| 1397 * $fail tests are expected to fail that we should fix | 1397 * $fail tests are expected to fail that we should fix |
| 1398 * $crash tests are expected to crash that we should fix | 1398 * $crash tests are expected to crash that we should fix |
| 1399 * $timeout tests are allowed to timeout | 1399 * $timeout tests are allowed to timeout |
| 1400 """; | 1400 """; |
| 1401 print(report); | 1401 print(report); |
| 1402 } | 1402 } |
| 1403 } | 1403 } |
| OLD | NEW |