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

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

Issue 16123036: Clean up dart:io exceptions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 1e58f634d47cf25c52b1411bf0131389d17caea5..b5149248deb21f48e8fbca20d5bf626a749fce9f 100644
--- a/tests/standalone/io/directory_list_nonexistent_test.dart
+++ b/tests/standalone/io/directory_list_nonexistent_test.dart
@@ -15,9 +15,9 @@ 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(), (e) => e is DirectoryException);
Expect.throws(() => d.listSync(recursive: true),
- (e) => e is DirectoryIOException);
+ (e) => e is DirectoryException);
keepAlive.close();
});
});
@@ -38,9 +38,9 @@ void testListTooLongName() {
}
var long = new Directory("${buffer.toString()}");
Expect.throws(() => long.listSync(),
- (e) => e is DirectoryIOException);
+ (e) => e is DirectoryException);
Expect.throws(() => long.listSync(recursive: true),
- (e) => e is DirectoryIOException);
+ (e) => e is DirectoryException);
d.deleteSync(recursive: true);
keepAlive.close();
});
« 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