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

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

Issue 14251006: Remove AsyncError with Expando. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 8 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/dart_std_io_pipe_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_error_test.dart
diff --git a/tests/standalone/io/directory_error_test.dart b/tests/standalone/io/directory_error_test.dart
index 33418ef175499c719f9689fc2ce07b348256a81a..123954cda822e5a8ac5418cd1d522d410a43488f 100644
--- a/tests/standalone/io/directory_error_test.dart
+++ b/tests/standalone/io/directory_error_test.dart
@@ -35,8 +35,8 @@ void testCreateInNonExistent(Directory temp, Function done) {
Expect.throws(() => inNonExistent.createSync(),
(e) => checkCreateInNonExistentFileException(e));
- inNonExistent.create().catchError((e) {
- checkCreateInNonExistentFileException(e.error);
+ inNonExistent.create().catchError((error) {
+ checkCreateInNonExistentFileException(error);
done();
});
}
@@ -62,8 +62,8 @@ void testCreateTempInNonExistent(Directory temp, Function done) {
Expect.throws(() => nonExistent.createTempSync(),
(e) => checkCreateTempInNonExistentFileException(e));
- nonExistent.createTemp().catchError((e) {
- checkCreateTempInNonExistentFileException(e.error);
+ nonExistent.createTemp().catchError((error) {
+ checkCreateTempInNonExistentFileException(error);
done();
});
}
@@ -84,8 +84,8 @@ void testDeleteNonExistent(Directory temp, Function done) {
Expect.throws(() => nonExistent.deleteSync(),
(e) => checkDeleteNonExistentFileException(e));
- nonExistent.delete().catchError((e) {
- checkDeleteNonExistentFileException(e.error);
+ nonExistent.delete().catchError((error) {
+ checkDeleteNonExistentFileException(error);
done();
});
}
@@ -107,8 +107,8 @@ void testDeleteRecursivelyNonExistent(Directory temp, Function done) {
Expect.throws(() => nonExistent.deleteSync(recursive: true),
(e) => checkDeleteRecursivelyNonExistentFileException(e));
- nonExistent.delete(recursive: true).catchError((e) {
- checkDeleteRecursivelyNonExistentFileException(e.error);
+ nonExistent.delete(recursive: true).catchError((error) {
+ checkDeleteRecursivelyNonExistentFileException(error);
done();
});
}
@@ -130,9 +130,8 @@ bool checkListNonExistentFileException(e) {
}
-bool checkAsyncListNonExistentFileException(e) {
- Expect.isTrue(e is AsyncError);
- return checkListNonExistentFileException(e.error);
+bool checkAsyncListNonExistentFileException(error) {
+ return checkListNonExistentFileException(error);
}
@@ -155,8 +154,8 @@ void testRenameNonExistent(Directory temp, Function done) {
(e) => e is DirectoryIOException);
var renameDone = nonExistent.rename(newPath);
renameDone.then((ignore) => Expect.fail('rename non existent'))
- .catchError((e) {
- Expect.isTrue(e.error is DirectoryIOException);
+ .catchError((error) {
+ Expect.isTrue(error is DirectoryIOException);
done();
});
}
@@ -171,8 +170,8 @@ void testRenameFileAsDirectory(Directory temp, Function done) {
(e) => e is DirectoryIOException);
var renameDone = d.rename(newPath);
renameDone.then((ignore) => Expect.fail('rename file as directory'))
- .catchError((e) {
- Expect.isTrue(e.error is DirectoryIOException);
+ .catchError((error) {
+ Expect.isTrue(error is DirectoryIOException);
done();
});
}
@@ -187,8 +186,8 @@ testRenameOverwriteFile(Directory temp, Function done) {
(e) => e is DirectoryIOException);
var renameDone = temp1.rename(fileName);
renameDone.then((ignore) => Expect.fail('rename dir overwrite file'))
- .catchError((e) {
- Expect.isTrue(e.error is DirectoryIOException);
+ .catchError((error) {
+ Expect.isTrue(error is DirectoryIOException);
temp1.deleteSync(recursive: true);
done();
});
« no previous file with comments | « tests/standalone/io/dart_std_io_pipe_test.dart ('k') | tests/standalone/io/directory_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698