Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: pkg/intl/test/data_directory.dart

Issue 143453011: pkg/intl: dartfmt (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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');
OLDNEW
« no previous file with comments | « pkg/intl/lib/src/temporary_debugging.dart ('k') | pkg/intl/test/date_time_format_test_stub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698