| Index: tests/standalone/io/file_error_test.dart
|
| diff --git a/tests/standalone/io/file_error_test.dart b/tests/standalone/io/file_error_test.dart
|
| index 27753d6d4609e9ea8b54d91c009c0e87949bcb8a..6ebb5b9ed760302a7a69fea257948a379816725f 100644
|
| --- a/tests/standalone/io/file_error_test.dart
|
| +++ b/tests/standalone/io/file_error_test.dart
|
| @@ -5,6 +5,7 @@
|
| // Dart test program for testing error handling in file I/O.
|
|
|
| import "package:expect/expect.dart";
|
| +import "dart:convert";
|
| import "dart:io";
|
| import "dart:isolate";
|
|
|
| @@ -205,7 +206,7 @@ void testReadAsTextNonExistent() {
|
| Expect.throws(() => file.readAsStringSync(),
|
| (e) => checkOpenNonExistentFileException(e));
|
|
|
| - var readAsStringFuture = file.readAsString(encoding: Encoding.ASCII);
|
| + var readAsStringFuture = file.readAsString(encoding: ASCII);
|
| readAsStringFuture.then((data) => Expect.fail("Unreachable code"))
|
| .catchError((error) {
|
| checkOpenNonExistentFileException(error);
|
| @@ -226,7 +227,7 @@ testReadAsLinesNonExistent() {
|
| Expect.throws(() => file.readAsLinesSync(),
|
| (e) => checkOpenNonExistentFileException(e));
|
|
|
| - var readAsLinesFuture = file.readAsLines(encoding: Encoding.ASCII);
|
| + var readAsLinesFuture = file.readAsLines(encoding: ASCII);
|
| readAsLinesFuture.then((data) => Expect.fail("Unreachable code"))
|
| .catchError((error) {
|
| checkOpenNonExistentFileException(error);
|
|
|