| OLD | NEW |
| (Empty) |
| 1 This test checks for a regression against String#split is buggy. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS ''.split() is testCode[i][1] | |
| 7 PASS ''.split(/./) is testCode[i][1] | |
| 8 PASS ''.split(/.?/) is testCode[i][1] | |
| 9 PASS ''.split(/.??/) is testCode[i][1] | |
| 10 PASS 'ab'.split(/a*/) is testCode[i][1] | |
| 11 PASS 'ab'.split(/a*?/) is testCode[i][1] | |
| 12 PASS 'ab'.split(/(?:ab)/) is testCode[i][1] | |
| 13 PASS 'ab'.split(/(?:ab)*/) is testCode[i][1] | |
| 14 PASS 'ab'.split(/(?:ab)*?/) is testCode[i][1] | |
| 15 PASS 'test'.split('') is testCode[i][1] | |
| 16 PASS 'test'.split() is testCode[i][1] | |
| 17 PASS '111'.split(1) is testCode[i][1] | |
| 18 PASS 'test'.split(/(?:)/, 2) is testCode[i][1] | |
| 19 PASS 'test'.split(/(?:)/, -1) is testCode[i][1] | |
| 20 PASS 'test'.split(/(?:)/, undefined) is testCode[i][1] | |
| 21 PASS 'test'.split(/(?:)/, null) is testCode[i][1] | |
| 22 PASS 'test'.split(/(?:)/, NaN) is testCode[i][1] | |
| 23 PASS 'test'.split(/(?:)/, true) is testCode[i][1] | |
| 24 PASS 'test'.split(/(?:)/, '2') is testCode[i][1] | |
| 25 PASS 'test'.split(/(?:)/, 'two') is testCode[i][1] | |
| 26 PASS 'a'.split(/-/) is testCode[i][1] | |
| 27 PASS 'a'.split(/-?/) is testCode[i][1] | |
| 28 PASS 'a'.split(/-??/) is testCode[i][1] | |
| 29 PASS 'a'.split(/a/) is testCode[i][1] | |
| 30 PASS 'a'.split(/a?/) is testCode[i][1] | |
| 31 PASS 'a'.split(/a??/) is testCode[i][1] | |
| 32 PASS 'ab'.split(/-/) is testCode[i][1] | |
| 33 PASS 'ab'.split(/-?/) is testCode[i][1] | |
| 34 PASS 'ab'.split(/-??/) is testCode[i][1] | |
| 35 PASS 'a-b'.split(/-/) is testCode[i][1] | |
| 36 PASS 'a-b'.split(/-?/) is testCode[i][1] | |
| 37 PASS 'a-b'.split(/-??/) is testCode[i][1] | |
| 38 PASS 'a--b'.split(/-/) is testCode[i][1] | |
| 39 PASS 'a--b'.split(/-?/) is testCode[i][1] | |
| 40 PASS 'a--b'.split(/-??/) is testCode[i][1] | |
| 41 PASS ''.split(/()()/) is testCode[i][1] | |
| 42 PASS '.'.split(/()()/) is testCode[i][1] | |
| 43 PASS '.'.split(/(.?)(.?)/) is testCode[i][1] | |
| 44 PASS '.'.split(/(.??)(.??)/) is testCode[i][1] | |
| 45 PASS '.'.split(/(.)?(.)?/) is testCode[i][1] | |
| 46 PASS 'A<B>bold</B>and<CODE>coded</CODE>'.split(ecmaSampleRe) is testCode[i][1] | |
| 47 PASS 'tesst'.split(/(s)*/) is testCode[i][1] | |
| 48 PASS 'tesst'.split(/(s)*?/) is testCode[i][1] | |
| 49 PASS 'tesst'.split(/(s*)/) is testCode[i][1] | |
| 50 PASS 'tesst'.split(/(s*?)/) is testCode[i][1] | |
| 51 PASS 'tesst'.split(/(?:s)*/) is testCode[i][1] | |
| 52 PASS 'tesst'.split(/(?=s+)/) is testCode[i][1] | |
| 53 PASS 'test'.split('t') is testCode[i][1] | |
| 54 PASS 'test'.split('es') is testCode[i][1] | |
| 55 PASS 'test'.split(/t/) is testCode[i][1] | |
| 56 PASS 'test'.split(/es/) is testCode[i][1] | |
| 57 PASS 'test'.split(/(t)/) is testCode[i][1] | |
| 58 PASS 'test'.split(/(es)/) is testCode[i][1] | |
| 59 PASS 'test'.split(/(t)(e)(s)(t)/) is testCode[i][1] | |
| 60 PASS '.'.split(/(((.((.??)))))/) is testCode[i][1] | |
| 61 PASS '.'.split(/(((((.??)))))/) is testCode[i][1] | |
| 62 PASS 'hello'.split({toString:function(){return 'e';}}) is ["h", "llo"] | |
| 63 PASS var a = 'hello'.split({toString:function(){separatorToStringCalled='OKAY';r
eturn 'e';}},0); a.push(separatorToStringCalled); a is ["OKAY"] | |
| 64 PASS successfullyParsed is true | |
| 65 | |
| 66 TEST COMPLETE | |
| 67 | |
| OLD | NEW |