OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 #library("client_dartc_test_config"); |
| 6 |
| 7 #import("../../../tools/testing/dart/test_suite.dart"); |
| 8 |
| 9 class SamplesDartcTestSuite extends DartcCompilationTestSuite { |
| 10 SamplesDartcTestSuite(Map configuration) |
| 11 : super(configuration, |
| 12 'dartc', |
| 13 'samples', |
| 14 [ 'actors', |
| 15 'belay', |
| 16 'calculator', |
| 17 'chat', |
| 18 'clock', |
| 19 'dartcombat', |
| 20 'hi', |
| 21 'isolate', |
| 22 'isolate_html', |
| 23 'leap', |
| 24 'logo', |
| 25 'markdown', |
| 26 'matrix', |
| 27 'pond', |
| 28 'proxy', |
| 29 'sample_extension', |
| 30 'slider', |
| 31 'spirodraw', |
| 32 'sunflower', |
| 33 'swarm', |
| 34 'tests', |
| 35 'third_party', |
| 36 'time', |
| 37 'total', |
| 38 'ui_lib', |
| 39 ], |
| 40 ['samples/tests/dartc/dartc.status']); |
| 41 |
| 42 bool isTestFile(String filename) { |
| 43 if (!filename.endsWith(".dart")) return false; |
| 44 // Using readOptionsFromFile here causes the file to be read twice, |
| 45 // because readOptionsFromFile is called again in the superclass. |
| 46 // Avoid this in new code. |
| 47 return readOptionsFromFile(filename)["containsLeadingHash"]; |
| 48 } |
| 49 |
| 50 bool listRecursively() => true; |
| 51 } |
OLD | NEW |