test/script/basic/JDK-8015349.js.EXPECTED

Mon, 07 Apr 2014 21:57:33 +0530

author
sundar
date
Mon, 07 Apr 2014 21:57:33 +0530
changeset 830
3cb09c560108
parent 0
b1a7da25b547
permissions
-rw-r--r--

8039387: Nashorn supports indexed access of List elements, but length property is not supported
Reviewed-by: lagergren, jlaskey

     1 'abc'.lastIndexOf('a', 4) = 0
     2 'abc'.lastIndexOf('b', Infinity) = 1
     3 'abc'.lastIndexOf('a', -1) = 0
     4 'abc'.lastIndexOf('a', -Infinity) = 0
     5 'oracle'.lastIndexOf('u') = -1
     6 'hello'.lastIndexOf('l') = 3
     7 'hello'.lastIndexOf('l', 2) = 2
     8 'hello'.lastIndexOf('l', 3) = 3
     9 'hello'.lastIndexOf('l', 1) = -1

mercurial