| OLD | NEW |
| (Empty) |
| 1 This test checks for regression against 4147: Array.toString() and toLocaleStrin
g() improvements from KDE KJS. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS [1].toString() is '1' | |
| 7 PASS [1].toLocaleString() is 'toLocaleString' | |
| 8 FAIL [1].toLocaleString() should be 1. Threw exception TypeError: Property 'toLo
caleString' of object [object Number] is not a function | |
| 9 PASS [/r/].toString() is 'toString2' | |
| 10 PASS [/r/].toLocaleString() is 'toLocaleString2' | |
| 11 FAIL [/r/].toLocaleString() should be toString2. Threw exception TypeError: Prop
erty 'toLocaleString' of object [object RegExp] is not a function | |
| 12 PASS caught is true | |
| 13 PASS successfullyParsed is true | |
| 14 | |
| 15 TEST COMPLETE | |
| 16 | |
| OLD | NEW |