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

Unified Diff: tests/standalone/io/file_read_encoded_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/file_error_test.dart ('k') | tests/standalone/io/file_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_read_encoded_test.dart
diff --git a/tests/standalone/io/file_read_encoded_test.dart b/tests/standalone/io/file_read_encoded_test.dart
index 75d4be61b1a90945ce95c84d5ac682e36ee7257f..984b36637a0567747de9893d4efe088ba5d6c538 100644
--- a/tests/standalone/io/file_read_encoded_test.dart
+++ b/tests/standalone/io/file_read_encoded_test.dart
@@ -14,7 +14,7 @@ void testReadAsString() {
file.writeAsBytesSync([0xb0]);
- Expect.throws(file.readAsStringSync, (e) => e is FileException);
+ Expect.throws(file.readAsStringSync, (e) => e is FileSystemException);
asyncStart();
file.readAsString().then((_) {
@@ -22,7 +22,7 @@ void testReadAsString() {
}).catchError((e) {
tmp.deleteSync(recursive: true);
asyncEnd();
- }, test: (e) => e is FileException);
+ }, test: (e) => e is FileSystemException);
}
void testReadAsLines() {
@@ -33,7 +33,7 @@ void testReadAsLines() {
file.writeAsBytesSync([0xb0]);
- Expect.throws(file.readAsLinesSync, (e) => e is FileException);
+ Expect.throws(file.readAsLinesSync, (e) => e is FileSystemException);
asyncStart();
file.readAsLines().then((_) {
@@ -41,7 +41,7 @@ void testReadAsLines() {
}).catchError((e) {
tmp.deleteSync(recursive: true);
asyncEnd();
- }, test: (e) => e is FileException);
+ }, test: (e) => e is FileSystemException);
}
void main() {
« no previous file with comments | « tests/standalone/io/file_error_test.dart ('k') | tests/standalone/io/file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698