| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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("stub_generator_test_config"); | 5 #library("stub_generator_test_config"); |
| 6 | 6 |
| 7 #import("../../tools/testing/dart/test_suite.dart"); | 7 #import("../../tools/testing/dart/test_suite.dart"); |
| 8 | 8 |
| 9 class StubGeneratorTestSuite extends StandardTestSuite { | 9 class StubGeneratorTestSuite extends StandardTestSuite { |
| 10 StubGeneratorTestSuite(Map configuration) | 10 StubGeneratorTestSuite(Map configuration) |
| 11 : super(configuration, | 11 : super(configuration, |
| 12 "stub-generator", |
| 12 "tests/stub-generator/src", | 13 "tests/stub-generator/src", |
| 13 ["tests/stub-generator/stub-generator.status"]) { | 14 ["tests/stub-generator/stub-generator.status"]) { |
| 14 // TODO(ager): Support the stub generation part of this test on | 15 // TODO(ager): Support the stub generation part of this test on |
| 15 // dartc. | 16 // dartc. |
| 16 if (configuration["component"] == "dartc") { | 17 if (configuration["component"] == "dartc") { |
| 17 print("Warning: stub-generator tests on dartc do not test generation"); | 18 print("Warning: stub-generator tests on dartc do not test generation"); |
| 18 } | 19 } |
| 19 } | 20 } |
| 20 | 21 |
| 21 bool isTestFile(String filename) => filename.contains("-generatedTest.dart"); | 22 bool isTestFile(String filename) => filename.contains("-generatedTest.dart"); |
| 22 } | 23 } |
| OLD | NEW |