| 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 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 // Construct the command(s) that compile all the inputs needed by the | 981 // Construct the command(s) that compile all the inputs needed by the |
| 982 // browser test. For running Dart in DRT, this will be noop commands. | 982 // browser test. For running Dart in DRT, this will be noop commands. |
| 983 List<Command> commands = []; | 983 List<Command> commands = []; |
| 984 | 984 |
| 985 // Use existing HTML document if available. | 985 // Use existing HTML document if available. |
| 986 String htmlPath; | 986 String htmlPath; |
| 987 if (customHtml.existsSync()) { | 987 if (customHtml.existsSync()) { |
| 988 // If necessary, run the Polymer deploy steps. | 988 // If necessary, run the Polymer deploy steps. |
| 989 // TODO(jmesserly): this should be generalized for any tests that | 989 // TODO(jmesserly): this should be generalized for any tests that |
| 990 // require Pub deploy, not just polymer. | 990 // require Pub deploy, not just polymer. |
| 991 if (customHtml.readAsStringSync().contains('polymer/init.dart')) { | 991 if (customHtml.readAsStringSync().contains('<!--polymer-test')) { |
| 992 if (compiler != 'none') { | 992 if (compiler != 'none') { |
| 993 commands.add(_polymerDeployCommand( | 993 commands.add(_polymerDeployCommand( |
| 994 customHtmlPath, tempDir, optionsFromFile)); | 994 customHtmlPath, tempDir, optionsFromFile)); |
| 995 | 995 |
| 996 htmlPath = '$tempDir/test/$nameNoExt.html'; | 996 htmlPath = '$tempDir/test/$nameNoExt.html'; |
| 997 dartWrapperFilename = '${htmlPath}_bootstrap.dart'; | 997 dartWrapperFilename = '${htmlPath}_bootstrap.dart'; |
| 998 compiledDartWrapperFilename = '$dartWrapperFilename.js'; | 998 compiledDartWrapperFilename = '$dartWrapperFilename.js'; |
| 999 } else { | 999 } else { |
| 1000 htmlPath = customHtmlPath; | 1000 htmlPath = customHtmlPath; |
| 1001 } | 1001 } |
| (...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2039 * $pass tests are expected to pass | 2039 * $pass tests are expected to pass |
| 2040 * $failOk tests are expected to fail that we won't fix | 2040 * $failOk tests are expected to fail that we won't fix |
| 2041 * $fail tests are expected to fail that we should fix | 2041 * $fail tests are expected to fail that we should fix |
| 2042 * $crash tests are expected to crash that we should fix | 2042 * $crash tests are expected to crash that we should fix |
| 2043 * $timeout tests are allowed to timeout | 2043 * $timeout tests are allowed to timeout |
| 2044 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 2044 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 2045 """; | 2045 """; |
| 2046 print(report); | 2046 print(report); |
| 2047 } | 2047 } |
| 2048 } | 2048 } |
| OLD | NEW |