tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / fast / js / script-tests / has-own-property.js
1 description(
2 "This test verifies the behaviour of Object.prototype.hasOwnProperty, as documented in ECMA-262 rev3 section 15.2.4.5."
3 );
4
5 shouldBe("typeof {foo : 'yum'}.hasOwnProperty", '"function"');
6
7 shouldBeTrue("({foo : 'yum'}).hasOwnProperty('foo')");
8 shouldBeTrue("''.hasOwnProperty('length')");
9 shouldBeFalse("({foo : 'yum'}).hasOwnProperty('bar')");
10 shouldBeFalse("({foo : 'yum'}).hasOwnProperty('toString')");
11 shouldBeFalse("''.hasOwnProperty('toString')");