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, |
11 * and creating [TestCase]s for those files that meet the relevant criteria. | 11 * and creating [TestCase]s for those files that meet the relevant criteria. |
12 * - Preparing tests, including copying files and frameworks to temporary | 12 * - Preparing tests, including copying files and frameworks to temporary |
13 * directories, and computing the command line and arguments to be run. | 13 * directories, and computing the command line and arguments to be run. |
14 */ | 14 */ |
15 library test_suite; | 15 library test_suite; |
16 | 16 |
17 import "dart:async"; | 17 import "dart:async"; |
18 import "dart:io"; | 18 import "dart:io"; |
19 import "dart:isolate"; | 19 import "dart:isolate"; |
20 import "dart:uri"; | 20 import "dart:uri"; |
21 import "drt_updater.dart"; | 21 import "drt_updater.dart"; |
22 import "multitest.dart"; | 22 import "multitest.dart"; |
23 import "status_file_parser.dart"; | 23 import "status_file_parser.dart"; |
24 import "test_runner.dart"; | 24 import "test_runner.dart"; |
25 import "utils.dart"; | 25 import "utils.dart"; |
26 | 26 |
27 // TODO(efortuna,whess): Remove this import. | 27 // TODO(efortuna,whess): Remove this import. |
28 import 'temp_package_root/path/path.dart' as pathLib; | 28 import 'vendored_pkg/path/path.dart' as pathLib; |
29 | 29 |
30 part "browser_test.dart"; | 30 part "browser_test.dart"; |
31 | 31 |
32 | 32 |
33 // TODO(rnystrom): Add to dart:core? | 33 // TODO(rnystrom): Add to dart:core? |
34 /** | 34 /** |
35 * A simple function that tests [arg] and returns `true` or `false`. | 35 * A simple function that tests [arg] and returns `true` or `false`. |
36 */ | 36 */ |
37 typedef bool Predicate<T>(T arg); | 37 typedef bool Predicate<T>(T arg); |
38 | 38 |
(...skipping 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1833 * $pass tests are expected to pass | 1833 * $pass tests are expected to pass |
1834 * $failOk tests are expected to fail that we won't fix | 1834 * $failOk tests are expected to fail that we won't fix |
1835 * $fail tests are expected to fail that we should fix | 1835 * $fail tests are expected to fail that we should fix |
1836 * $crash tests are expected to crash that we should fix | 1836 * $crash tests are expected to crash that we should fix |
1837 * $timeout tests are allowed to timeout | 1837 * $timeout tests are allowed to timeout |
1838 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 1838 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
1839 """; | 1839 """; |
1840 print(report); | 1840 print(report); |
1841 } | 1841 } |
1842 } | 1842 } |
OLD | NEW |