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

Side by Side Diff: tests/standalone/io/file_system_links_test.dart

Issue 11570005: Remove old #import, #source, and #library syntax from tests/standalone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 #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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698