| 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 #library("dartdoc_test_config"); | 5 #library("dartdoc_test_config"); |
| 6 | 6 |
| 7 #import("../../../tools/testing/dart/test_suite.dart"); | 7 #import("../../../tools/testing/dart/test_suite.dart"); |
| 8 | 8 |
| 9 class DartdocTestSuite extends StandardTestSuite { | 9 class DartdocTestSuite extends StandardTestSuite { |
| 10 DartdocTestSuite(Map configuration) | 10 DartdocTestSuite(Map configuration) |
| 11 : super(configuration, | 11 : super(configuration, |
| 12 "dartdoc", | 12 "dartdoc", |
| 13 "utils/tests/dartdoc/src", | 13 "utils/tests/dartdoc/src", |
| 14 ["utils/tests/dartdoc/dartdoc.status"]); | 14 ["utils/tests/dartdoc/dartdoc.status"]); |
| 15 | 15 |
| 16 List<String> additionalOptions(String filename) { |
| 17 if (configuration['component'].startsWith('frog')) { |
| 18 return ['--js_cmd=node --crankshaft']; |
| 19 } else { |
| 20 return []; |
| 21 } |
| 22 } |
| 23 |
| 24 |
| 16 bool isTestFile(String filename) => filename.endsWith("_tests.dart"); | 25 bool isTestFile(String filename) => filename.endsWith("_tests.dart"); |
| 17 } | 26 } |
| OLD | NEW |