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 #import('dart:io'); | 5 import "dart:io"; |
6 | 6 |
7 | 7 |
8 createLink(String dst, String link, bool symbolic, void callback()) { | 8 createLink(String dst, String link, bool symbolic, void callback()) { |
9 var args = [ symbolic ? '-s' : '', dst, link ]; | 9 var args = [ symbolic ? '-s' : '', dst, link ]; |
10 var script = 'tests/standalone/io/ln.sh'; | 10 var script = 'tests/standalone/io/ln.sh'; |
11 if (!new File(script).existsSync()) { | 11 if (!new File(script).existsSync()) { |
12 script = '../$script'; | 12 script = '../$script'; |
13 } | 13 } |
14 Process.run(script, args).then((result) { | 14 Process.run(script, args).then((result) { |
15 if (result.exitCode == 0) { | 15 if (result.exitCode == 0) { |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 main() { | 173 main() { |
174 testFileExistsCreate(); | 174 testFileExistsCreate(); |
175 testFileDelete(); | 175 testFileDelete(); |
176 testFileWriteRead(); | 176 testFileWriteRead(); |
177 testDirectoryExistsCreate(); | 177 testDirectoryExistsCreate(); |
178 testDirectoryDelete(); | 178 testDirectoryDelete(); |
179 testDirectoryListing(); | 179 testDirectoryListing(); |
180 testDirectoryListingBrokenLink(); | 180 testDirectoryListingBrokenLink(); |
181 } | 181 } |
OLD | NEW |