Reviewed by Oliver Hunt.
Added new test to check for regression as reported in
https://bugs.webkit.org/show_bug.cgi?id=44600.
* fast/js/script-tests/string-split-double-empty.js: Added.
* fast/js/string-split-double-empty-expected.txt: Added.
* fast/js/string-split-double-empty.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@66075
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2010-08-25 Michael Saboff <msaboff@apple.com>
+
+ Reviewed by Oliver Hunt.
+
+ Added new test to check for regression as reported in
+ https://bugs.webkit.org/show_bug.cgi?id=44600.
+
+ * fast/js/script-tests/string-split-double-empty.js: Added.
+ * fast/js/string-split-double-empty-expected.txt: Added.
+ * fast/js/string-split-double-empty.html: Added.
+
2010-08-25 Martin Robinson <mrobinson@igalia.com>
Skip a test that requires editing delegate dumps.
--- /dev/null
+description(
+'This test checks for a regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=44600">split() function returns wrong answer for second empty split</a>.'
+);
+
+shouldBe('"".split(/s+/)', '[""]');
+shouldBe('"".split(/s+/)', '[""]');
+
+var successfullyParsed = true;
--- /dev/null
+This test checks for a regression against split() function returns wrong answer for second empty split.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS "".split(/s+/) is [""]
+PASS "".split(/s+/) is [""]
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="resources/js-test-style.css">
+<script src="resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script src="script-tests/string-split-double-empty.js"></script>
+<script src="resources/js-test-post.js"></script>
+</body>
+</html>