From 4ff9d87cb4423613fc06a8dc3ba749ed5b90ccfa Mon Sep 17 00:00:00 2001 From: Moonchild Date: Thu, 4 Feb 2021 21:29:55 +0000 Subject: [PATCH] Issue #1726 - Add verification test for string.replaceAll() --- .../ecma_2021/manual/test-replaceall.html | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 js/src/tests/ecma_2021/manual/test-replaceall.html diff --git a/js/src/tests/ecma_2021/manual/test-replaceall.html b/js/src/tests/ecma_2021/manual/test-replaceall.html new file mode 100644 index 0000000000..9f90525493 --- /dev/null +++ b/js/src/tests/ecma_2021/manual/test-replaceall.html @@ -0,0 +1,63 @@ + + + + +Replace "a" with "b": +
+Replace "a" with "aa": +
+Replace "" with "b": +
+Replace "old" with special pattern "new (was: $&)": +
+Replace "/[0-9]/g" with "b": +
+Replace "/[0-9]/" with "b" (Throws): +
+ + +