| 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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 Path expectedOutput = null; | 629 Path expectedOutput = null; |
| 630 if (new File.fromPath(pngPath).existsSync()) { | 630 if (new File.fromPath(pngPath).existsSync()) { |
| 631 expectedOutput = pngPath; | 631 expectedOutput = pngPath; |
| 632 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath'); | 632 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath'); |
| 633 } else if (new File.fromPath(txtPath).existsSync()) { | 633 } else if (new File.fromPath(txtPath).existsSync()) { |
| 634 expectedOutput = txtPath; | 634 expectedOutput = txtPath; |
| 635 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath'); | 635 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath'); |
| 636 } else { | 636 } else { |
| 637 content = getHtmlContents( | 637 content = getHtmlContents( |
| 638 filename, | 638 filename, |
| 639 '$filePrefix' | 639 '$filePrefix${dartDir.append("pkg/unittest/test_controller.js")}', |
| 640 '${dartDir.append("pkg/unittest/static/test_controller.js")}', | |
| 641 '$filePrefix${dartDir.append("client/dart.js")}', | 640 '$filePrefix${dartDir.append("client/dart.js")}', |
| 642 scriptType, | 641 scriptType, |
| 643 '$filePrefix$scriptPath'); | 642 '$filePrefix$scriptPath'); |
| 644 } | 643 } |
| 645 htmlTest.writeStringSync(content); | 644 htmlTest.writeStringSync(content); |
| 646 htmlTest.closeSync(); | 645 htmlTest.closeSync(); |
| 647 | 646 |
| 648 // Construct the command(s) that compile all the inputs needed by the | 647 // Construct the command(s) that compile all the inputs needed by the |
| 649 // browser test. For running Dart in DRT, this will be noop commands. | 648 // browser test. For running Dart in DRT, this will be noop commands. |
| 650 List<Command> commands = []; | 649 List<Command> commands = []; |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1423 * $noCrash tests are expected to be flaky but not crash | 1422 * $noCrash tests are expected to be flaky but not crash |
| 1424 * $pass tests are expected to pass | 1423 * $pass tests are expected to pass |
| 1425 * $failOk tests are expected to fail that we won't fix | 1424 * $failOk tests are expected to fail that we won't fix |
| 1426 * $fail tests are expected to fail that we should fix | 1425 * $fail tests are expected to fail that we should fix |
| 1427 * $crash tests are expected to crash that we should fix | 1426 * $crash tests are expected to crash that we should fix |
| 1428 * $timeout tests are allowed to timeout | 1427 * $timeout tests are allowed to timeout |
| 1429 """; | 1428 """; |
| 1430 print(report); | 1429 print(report); |
| 1431 } | 1430 } |
| 1432 } | 1431 } |
| OLD | NEW |