Home | History | Annotate | Download | only in webkit

Lines Matching defs:call

25 "This tests that we can correctly call Function.prototype.call"
28 var myObject = { call: function() { return [myObject, "myObject.call"] } };
31 myFunctionWithCall.call = function (arg1) { return [this, "myFunctionWithCall.call", arg1] };
32 Function.prototype.aliasedCall = Function.prototype.call;
34 shouldBe("myObject.call()", '[myObject, "myObject.call"]');
36 shouldBe("myFunction.call(myObject, 'arg1')", '[myObject, "myFunction", "arg1"]');
37 shouldBe("myFunction.call()", '[this, "myFunction", undefined]');
38 shouldBe("myFunction.call(null)", '[this, "myFunction", undefined]');
39 shouldBe("myFunction.call(undefined)", '[this, "myFunction", undefined]');
44 shouldBe("myFunctionWithCall.call(myObject, 'arg1')", '[myFunctionWithCall, "myFunctionWithCall.call", myObject]');