tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / fast / js / kde / script-tests / function_constructor.js
1 var myfunc = Function();
2 shouldBe("myfunc.prototype.constructor.__proto__ == Function.prototype","true");
3 shouldBe("myfunc.prototype.constructor.__proto__.__proto__ == Object.prototype","true");
4 shouldBe("myfunc.prototype.constructor == myfunc","true");
5 shouldBe("Function.prototype.constructor == Function","true");
6 shouldBe("myfunc.prototype.toString == Object.prototype.toString","true");
7 shouldBe("myfunc.toString == Function.prototype.toString","true");
8
9 //printValue("myfunc"); = "(Internal function)" ### should display code
10 //printValue("myfunc.prototype.constructor"); = "(Internal function)" ### should display code