Index: tests/standalone/io/directory_test.dart |
diff --git a/tests/standalone/io/directory_test.dart b/tests/standalone/io/directory_test.dart |
index 47a7b38bc0068551a79fda454ff1f6cd72b70aa6..d6eac48a03daae6dd179e8fc64d43bf91e68cd4d 100644 |
--- a/tests/standalone/io/directory_test.dart |
+++ b/tests/standalone/io/directory_test.dart |
@@ -124,9 +124,9 @@ class DirectoryTest { |
// Construct a long string of the form |
// 'tempdir/subdir/../subdir/../subdir'. |
var buffer = new StringBuffer(); |
- buffer.add(subDir.path); |
+ buffer.write(subDir.path); |
for (var i = 0; i < 1000; i++) { |
- buffer.add("/../${subDirName}"); |
+ buffer.write("/../${subDirName}"); |
} |
var long = new Directory("${buffer.toString()}"); |
setupListHandlers(long.list()); |
@@ -162,9 +162,9 @@ class DirectoryTest { |
// Construct a long string of the form |
// 'tempdir/subdir/../subdir/../subdir'. |
var buffer = new StringBuffer(); |
- buffer.add(subDir.path); |
+ buffer.write(subDir.path); |
for (var i = 0; i < 1000; i++) { |
- buffer.add("/../${subDirName}"); |
+ buffer.write("/../${subDirName}"); |
} |
var long = new Directory("${buffer.toString()}"); |
var errors = 0; |
@@ -196,9 +196,9 @@ class DirectoryTest { |
// Construct a long string of the form |
// 'tempdir/subdir/../subdir/../subdir'. |
var buffer = new StringBuffer(); |
- buffer.add(subDir.path); |
+ buffer.write(subDir.path); |
for (var i = 0; i < 1000; i++) { |
- buffer.add("/../${subDirName}"); |
+ buffer.write("/../${subDirName}"); |
} |
var long = new Directory("${buffer.toString()}"); |
Expect.throws(long.deleteSync); |