Index: test/webkit/fast/regex/ecma-regex-examples-expected.txt |
diff --git a/test/webkit/apply-varargs-expected.txt b/test/webkit/fast/regex/ecma-regex-examples-expected.txt |
similarity index 68% |
copy from test/webkit/apply-varargs-expected.txt |
copy to test/webkit/fast/regex/ecma-regex-examples-expected.txt |
index 9c0ccb95ec1b6acf2601f1b70d3d6f31f048f9b5..7ac4113b067fda4e117b4dcd477acd4f2705dc9c 100644 |
--- a/test/webkit/apply-varargs-expected.txt |
+++ b/test/webkit/fast/regex/ecma-regex-examples-expected.txt |
@@ -21,20 +21,23 @@ |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-Test that we properly fill in missing args with "undefined" in JIT code. |
+This page tests the regex examples from the ECMA-262 specification. |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
-PASS caller(0) is undefined |
-PASS caller(1) is undefined |
-PASS caller(2) is undefined |
-PASS caller(3) is undefined |
-PASS caller(4) is undefined |
-PASS caller(5) is undefined |
-PASS caller(6) is undefined |
-PASS caller(7) is undefined |
-PASS caller(8) is undefined |
+PASS regex01.exec("abc") is ["a"] |
+PASS regex02.exec("abc") is ["abc", "a", "a", undefined, "bc", undefined, "bc"] |
+PASS regex03.exec("abcdefghi") is ["abcde"] |
+PASS regex04.exec("abcdefghi") is ["abc"] |
+PASS regex05.exec("aabaac") is ["aaba", "ba"] |
+PASS "aaaaaaaaaa,aaaaaaaaaaaaaaa".replace(regex06,"$1") is "aaaaa" |
+PASS regex07.exec("zaacbbbcac") is ["zaacbbbcac", "z", "ac", "a", undefined, "c"] |
+PASS regex08.exec("b") is ["", undefined] |
+PASS regex09.exec("baaaac") is ["b", ""] |
+PASS regex10.exec("baaabac") is ["", "aaa"] |
+PASS regex11.exec("baaabac") is ["aba", "a"] |
+PASS regex12.exec("baaabaac") is ["baaabaac", "ba", undefined, "abaac"] |
PASS successfullyParsed is true |
TEST COMPLETE |