Index: tests/standalone/io/file_non_ascii_test.dart |
diff --git a/tests/standalone/io/file_non_ascii_test.dart b/tests/standalone/io/file_non_ascii_test.dart |
index b117d550739617f2c5feee60ad6231178d4c9585..da136e605bb3f1ea4c5bd462f00d880188d3662a 100644 |
--- a/tests/standalone/io/file_non_ascii_test.dart |
+++ b/tests/standalone/io/file_non_ascii_test.dart |
@@ -19,28 +19,24 @@ main() { |
nonAsciiDir.exists().then((result) { |
Expect.isTrue(result); |
File nonAsciiFile = new File('${nonAsciiDir.path}/æøå.txt'); |
- nonAsciiFile.open(FileMode.WRITE).then((opened) { |
- opened.writeString('æøå').then((_) { |
- opened.close().then((_) { |
- nonAsciiFile.exists().then((result) { |
- Expect.isTrue(result); |
- nonAsciiFile.readAsString().then((contents) { |
- // The contents of the file is precomposed utf8. |
- Expect.equals(precomposed, contents); |
- nonAsciiFile.create().then((_) { |
- nonAsciiFile.directory().then((d) { |
- Expect.isTrue(d.path.endsWith(precomposed) || |
- d.path.endsWith(decomposed)); |
- nonAsciiFile.length().then((length) { |
- Expect.equals(6, length); |
- nonAsciiFile.lastModified().then((_) { |
- nonAsciiFile.fullPath().then((path) { |
- Expect.isTrue(path.endsWith('${precomposed}.txt') || |
- path.endsWith('${decomposed}.txt')); |
- tempDir.delete(recursive: true).then((_) { |
- port.close(); |
- }); |
- }); |
+ nonAsciiFile.writeAsString('æøå').then((_) { |
+ nonAsciiFile.exists().then((result) { |
+ Expect.isTrue(result); |
+ nonAsciiFile.readAsString().then((contents) { |
+ // The contents of the file is precomposed utf8. |
+ Expect.equals(precomposed, contents); |
+ nonAsciiFile.create().then((_) { |
+ nonAsciiFile.directory().then((d) { |
+ Expect.isTrue(d.path.endsWith(precomposed) || |
+ d.path.endsWith(decomposed)); |
+ nonAsciiFile.length().then((length) { |
+ Expect.equals(6, length); |
+ nonAsciiFile.lastModified().then((_) { |
+ nonAsciiFile.fullPath().then((path) { |
+ Expect.isTrue(path.endsWith('${precomposed}.txt') || |
+ path.endsWith('${decomposed}.txt')); |
+ tempDir.delete(recursive: true).then((_) { |
+ port.close(); |
}); |
}); |
}); |