Home | History | Annotate | Download | only in mjsunit

Lines Matching full:undefined

29 var undef_array = [0,,2,undefined,4,,6,undefined,8,,10];
33 sparse_array[200] = undefined;
39 sparse_array[800] = undefined;
67 // Find undefined, not holes.
68 assertEquals(3, undef_array.indexOf(undefined));
69 assertEquals(3, undef_array.indexOf(undefined, 3));
70 assertEquals(7, undef_array.indexOf(undefined, 4));
71 assertEquals(7, undef_array.indexOf(undefined, 7));
72 assertEquals(-1, undef_array.indexOf(undefined, 8));
73 assertEquals(3, undef_array.indexOf(undefined, -11));
74 assertEquals(3, undef_array.indexOf(undefined, -8));
75 assertEquals(7, undef_array.indexOf(undefined, -7));
76 assertEquals(7, undef_array.indexOf(undefined, -4));
77 assertEquals(-1, undef_array.indexOf(undefined, -3));
94 assertEquals(200, sparse_array.indexOf(undefined));
95 assertEquals(800, sparse_array.indexOf(undefined, 201));
96 assertEquals(-1, sparse_array.indexOf(undefined, 801));
97 assertEquals(200, sparse_array.indexOf(undefined, -42000));
98 assertEquals(800, sparse_array.indexOf(undefined, 201 - 42000));
99 assertEquals(-1, sparse_array.indexOf(undefined, 801 - 42000));
134 // Find undefined, not holes.
135 assertEquals(7, undef_array.lastIndexOf(undefined));
136 assertEquals(-1, undef_array.lastIndexOf(undefined, 2));
137 assertEquals(3, undef_array.lastIndexOf(undefined, 3));
138 assertEquals(3, undef_array.lastIndexOf(undefined, 6));
139 assertEquals(7, undef_array.lastIndexOf(undefined, 7));
140 assertEquals(7, undef_array.lastIndexOf(undefined, -1));
141 assertEquals(-1, undef_array.lastIndexOf(undefined, -9));
142 assertEquals(3, undef_array.lastIndexOf(undefined, -8));
143 assertEquals(3, undef_array.lastIndexOf(undefined, -5));
144 assertEquals(7, undef_array.lastIndexOf(undefined, -4));
161 assertEquals(800, sparse_array.lastIndexOf(undefined));
162 assertEquals(200, sparse_array.lastIndexOf(undefined, 799));
163 assertEquals(-1, sparse_array.lastIndexOf(undefined, 199));
164 assertEquals(800, sparse_array.lastIndexOf(undefined, -1));
165 assertEquals(200, sparse_array.lastIndexOf(undefined, 799 - 42000));
166 assertEquals(-1, sparse_array.lastIndexOf(undefined, 199 - 42000));