Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Unified Diff: tests/standalone/io/directory_test.dart

Issue 12473003: Remove deprecated StringBuffer.add, addAll and addCharCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698