| Index: tests/standalone/io/file_test.dart
|
| diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
|
| index 2123b896632547c0afcf41d9613311790efc9298..14e4780052a45562affd59ea50a0903afc7b7c74 100644
|
| --- a/tests/standalone/io/file_test.dart
|
| +++ b/tests/standalone/io/file_test.dart
|
| @@ -1015,7 +1015,7 @@ class FileTest {
|
| Expect.listEquals(expected, text.codeUnits);
|
| // First character is not ASCII. The default ASCII decoder will throw.
|
| Expect.throws(() => new File(name).readAsStringSync(encoding: ASCII),
|
| - (e) => e is FormatException);
|
| + (e) => e is FileException);
|
| // We can use an ASCII decoder that inserts the replacement character.
|
| var lenientAscii = const AsciiCodec(allowInvalid: true);
|
| text = new File(name).readAsStringSync(encoding: lenientAscii);
|
|
|