| 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 * A utility function for test and tools that compensates (at least for very | 6 * A utility function for test and tools that compensates (at least for very |
| 7 * simple cases) for file-dependent programs being run from different | 7 * simple cases) for file-dependent programs being run from different |
| 8 * directories. The important cases are | 8 * directories. The important cases are |
| 9 * -running in the directory that contains the test itself, i.e. | 9 * -running in the directory that contains the test itself, i.e. |
| 10 * pkg/intl/test or a sub-directory. | 10 * pkg/intl/test or a sub-directory. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 } | 46 } |
| 47 if (new Directory( | 47 if (new Directory( |
| 48 path.join(path.current, '..', 'pkg', 'intl')).existsSync()) { | 48 path.join(path.current, '..', 'pkg', 'intl')).existsSync()) { |
| 49 return path.join(path.current, '..', 'pkg', 'intl'); | 49 return path.join(path.current, '..', 'pkg', 'intl'); |
| 50 } | 50 } |
| 51 } | 51 } |
| 52 throw new UnsupportedError( | 52 throw new UnsupportedError( |
| 53 'Cannot find ${path.join('pkg','intl')} directory.'); | 53 'Cannot find ${path.join('pkg','intl')} directory.'); |
| 54 } | 54 } |
| 55 | 55 |
| 56 String get datesRelativeToIntl => path.join('lib', 'src', 'data', 'dates'); | 56 String get datesRelativeToIntl => path.join('lib', 'src', 'data', 'dates'); |
| OLD | NEW |