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("client_dartc_test_config"); | 5 #library("client_dartc_test_config"); |
6 | 6 |
7 #import("../../../tools/testing/dart/test_suite.dart"); | 7 #import("../../../tools/testing/dart/test_suite.dart"); |
8 | 8 |
9 class ClientDartcTestSuite extends DartcCompilationTestSuite { | 9 class ClientDartcTestSuite extends DartcCompilationTestSuite { |
10 ClientDartcTestSuite(Map configuration) | 10 ClientDartcTestSuite(Map configuration) |
(...skipping 11 matching lines...) Expand all Loading... |
22 'testing', | 22 'testing', |
23 'tests', | 23 'tests', |
24 'touch', | 24 'touch', |
25 'util', | 25 'util', |
26 'view', | 26 'view', |
27 'weld'], | 27 'weld'], |
28 ["client/tests/dartc/dartc.status"]); | 28 ["client/tests/dartc/dartc.status"]); |
29 | 29 |
30 bool isTestFile(String filename) { | 30 bool isTestFile(String filename) { |
31 if (!filename.endsWith(".dart")) return false; | 31 if (!filename.endsWith(".dart")) return false; |
32 var options = optionsFromFile(filename); | 32 // Using readOptionsFromFile here causes the file to be read twice, |
33 return optionsFromFile(filename)["containsLeadingHash"]; | 33 // because readOptionsFromFile is called again in the superclass. |
| 34 // Avoid this in new code. |
| 35 return readOptionsFromFile(filename)["containsLeadingHash"]; |
34 } | 36 } |
35 | 37 |
36 bool listRecursively() => true; | 38 bool listRecursively() => true; |
37 } | 39 } |
OLD | NEW |