summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/js/has-own-property-expected.txt
blob: 55bff26527f4305186b618a0281f7f0206f3858f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
This test verifies the behaviour of Object.prototype.hasOwnProperty, as documented in ECMA-262 rev3 section 15.2.4.5.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


PASS typeof {foo : 'yum'}.hasOwnProperty is "function"
PASS ({foo : 'yum'}).hasOwnProperty('foo') is true
PASS ''.hasOwnProperty('length') is true
PASS ({foo : 'yum'}).hasOwnProperty('bar') is false
PASS ({foo : 'yum'}).hasOwnProperty('toString') is false
PASS ''.hasOwnProperty('toString') is false
PASS successfullyParsed is true

TEST COMPLETE