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

Unified Diff: tests/standalone/io/directory_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_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 bb6b7d133845ea87ab9b2d83751d1a9ae484522b..405366653ad1bdd391b2c98b4d8c9aed2404a194 100644
--- a/tests/standalone/io/directory_test.dart
+++ b/tests/standalone/io/directory_test.dart
@@ -111,7 +111,7 @@ class DirectoryTest {
stream.listen(
(_) => Expect.fail("Listing of non-existing directory should fail"),
onError: (error) {
- Expect.isTrue(error is DirectoryException);
+ Expect.isTrue(error is FileSystemException);
});
}
Directory.systemTemp.createTemp('dart_directory').then((d) {
@@ -130,7 +130,7 @@ class DirectoryTest {
stream.listen(
(_) => Expect.fail("Listing of non-existing directory should fail"),
onError: (error) {
- Expect.isTrue(error is DirectoryException);
+ Expect.isTrue(error is FileSystemException);
if (++errors == 2) {
d.delete(recursive: true).then((_) {
asyncEnd();
@@ -161,7 +161,7 @@ class DirectoryTest {
future.then((ignore) {
Expect.fail("Deletion of non-existing directory should fail");
}).catchError((error) {
- Expect.isTrue(error is DirectoryException);
+ Expect.isTrue(error is FileSystemException);
});
}
@@ -189,7 +189,7 @@ class DirectoryTest {
var long = new Directory("${buffer.toString()}");
var errors = 0;
onError(error) {
- Expect.isTrue(error is DirectoryException);
+ Expect.isTrue(error is FileSystemException);
if (++errors == 2) {
d.delete(recursive: true).then((_) => asyncEnd());
}
@@ -507,7 +507,7 @@ testCreateTempErrorSync() {
var location = illegalTempDirectoryLocation();
if (location != null) {
Expect.throws(() => new Directory(location).createTempSync('dart_tempdir'),
- (e) => e is DirectoryException);
+ (e) => e is FileSystemException);
}
}
@@ -568,7 +568,7 @@ testCreateDirExistingFileSync() {
file.createSync();
Expect.isTrue(file.existsSync());
Expect.throws(new Directory(path).createSync,
- (e) => e is DirectoryException);
+ (e) => e is FileSystemException);
temp.deleteSync(recursive: true);
}
@@ -584,7 +584,7 @@ testCreateDirExistingFile() {
subDir.create()
.then((_) { Expect.fail("dir create should fail on existing file"); })
.catchError((error) {
- Expect.isTrue(error is DirectoryException);
+ Expect.isTrue(error is FileSystemException);
temp.delete(recursive: true).then((_) {
asyncEnd();
});
« 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