1 1.0 Direct Testing, no starting at Parameter
2 * The indexOf String "Hello" is 0
3 * The indexOf String "Hi" is 1
4 * The indexOf Boolean 'true' is 2
5 * The indexOf Number '5' is 3
6 * The indexOf Number '9' is 5
8 2.0 A firstIndex parameter of 1 (positive offset test)
9 * The indexOf String "Hi" is 1
10 * The indexOf Boolean 'true' is 2
11 * The indexOf Number 5 is 3
12 * The indexOf Number 9 is 5
14 3.0 A firstIndex parameter of -4 (negative offset test)
15 * The indexOf String "Hi" is -1
16 * The indexOf Boolean 'true' is -1
17 * The indexOf Number 5 is 4
18 * The indexOf Number 9 is 5
20 4.0 A big positive firstIndex of 1000, to test the firstIndex > length
21 * The indexOf Number '9' is -1
23 5.0 A big positive firstIndex of 4294967301, to test when firstIndex > width of int (32-bits)
24 * The indexOf Boolean 'true' is -1
27 * No arguments passed: 7
28 * No arguments passed: -1
31 * The indexOf null is 6
32 * The indexOf null is -1
35 * The indexOf String "Hello" is 0
38 * The indexOf String "Hi" is 0
41 * The indexOf Boolean 'true' is 2
43 11.0 Negative firstIndex bigger than the length of the array
44 * The indexOf Boolean 'true' is 2
46 12.0 Negative firstIndex bigger than 32-bits
47 * The indexOf Boolean 'true' is 2
49 13.0 Looking for undefined
50 * The indexOf undefined is 7
51 * The indexOf undefined is -1
52 * The indexOf undefined is 3
53 * The indexOf undefined is -1
54 * The indexOf undefined is -1
56 14.0 Object using the Array prototype
57 * The indexOf String "Hello" is 0
58 * The indexOf String "Hi" is 1
59 * The indexOf Boolean 'true' is 2
60 * The indexOf Number '5' is 3
61 * The indexOf Number '9' is 5