Index: test/webkit/fast/js/regexp-non-greedy-parentheses-expected.txt |
diff --git a/test/webkit/arguments-bad-index-expected.txt b/test/webkit/fast/js/regexp-non-greedy-parentheses-expected.txt |
similarity index 74% |
copy from test/webkit/arguments-bad-index-expected.txt |
copy to test/webkit/fast/js/regexp-non-greedy-parentheses-expected.txt |
index 929537823ba09f0a0dc53891aea0bf23fe9014e8..f2b665b887ffceb4fc4897e6eb864c31ed96f04b 100644 |
--- a/test/webkit/arguments-bad-index-expected.txt |
+++ b/test/webkit/fast/js/regexp-non-greedy-parentheses-expected.txt |
@@ -21,15 +21,19 @@ |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-This test checks whether arguments crashes when passed a bad index. |
+Test for regression against Wrong result in case of non-iterative matching of subpatterns in non-greedy cases in YARR Interpreter |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
-PASS indexArguments(1, "a") is "a" |
-PASS indexArguments("1 ", "a") is undefined |
-PASS indexArguments(0xDEADBEEF) is undefined |
-PASS indexArguments(0xFFFFFFFF) is undefined |
+PASS "a".match(/(a)??/) is ["", undefined] |
+PASS "b".match(/(a)??/) is ["", undefined] |
+PASS "ab".match(/(a)??b/) is ["ab", "a"] |
+PASS "aaab".match(/(a+)??b/) is ["aaab", "aaa"] |
+PASS "abbc".match(/(a)??(b+)??c/) is ["abbc", "a", "bb"] |
+PASS "ac".match(/(a)??(b)??c/) is ["ac", "a", undefined] |
+PASS "abc".match(/(a(b)??)??c/) is ["abc", "ab", "b"] |
+PASS "ac".match(/(a(b)??)??c/) is ["ac", "a", undefined] |
PASS successfullyParsed is true |
TEST COMPLETE |