Chromium Code Reviews| 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, |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 import "status_file_parser.dart"; | 21 import "status_file_parser.dart"; |
| 22 import "test_runner.dart"; | 22 import "test_runner.dart"; |
| 23 import "utils.dart"; | 23 import "utils.dart"; |
| 24 import "http_server.dart" show PREFIX_BUILDDIR, PREFIX_DARTDIR; | 24 import "http_server.dart" show PREFIX_BUILDDIR, PREFIX_DARTDIR; |
| 25 | 25 |
| 26 part "browser_test.dart"; | 26 part "browser_test.dart"; |
| 27 | 27 |
| 28 | 28 |
| 29 RegExp multiHtmlTestGroupRegExp = new RegExp(r"\s*[^/]\s*group\('[^,']*"); | 29 RegExp multiHtmlTestGroupRegExp = new RegExp(r"\s*[^/]\s*group\('[^,']*"); |
| 30 RegExp multiHtmlTestRegExp = new RegExp(r"useHtmlIndividualConfiguration()"); | 30 RegExp multiHtmlTestRegExp = new RegExp(r"useHtmlIndividualConfiguration()"); |
| 31 RegExp multiTestRegExp = new RegExp(r"/// [0-9][0-9]:(.*)"); | 31 RegExp multiTestRegExp = new RegExp(r"\S\s*/// \w+:(.*)"); |
|
Bill Hesse
2014/02/17 17:59:08
I don't think this is needed, but I can't see a ca
| |
| 32 | 32 |
| 33 /** | 33 /** |
| 34 * A simple function that tests [arg] and returns `true` or `false`. | 34 * A simple function that tests [arg] and returns `true` or `false`. |
| 35 */ | 35 */ |
| 36 typedef bool Predicate<T>(T arg); | 36 typedef bool Predicate<T>(T arg); |
| 37 | 37 |
| 38 typedef void CreateTest(Path filePath, | 38 typedef void CreateTest(Path filePath, |
| 39 bool hasCompileError, | 39 bool hasCompileError, |
| 40 bool hasRuntimeError, | 40 bool hasRuntimeError, |
| 41 {bool isNegativeIfChecked, | 41 {bool isNegativeIfChecked, |
| (...skipping 2219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2261 * $pass tests are expected to pass | 2261 * $pass tests are expected to pass |
| 2262 * $failOk tests are expected to fail that we won't fix | 2262 * $failOk tests are expected to fail that we won't fix |
| 2263 * $fail tests are expected to fail that we should fix | 2263 * $fail tests are expected to fail that we should fix |
| 2264 * $crash tests are expected to crash that we should fix | 2264 * $crash tests are expected to crash that we should fix |
| 2265 * $timeout tests are allowed to timeout | 2265 * $timeout tests are allowed to timeout |
| 2266 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 2266 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 2267 """; | 2267 """; |
| 2268 print(report); | 2268 print(report); |
| 2269 } | 2269 } |
| 2270 } | 2270 } |
| OLD | NEW |