Chromium Code Reviews| 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 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1336 /** Helper to create a Polymer deploy command for a single HTML file. */ | 1336 /** Helper to create a Polymer deploy command for a single HTML file. */ |
| 1337 Command _polymerDeployCommand(String inputFile, String outputDir, | 1337 Command _polymerDeployCommand(String inputFile, String outputDir, |
| 1338 optionsFromFile) { | 1338 optionsFromFile) { |
| 1339 List<String> args = []; | 1339 List<String> args = []; |
| 1340 String packageRoot = packageRootArgument(optionsFromFile['packageRoot']); | 1340 String packageRoot = packageRootArgument(optionsFromFile['packageRoot']); |
| 1341 if (packageRoot != null) args.add(packageRoot); | 1341 if (packageRoot != null) args.add(packageRoot); |
| 1342 args..add('package:polymer/deploy.dart') | 1342 args..add('package:polymer/deploy.dart') |
| 1343 ..add('--test')..add(inputFile) | 1343 ..add('--test')..add(inputFile) |
| 1344 ..add('--out')..add(outputDir) | 1344 ..add('--out')..add(outputDir) |
| 1345 ..add('--file-filter')..add('.svn'); | 1345 ..add('--file-filter')..add('.svn'); |
| 1346 if (configuration['csp']) args.add('--csp'); | |
|
Siggi Cherem (dart-lang)
2014/07/29 21:30:54
Rico - I'm basically adding this back now that the
ricow1
2014/07/30 09:15:47
sgtm
| |
| 1346 | 1347 |
| 1347 return CommandBuilder.instance.getProcessCommand( | 1348 return CommandBuilder.instance.getProcessCommand( |
| 1348 'polymer_deploy', dartVmBinaryFileName, args, environmentOverrides); | 1349 'polymer_deploy', dartVmBinaryFileName, args, environmentOverrides); |
| 1349 } | 1350 } |
| 1350 | 1351 |
| 1351 String get scriptType { | 1352 String get scriptType { |
| 1352 switch (configuration['compiler']) { | 1353 switch (configuration['compiler']) { |
| 1353 case 'none': | 1354 case 'none': |
| 1354 case 'dart2dart': | 1355 case 'dart2dart': |
| 1355 return 'application/dart'; | 1356 return 'application/dart'; |
| (...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2251 * $pass tests are expected to pass | 2252 * $pass tests are expected to pass |
| 2252 * $failOk tests are expected to fail that we won't fix | 2253 * $failOk tests are expected to fail that we won't fix |
| 2253 * $fail tests are expected to fail that we should fix | 2254 * $fail tests are expected to fail that we should fix |
| 2254 * $crash tests are expected to crash that we should fix | 2255 * $crash tests are expected to crash that we should fix |
| 2255 * $timeout tests are allowed to timeout | 2256 * $timeout tests are allowed to timeout |
| 2256 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 2257 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 2257 """; | 2258 """; |
| 2258 print(report); | 2259 print(report); |
| 2259 } | 2260 } |
| 2260 } | 2261 } |
| OLD | NEW |