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

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

Issue 26968003: Remove DirectoryException and LinkException from dart:io and use FileException instaed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge with master. Created 7 years, 2 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 | « tests/standalone/io/directory_error_test.dart ('k') | tests/standalone/io/directory_test.dart » ('j') | 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 8e4043deba0bcc6f7f99832405d46afbbbed937a..f33303d49812cab43b2e9f07749f77a58a6fd561 100644
--- a/tests/standalone/io/directory_list_nonexistent_test.dart
+++ b/tests/standalone/io/directory_list_nonexistent_test.dart
@@ -16,9 +16,9 @@ void testListNonExistent() {
asyncStart();
Directory.systemTemp.createTemp('dart_directory_list_nonexistent').then((d) {
d.delete().then((ignore) {
- Expect.throws(() => d.listSync(), (e) => e is DirectoryException);
+ Expect.throws(() => d.listSync(), (e) => e is FileSystemException);
Expect.throws(() => d.listSync(recursive: true),
- (e) => e is DirectoryException);
+ (e) => e is FileSystemException);
asyncEnd();
});
});
@@ -39,9 +39,9 @@ void testListTooLongName() {
}
var long = new Directory("${buffer.toString()}");
Expect.throws(() => long.listSync(),
- (e) => e is DirectoryException);
+ (e) => e is FileSystemException);
Expect.throws(() => long.listSync(recursive: true),
- (e) => e is DirectoryException);
+ (e) => e is FileSystemException);
d.deleteSync(recursive: true);
asyncEnd();
});
« no previous file with comments | « tests/standalone/io/directory_error_test.dart ('k') | tests/standalone/io/directory_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698