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

Unified Diff: tests/standalone/io/link_test.dart

Issue 14166002: dart:io | Add additional test of directory listing of broken links. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/link_test.dart
diff --git a/tests/standalone/io/link_test.dart b/tests/standalone/io/link_test.dart
index bf76f68d9028ac84fd24dbfac8a3ab70062ff469..48555f089b5882a03a28639770cdf939f4bac83d 100644
--- a/tests/standalone/io/link_test.dart
+++ b/tests/standalone/io/link_test.dart
@@ -133,6 +133,16 @@ testCreateSync() {
}
}
Future.wait(futures).then((_) {
+ new Directory(target).deleteSync(recursive: true);
+ for (bool recursive in [true, false]) {
+ for (bool followLinks in [true, false]) {
+ var result = baseDir.listSync(recursive: recursive,
+ followLinks: followLinks);
+ print(result);
Bill Hesse 2013/04/11 10:15:43 Removing the print statement.
+ Expect.equals(1, result.length);
+ Expect.isTrue(result[0] is Link);
+ }
+ }
baseDir.deleteSync(recursive: true);
});
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698