| 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 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1343 | 1343 |
| 1344 /** Helper to create a Polymer deploy command for a single HTML file. */ | 1344 /** Helper to create a Polymer deploy command for a single HTML file. */ |
| 1345 Command _polymerDeployCommand(String inputFile, String outputDir, | 1345 Command _polymerDeployCommand(String inputFile, String outputDir, |
| 1346 optionsFromFile) { | 1346 optionsFromFile) { |
| 1347 List<String> args = []; | 1347 List<String> args = []; |
| 1348 String packageRoot = packageRootArgument(optionsFromFile['packageRoot']); | 1348 String packageRoot = packageRootArgument(optionsFromFile['packageRoot']); |
| 1349 if (packageRoot != null) args.add(packageRoot); | 1349 if (packageRoot != null) args.add(packageRoot); |
| 1350 args..add('package:polymer/deploy.dart') | 1350 args..add('package:polymer/deploy.dart') |
| 1351 ..add('--test')..add(inputFile) | 1351 ..add('--test')..add(inputFile) |
| 1352 ..add('--out')..add(outputDir); | 1352 ..add('--out')..add(outputDir); |
| 1353 if (configuration['csp']) args.add('--csp'); | |
| 1354 | 1353 |
| 1355 return CommandBuilder.instance.getProcessCommand( | 1354 return CommandBuilder.instance.getProcessCommand( |
| 1356 'polymer_deploy', dartVmBinaryFileName, args, environmentOverrides); | 1355 'polymer_deploy', dartVmBinaryFileName, args, environmentOverrides); |
| 1357 } | 1356 } |
| 1358 | 1357 |
| 1359 String createGeneratedTestDirectoryHelper( | 1358 String createGeneratedTestDirectoryHelper( |
| 1360 String name, String dirname, Path testPath, String optionsName) { | 1359 String name, String dirname, Path testPath, String optionsName) { |
| 1361 Path relative = testPath.relativeTo(TestUtils.dartDir()); | 1360 Path relative = testPath.relativeTo(TestUtils.dartDir()); |
| 1362 relative = relative.directoryPath.append(relative.filenameWithoutExtension); | 1361 relative = relative.directoryPath.append(relative.filenameWithoutExtension); |
| 1363 String testUniqueName = relative.toString().replaceAll('/', '_'); | 1362 String testUniqueName = relative.toString().replaceAll('/', '_'); |
| (...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2199 * $pass tests are expected to pass | 2198 * $pass tests are expected to pass |
| 2200 * $failOk tests are expected to fail that we won't fix | 2199 * $failOk tests are expected to fail that we won't fix |
| 2201 * $fail tests are expected to fail that we should fix | 2200 * $fail tests are expected to fail that we should fix |
| 2202 * $crash tests are expected to crash that we should fix | 2201 * $crash tests are expected to crash that we should fix |
| 2203 * $timeout tests are allowed to timeout | 2202 * $timeout tests are allowed to timeout |
| 2204 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 2203 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 2205 """; | 2204 """; |
| 2206 print(report); | 2205 print(report); |
| 2207 } | 2206 } |
| 2208 } | 2207 } |
| OLD | NEW |