| OLD | NEW |
| (Empty) |
| 1 Some test cases identified by Waldemar Horwat in response to this bug: https://b
ugs.webkit.org/show_bug.cgi?id=48101 | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS /(?:a*?){2,}/.exec("aa") is ["aa"] | |
| 7 PASS /(?:a*?){2,}/.exec("a") is ["a"] | |
| 8 PASS /(?:a*?){2,}/.exec("") is [""] | |
| 9 PASS /(?:a*?)/.exec("aa") is [""] | |
| 10 PASS /(?:a*?)/.exec("a") is [""] | |
| 11 PASS /(?:a*?)/.exec("") is [""] | |
| 12 PASS /(?:a*?)(?:a*?)(?:a*?)/.exec("aa") is [""] | |
| 13 PASS /(?:a*?)(?:a*?)(?:a*?)/.exec("a") is [""] | |
| 14 PASS /(?:a*?)(?:a*?)(?:a*?)/.exec("") is [""] | |
| 15 PASS /(?:a*?){2}/.exec("aa") is [""] | |
| 16 PASS /(?:a*?){2}/.exec("a") is [""] | |
| 17 PASS /(?:a*?){2}/.exec("") is [""] | |
| 18 PASS /(?:a*?){2,3}/.exec("aa") is ["a"] | |
| 19 PASS /(?:a*?){2,3}/.exec("a") is ["a"] | |
| 20 PASS /(?:a*?){2,3}/.exec("") is [""] | |
| 21 PASS /(?:a*?)?/.exec("aa") is ["a"] | |
| 22 PASS /(?:a*?)?/.exec("a") is ["a"] | |
| 23 PASS /(?:a*?)?/.exec("") is [""] | |
| 24 PASS /(?:a*?)*/.exec("aa") is ["aa"] | |
| 25 PASS /(?:a*?)*/.exec("a") is ["a"] | |
| 26 PASS /(?:a*?)*/.exec("") is [""] | |
| 27 PASS successfullyParsed is true | |
| 28 | |
| 29 TEST COMPLETE | |
| 30 | |
| OLD | NEW |