| 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 part of testrunner; | 5 part of testrunner; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Read the contents of a file [fileName] into a [List] of [String]s. | 8 * Read the contents of a file [fileName] into a [List] of [String]s. |
| 9 * If the file does not exist and [errorIfNoFile] is true, throw an | 9 * If the file does not exist and [errorIfNoFile] is true, throw an |
| 10 * exception, else return an empty list. | 10 * exception, else return an empty list. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 if (--dirCount == 0) { | 93 if (--dirCount == 0) { |
| 94 onComplete(files); | 94 onComplete(files); |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 | 97 |
| 98 /** | 98 /** |
| 99 * Get the directory that testrunner lives in; we need it to import | 99 * Get the directory that testrunner lives in; we need it to import |
| 100 * support files into the generated scripts. | 100 * support files into the generated scripts. |
| 101 */ | 101 */ |
| 102 | 102 |
| 103 String get runnerDirectory() { | 103 String get runnerDirectory { |
| 104 var libDirectory = makePathAbsolute(new Options().script); | 104 var libDirectory = makePathAbsolute(new Options().script); |
| 105 return libDirectory.substring(0, | 105 return libDirectory.substring(0, |
| 106 libDirectory.lastIndexOf(Platform.pathSeparator)); | 106 libDirectory.lastIndexOf(Platform.pathSeparator)); |
| 107 } | 107 } |
| OLD | NEW |