| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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 #library("await_test_config"); | 5 #library("await_test_config"); |
| 6 | 6 |
| 7 #import("../../../tools/testing/dart/test_suite.dart"); | 7 #import("../../../tools/testing/dart/test_suite.dart"); |
| 8 | 8 |
| 9 class AwaitTestSuite extends StandardTestSuite { | 9 class AwaitTestSuite extends StandardTestSuite { |
| 10 AwaitTestSuite(Map configuration) | 10 AwaitTestSuite(Map configuration) |
| 11 : super(configuration, | 11 : super(configuration, |
| 12 "await", | 12 "await", |
| 13 "frog/tests/await/src", | 13 "frog/tests/await/src", |
| 14 ["frog/tests/await/await.status"]); | 14 ["frog/tests/await/await.status"]); |
| 15 | 15 |
| 16 List<String> additionalOptions() { | 16 List<String> additionalOptions(String filename) { |
| 17 // Support running the tests from the frog as well as the | 17 return ['$dartDir/frog/await/awaitc.dart']; |
| 18 // top-level directory. | |
| 19 var awaitFile = new File("await/awaitc.dart"); | |
| 20 if (!awaitFile.existsSync()) { | |
| 21 awaitFile = new File("frog/await/awaitc.dart"); | |
| 22 } | |
| 23 return [awaitFile.fullPathSync()]; | |
| 24 } | 18 } |
| 25 } | 19 } |
| OLD | NEW |