| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
var gTestfile = 'regress-283477.js'; |
| 7 |
|
| 8 |
var BUGNUMBER = 283477; |
| 9 |
var summary = 'a.lastIndexOf(b, c) should return -1 when there is no match'; |
| 10 |
var actual = ''; |
| 11 |
var expect = ''; |
| 12 |
var status; |
| 13 |
|
| 14 |
enterFunc ('test'); |
| 15 |
printBugNumber(BUGNUMBER); |
| 16 |
printStatus (summary); |
| 17 |
|
| 18 |
status = summary + ' ' + inSection(1) + " " + '"".lastIndexOf("hello", 0);'; |
| 19 |
expect = -1; |
| 20 |
actual = "".lastIndexOf("hello", 0); |
| 21 |
reportCompare(expect, actual, status); |
| 22 |
|
| 23 |
status = summary + ' ' + inSection(2) + " " + ' "".lastIndexOf("hello");'; |
| 24 |
expect = -1; |
| 25 |
actual = "".lastIndexOf("hello"); |
| 26 |
reportCompare(expect, actual, status); |
| 27 |
|
| 28 |
exitFunc ('test'); |