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

Unified Diff: tests/standalone/io/async_catch_errors_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 | « sdk/lib/io/link.dart ('k') | tests/standalone/io/directory_chdir_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/async_catch_errors_test.dart
diff --git a/tests/standalone/io/async_catch_errors_test.dart b/tests/standalone/io/async_catch_errors_test.dart
index 0a9568da11fde6bc4a8621de77f28d7b77b8c7a4..4ebccb63d70c5c29d93ade34f1036a5a798b0c39 100644
--- a/tests/standalone/io/async_catch_errors_test.dart
+++ b/tests/standalone/io/async_catch_errors_test.dart
@@ -24,14 +24,14 @@ Future testSocketException() {
return completer.future;
}
-Future testFileException() {
+Future testFileSystemException() {
var completer = new Completer();
runZoned(() {
new File("lol it's not a file\n").openRead().listen(null);
}, onError: (err) {
- if (err is! FileException) Expect.fail("Not expected error: $err");
+ if (err is! FileSystemException) Expect.fail("Not expected error: $err");
completer.complete("file test, ok.");
- events.add("FileException");
+ events.add("FileSystemException");
});
return completer.future;
}
@@ -41,10 +41,10 @@ main() {
// hang if the callbacks are not invoked and the test will time out.
asyncStart();
testSocketException()
- .then((_) => testFileException())
+ .then((_) => testFileSystemException())
.then((_) {
asyncEnd();
- Expect.listEquals(["SocketException", "FileException"],
+ Expect.listEquals(["SocketException", "FileSystemException"],
events);
});
}
« no previous file with comments | « sdk/lib/io/link.dart ('k') | tests/standalone/io/directory_chdir_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698