| Index: tests/standalone/io/read_into_const_list_test.dart
|
| diff --git a/tests/standalone/io/read_into_const_list_test.dart b/tests/standalone/io/read_into_const_list_test.dart
|
| index 0362f3c31ff398dc0f8a8dac2001477ad8f150d2..576cc3f288bbb243d33a0ae0f437acd3b159a4e2 100644
|
| --- a/tests/standalone/io/read_into_const_list_test.dart
|
| +++ b/tests/standalone/io/read_into_const_list_test.dart
|
| @@ -17,13 +17,14 @@ void main() {
|
|
|
| String filename = getFilename("bin/file_test.cc");
|
| File file = new File(filename);
|
| - InputStream input = file.openInputStream();
|
| - try {
|
| - input.readInto(a, 0, 1);
|
| - Expect.fail("no exception thrown");
|
| - } catch (e) {
|
| - Expect.isTrue(e is UnsupportedError);
|
| - }
|
| - Expect.equals(0, a[0]);
|
| - Expect.equals(0, b[0]);
|
| + file.open().then((input) {
|
| + try {
|
| + input.readListSync(a, 0, 1);
|
| + Expect.fail("no exception thrown");
|
| + } catch (e) {
|
| + Expect.isTrue(e is UnsupportedError);
|
| + }
|
| + Expect.equals(0, a[0]);
|
| + Expect.equals(0, b[0]);
|
| + });
|
| }
|
|
|