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

Unified Diff: tests/standalone/io/directory_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_list_nonexistent_test.dart ('k') | tests/standalone/io/file_error_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/directory_test.dart
diff --git a/tests/standalone/io/directory_test.dart b/tests/standalone/io/directory_test.dart
index e45534333c37607b9ae9518bfb003bf8d6308f97..659228114cabf43f9d16bd19ec22687736403a66 100644
--- a/tests/standalone/io/directory_test.dart
+++ b/tests/standalone/io/directory_test.dart
@@ -90,7 +90,7 @@ class DirectoryTest {
stream.listen(
(_) => Expect.fail("Listing of non-existing directory should fail"),
onError: (error) {
- Expect.isTrue(error is DirectoryIOException);
+ Expect.isTrue(error is DirectoryException);
});
}
new Directory("").createTemp().then((d) {
@@ -109,7 +109,7 @@ class DirectoryTest {
stream.listen(
(_) => Expect.fail("Listing of non-existing directory should fail"),
onError: (error) {
- Expect.isTrue(error is DirectoryIOException);
+ Expect.isTrue(error is DirectoryException);
if (++errors == 2) {
d.delete(recursive: true).then((_) {
port.close();
@@ -140,7 +140,7 @@ class DirectoryTest {
future.then((ignore) {
Expect.fail("Deletion of non-existing directory should fail");
}).catchError((error) {
- Expect.isTrue(error is DirectoryIOException);
+ Expect.isTrue(error is DirectoryException);
});
}
@@ -168,7 +168,7 @@ class DirectoryTest {
var long = new Directory("${buffer.toString()}");
var errors = 0;
onError(error) {
- Expect.isTrue(error is DirectoryIOException);
+ Expect.isTrue(error is DirectoryException);
if (++errors == 2) {
d.delete(recursive: true).then((ignore) => port.close());
}
@@ -473,7 +473,7 @@ testCreateTempErrorSync() {
var location = illegalTempDirectoryLocation();
if (location != null) {
Expect.throws(new Directory(location).createTempSync,
- (e) => e is DirectoryIOException);
+ (e) => e is DirectoryException);
}
}
@@ -537,7 +537,7 @@ testCreateDirExistingFileSync() {
file.createSync();
Expect.isTrue(file.existsSync());
Expect.throws(new Directory(path).createSync,
- (e) => e is DirectoryIOException);
+ (e) => e is DirectoryException);
temp.deleteSync(recursive: true);
}
@@ -554,7 +554,7 @@ testCreateDirExistingFile() {
subDir.create()
.then((_) { Expect.fail("dir create should fail on existing file"); })
.catchError((error) {
- Expect.isTrue(error is DirectoryIOException);
+ Expect.isTrue(error is DirectoryException);
temp.delete(recursive: true).then((_) {
port.close();
});
« no previous file with comments | « tests/standalone/io/directory_list_nonexistent_test.dart ('k') | tests/standalone/io/file_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698