| Index: tests/standalone/src/io/FileTest.dart
|
| diff --git a/tests/standalone/src/io/FileTest.dart b/tests/standalone/src/io/FileTest.dart
|
| index c9efbcd9522a52753b368272f094c22f70766174..30c0396928c0fa68130576bb270569a15ccf787e 100644
|
| --- a/tests/standalone/src/io/FileTest.dart
|
| +++ b/tests/standalone/src/io/FileTest.dart
|
| @@ -310,23 +310,27 @@ class FileTest {
|
| outStream.write(buffer);
|
| outStream.onNoPendingWrites = () {
|
| outStream.close();
|
| - File file2 = new File(filename);
|
| - OutputStream appendingOutput =
|
| - file2.openOutputStream(FileMode.APPEND);
|
| - appendingOutput.write(buffer);
|
| - appendingOutput.onNoPendingWrites = () {
|
| - appendingOutput.close();
|
| - File file3 = new File(filename);
|
| - file3.open(FileMode.READ, (RandomAccessFile openedFile) {
|
| - openedFile.length((int length) {
|
| - Expect.equals(content.length * 2, length);
|
| - openedFile.close(() {
|
| - file3.delete(() {
|
| - asyncTestDone("testOutputStreamWriteAppend");
|
| + outStream.onClosed = () {
|
| + File file2 = new File(filename);
|
| + OutputStream appendingOutput =
|
| + file2.openOutputStream(FileMode.APPEND);
|
| + appendingOutput.write(buffer);
|
| + appendingOutput.onNoPendingWrites = () {
|
| + appendingOutput.close();
|
| + appendingOutput.onClosed = () {
|
| + File file3 = new File(filename);
|
| + file3.open(FileMode.READ, (RandomAccessFile openedFile) {
|
| + openedFile.length((int length) {
|
| + Expect.equals(content.length * 2, length);
|
| + openedFile.close(() {
|
| + file3.delete(() {
|
| + asyncTestDone("testOutputStreamWriteAppend");
|
| + });
|
| + });
|
| });
|
| });
|
| - });
|
| - });
|
| + };
|
| + };
|
| };
|
| };
|
| asyncTestStarted();
|
|
|