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

Unified Diff: tests/corelib/reg_exp_all_matches_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/corelib/reg_exp_all_matches_test.dart
diff --git a/tests/corelib/reg_exp_all_matches_test.dart b/tests/corelib/reg_exp_all_matches_test.dart
index bc31c0b1a3f9bf6db79c83dd49c28f167e056b1d..3e85114e6e8be94ff015126c66bd6131f62eb63e 100644
--- a/tests/corelib/reg_exp_all_matches_test.dart
+++ b/tests/corelib/reg_exp_all_matches_test.dart
@@ -33,7 +33,7 @@ class RegExpAllMatchesTest {
var matches = new RegExp("foo").allMatches("foo foo");
var strbuf = new StringBuffer();
matches.forEach((Match m) {
- strbuf.add(m.group(0));
+ strbuf.write(m.group(0));
});
Expect.equals("foofoo", strbuf.toString());
}
@@ -44,7 +44,7 @@ class RegExpAllMatchesTest {
Expect.equals(4, mapped.length);
var strbuf = new StringBuffer();
for (String s in mapped) {
- strbuf.add(s);
+ strbuf.write(s);
}
Expect.equals("foobarfobarfoobarfobar", strbuf.toString());
}
@@ -57,7 +57,7 @@ class RegExpAllMatchesTest {
Expect.equals(2, filtered.length);
var strbuf = new StringBuffer();
for (Match m in filtered) {
- strbuf.add(m.group(0));
+ strbuf.write(m.group(0));
}
Expect.equals("foofoo", strbuf.toString());
}

Powered by Google App Engine
This is Rietveld 408576698