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

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

Issue 12295016: Add deletion of temp directory. This test leaves temp directories around. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 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/directory_list_nonexistent_test.dart
diff --git a/tests/standalone/io/directory_list_nonexistent_test.dart b/tests/standalone/io/directory_list_nonexistent_test.dart
index 81c9ac0db7c464fb72948137b9531d5bf70a61d5..e07cb220b91b8bac719772f2f4480e2782e7a389 100644
--- a/tests/standalone/io/directory_list_nonexistent_test.dart
+++ b/tests/standalone/io/directory_list_nonexistent_test.dart
@@ -11,16 +11,19 @@ import "dart:io";
import "dart:isolate";
void testListNonExistent() {
+ var keepAlive = new ReceivePort();
new Directory("").createTemp().then((d) {
d.delete().then((ignore) {
Expect.throws(() => d.listSync(), (e) => e is DirectoryIOException);
Expect.throws(() => d.listSync(recursive: true),
(e) => e is DirectoryIOException);
+ keepAlive.close();
});
});
}
void testListTooLongName() {
+ var keepAlive = new ReceivePort();
new Directory("").createTemp().then((d) {
var subDirName = 'subdir';
var subDir = new Directory("${d.path}/$subDirName");
@@ -37,6 +40,8 @@ void testListTooLongName() {
(e) => e is DirectoryIOException);
Expect.throws(() => long.listSync(recursive: true),
(e) => e is DirectoryIOException);
+ d.deleteSync(recursive: true);
+ keepAlive.close();
});
});
}
« 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