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

Unified Diff: tests/corelib/string_replace_all_test.dart

Issue 1559953002: Revert "js_runtime: streamline stringReplaceAllUnchecked" (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/string_helper.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/string_replace_all_test.dart
diff --git a/tests/corelib/string_replace_all_test.dart b/tests/corelib/string_replace_all_test.dart
index f63a9f7dc80c3e0e17ff02fe1b887e3ed4861d03..299d56ac99aae03506127d8348e4298788256736 100644
--- a/tests/corelib/string_replace_all_test.dart
+++ b/tests/corelib/string_replace_all_test.dart
@@ -46,16 +46,6 @@ testReplaceAll() {
// Test replacing the empty string.
Expect.equals("toAtoBtoCto", "ABC".replaceAll("", "to"));
-
- // Pattern strings containing RegExp metacharacters - these are not
- // interpreted as RegExps.
- Expect.equals(r"$$", "||".replaceAll("|", r"$"));
- Expect.equals(r"$$$$", "||".replaceAll("|", r"$$"));
- Expect.equals(r"x$|x", "x|.|x".replaceAll("|.", r"$"));
- Expect.equals(r"$$", "..".replaceAll(".", r"$"));
- Expect.equals(r"[$$$$]", "[..]".replaceAll(".", r"$$"));
- Expect.equals(r"[$]", "[..]".replaceAll("..", r"$"));
- Expect.equals(r"$$", r"\\".replaceAll(r"\", r"$"));
}
testReplaceAllMapped() {
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/string_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698