array-sort-expected.txt 710 Bytes
Newer Older
ap@apple.com's avatar
ap@apple.com committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Test that Java arrays work with generic JS array methods.

Also test that they work when passed as the second argument to apply(). This may or may not be correct behavior per LiveConnect spec.

call
PASS array[0] + '' is 'One'
PASS array[1] + '' is 'Three'
PASS array[2] + '' is 'Two'
apply
PASS array[0] + '' is 'One'
PASS array[1] + '' is 'Three'
PASS array[2] + '' is 'Two'
passing array as function arguments, potentially parser-optimized apply
PASS concat.apply({}, array) is 'OneTwoThree'
passing array as function arguments, unoptimized apply
PASS concat["apply"]({}, array) is 'OneTwoThree'
PASS array.length = 5 threw exception RangeError: Range error.
PASS successfullyParsed is true

TEST COMPLETE