| Index: test/webkit/fast/regex/invalid-range-in-class-expected.txt
|
| diff --git a/test/webkit/arguments-bad-index-expected.txt b/test/webkit/fast/regex/invalid-range-in-class-expected.txt
|
| similarity index 71%
|
| copy from test/webkit/arguments-bad-index-expected.txt
|
| copy to test/webkit/fast/regex/invalid-range-in-class-expected.txt
|
| index 929537823ba09f0a0dc53891aea0bf23fe9014e8..6268eeea652af3376d1cb365ff276ad39688efc5 100644
|
| --- a/test/webkit/arguments-bad-index-expected.txt
|
| +++ b/test/webkit/fast/regex/invalid-range-in-class-expected.txt
|
| @@ -21,15 +21,22 @@
|
| # (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.
|
| +This page tests invalid character ranges in character classes.
|
|
|
| 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-c]+/.exec("-acbd"); is ["acb"]
|
| +PASS /[a\-c]+/.exec("-acbd") is ["-ac"]
|
| +PASS /[c-a]+/.exec("-acbd"); threw exception SyntaxError: Invalid regular expression: /[c-a]+/: Range out of order in character class.
|
| +PASS /[\d-x]+/.exec("1-3xy"); is ["1-3x"]
|
| +PASS /[x-\d]+/.exec("1-3xy"); is ["1-3x"]
|
| +PASS /[\d-\d]+/.exec("1-3xy"); is ["1-3"]
|
| +PASS /[\d-a-z]+/.exec("az1-3y"); is ["az1-3"]
|
| +PASS /[\d\-x]+/.exec("1-3xy"); is ["1-3x"]
|
| +PASS /[x\-\d]+/.exec("1-3xy"); is ["1-3x"]
|
| +PASS /[\d\-\d]+/.exec("1-3xy"); is ["1-3"]
|
| +PASS /[\d-]+/.exec("1-3xy") is ["1-3"]
|
| PASS successfullyParsed is true
|
|
|
| TEST COMPLETE
|
|
|