Lines Matching refs:function
103 function get() { return 43; };
104 function set() {};
204 var push_call = function(a) { a.push(10); return a; }
205 var pop_call = function(a) { return a.pop(); }
212 assertThrows(function() { push_call(obj); }, TypeError);
213 assertThrows(function() { pop_call(obj); }, TypeError);
216 assertDoesNotThrow(function() { push_call(objControl); });
217 assertDoesNotThrow(function() { pop_call(objControl); });
219 assertDoesNotThrow(function() { obj.push(); });
220 assertThrows(function() { obj.push(3); }, TypeError);
221 assertThrows(function() { obj.pop(); }, TypeError);
222 assertThrows(function() { obj.shift(3); }, TypeError);
223 assertDoesNotThrow(function() { obj.unshift(); });
224 assertThrows(function() { obj.unshift(1); }, TypeError);
225 assertThrows(function() { obj.splice(0, 0, 100, 101, 102); }, TypeError);
226 assertDoesNotThrow(function() { obj.splice(0,0); });
228 assertDoesNotThrow(function() { objControl.push(3); });
229 assertDoesNotThrow(function() { objControl.pop(); });
230 assertDoesNotThrow(function() { objControl.shift(3); });
231 assertDoesNotThrow(function() { objControl.unshift(); });
232 assertDoesNotThrow(function() { objControl.splice(0, 0, 100, 101, 102); });
237 push_call = function(a) { a.push(1000); return a; }
239 var shift_call = function(a) { a.shift(1000); return a; }
252 assertThrows(function() { push_call(obj); }, TypeError);
253 assertThrows(function() { shift_call(obj); }, TypeError);
256 assertDoesNotThrow(function() { push_call(objControl); });
257 assertDoesNotThrow(function() { shift_call(objControl); });
262 assertDoesNotThrow(function() { obj.splice(0,1,100); });
264 assertDoesNotThrow(function() { obj.splice(0,2,1,2); });
265 assertDoesNotThrow(function() { obj.splice(1,2,1,2); });
267 assertDoesNotThrow(function() { obj.splice(1,2000,1,2); });
268 assertThrows(function() { obj.splice(0,0,1); }, TypeError);
269 assertThrows(function() { obj.splice(1,2000,1,2,3); }, TypeError);