| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 bool listRecursively() => _listRecursive; | 273 bool listRecursively() => _listRecursive; |
| 274 | 274 |
| 275 String shellPath() => TestUtils.dartShellFileName(configuration); | 275 String shellPath() => TestUtils.dartShellFileName(configuration); |
| 276 | 276 |
| 277 List<String> additionalOptions(String filename) => []; | 277 List<String> additionalOptions(String filename) => []; |
| 278 | 278 |
| 279 void forEachTest(Function onTest, Map testCache, String globalTempDir(), | 279 void forEachTest(Function onTest, Map testCache, String globalTempDir(), |
| 280 [Function onDone = null]) { | 280 [Function onDone = null]) { |
| 281 // If DumpRenderTree/Dartium is required, and not yet updated, | 281 // If DumpRenderTree/Dartium is required, and not yet updated, |
| 282 // wait for update. | 282 // wait for update. |
| 283 var updater = runtimeUpdater(configuration['runtime']); | 283 var updater = runtimeUpdater(configuration); |
| 284 if (updater !== null && !updater.updated) { | 284 if (updater !== null && !updater.updated) { |
| 285 Expect.isTrue(updater.isActive); | 285 Expect.isTrue(updater.isActive); |
| 286 updater.onUpdated.add(() { | 286 updater.onUpdated.add(() { |
| 287 forEachTest(onTest, testCache, globalTempDir, onDone); | 287 forEachTest(onTest, testCache, globalTempDir, onDone); |
| 288 }); | 288 }); |
| 289 return; | 289 return; |
| 290 } | 290 } |
| 291 | 291 |
| 292 doTest = onTest; | 292 doTest = onTest; |
| 293 doDone = (onDone != null) ? onDone : (() => null); | 293 doDone = (onDone != null) ? onDone : (() => null); |
| (...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1393 * $noCrash tests are expected to be flaky but not crash | 1393 * $noCrash tests are expected to be flaky but not crash |
| 1394 * $pass tests are expected to pass | 1394 * $pass tests are expected to pass |
| 1395 * $failOk tests are expected to fail that we won't fix | 1395 * $failOk tests are expected to fail that we won't fix |
| 1396 * $fail tests are expected to fail that we should fix | 1396 * $fail tests are expected to fail that we should fix |
| 1397 * $crash tests are expected to crash that we should fix | 1397 * $crash tests are expected to crash that we should fix |
| 1398 * $timeout tests are allowed to timeout | 1398 * $timeout tests are allowed to timeout |
| 1399 """; | 1399 """; |
| 1400 print(report); | 1400 print(report); |
| 1401 } | 1401 } |
| 1402 } | 1402 } |
| OLD | NEW |