| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 bool listRecursively() => _listRecursive; | 292 bool listRecursively() => _listRecursive; |
| 293 | 293 |
| 294 String shellPath() => TestUtils.dartShellFileName(configuration); | 294 String shellPath() => TestUtils.dartShellFileName(configuration); |
| 295 | 295 |
| 296 List<String> additionalOptions(Path filePath) => []; | 296 List<String> additionalOptions(Path filePath) => []; |
| 297 | 297 |
| 298 void forEachTest(TestCaseEvent onTest, Map testCache, [VoidFunction onDone]) { | 298 void forEachTest(TestCaseEvent onTest, Map testCache, [VoidFunction onDone]) { |
| 299 // If DumpRenderTree/Dartium is required, and not yet updated, | 299 // If DumpRenderTree/Dartium is required, and not yet updated, |
| 300 // wait for update. | 300 // wait for update. |
| 301 var updater = runtimeUpdater(configuration); | 301 var updater = runtimeUpdater(configuration); |
| 302 if (updater !== null && !updater.updated) { | 302 if (updater != null && !updater.updated) { |
| 303 Expect.isTrue(updater.isActive); | 303 Expect.isTrue(updater.isActive); |
| 304 updater.onUpdated.add(() { | 304 updater.onUpdated.add(() { |
| 305 forEachTest(onTest, testCache, onDone); | 305 forEachTest(onTest, testCache, onDone); |
| 306 }); | 306 }); |
| 307 return; | 307 return; |
| 308 } | 308 } |
| 309 | 309 |
| 310 doTest = onTest; | 310 doTest = onTest; |
| 311 doDone = (onDone != null) ? onDone : (() => null); | 311 doDone = (onDone != null) ? onDone : (() => null); |
| 312 | 312 |
| (...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1563 * $pass tests are expected to pass | 1563 * $pass tests are expected to pass |
| 1564 * $failOk tests are expected to fail that we won't fix | 1564 * $failOk tests are expected to fail that we won't fix |
| 1565 * $fail tests are expected to fail that we should fix | 1565 * $fail tests are expected to fail that we should fix |
| 1566 * $crash tests are expected to crash that we should fix | 1566 * $crash tests are expected to crash that we should fix |
| 1567 * $timeout tests are allowed to timeout | 1567 * $timeout tests are allowed to timeout |
| 1568 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 1568 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 1569 """; | 1569 """; |
| 1570 print(report); | 1570 print(report); |
| 1571 } | 1571 } |
| 1572 } | 1572 } |
| OLD | NEW |