Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / js / getOwnPropertyDescriptor-expected.txt
1 Test to ensure correct behaviour of Object.getOwnPropertyDescriptor
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 PASS Object.getOwnPropertyDescriptor({}, 'undefinedProperty') is undefined.
7 PASS Object.getOwnPropertyDescriptor({definedProperty:'defined'}, 'definedProperty').value is "defined"
8 PASS Object.getOwnPropertyDescriptor({definedProperty:'defined'}, 'definedProperty').hasOwnProperty('get') is false
9 PASS Object.getOwnPropertyDescriptor({definedProperty:'defined'}, 'definedProperty').hasOwnProperty('set') is false
10 PASS Object.getOwnPropertyDescriptor({definedProperty:'defined'}, 'definedProperty').enumerable is true
11 PASS Object.getOwnPropertyDescriptor({definedProperty:'defined'}, 'definedProperty').configurable is true
12 PASS Object.getOwnPropertyDescriptor(Array.prototype, 'concat').value is Array.prototype.concat
13 PASS Object.getOwnPropertyDescriptor(Array.prototype, 'concat').hasOwnProperty('get') is false
14 PASS Object.getOwnPropertyDescriptor(Array.prototype, 'concat').hasOwnProperty('set') is false
15 PASS Object.getOwnPropertyDescriptor(Array.prototype, 'concat').enumerable is false
16 PASS Object.getOwnPropertyDescriptor(Array.prototype, 'concat').configurable is true
17 PASS Object.getOwnPropertyDescriptor(Date.prototype, 'toISOString').value is Date.prototype.toISOString
18 PASS Object.getOwnPropertyDescriptor(Date.prototype, 'toISOString').hasOwnProperty('get') is false
19 PASS Object.getOwnPropertyDescriptor(Date.prototype, 'toISOString').hasOwnProperty('set') is false
20 PASS Object.getOwnPropertyDescriptor(Date.prototype, 'toISOString').enumerable is false
21 PASS Object.getOwnPropertyDescriptor(Date.prototype, 'toISOString').configurable is true
22 PASS Object.getOwnPropertyDescriptor(String.prototype, 'concat').value is String.prototype.concat
23 PASS Object.getOwnPropertyDescriptor(String.prototype, 'concat').hasOwnProperty('get') is false
24 PASS Object.getOwnPropertyDescriptor(String.prototype, 'concat').hasOwnProperty('set') is false
25 PASS Object.getOwnPropertyDescriptor(String.prototype, 'concat').enumerable is false
26 PASS Object.getOwnPropertyDescriptor(String.prototype, 'concat').configurable is true
27 PASS Object.getOwnPropertyDescriptor(RegExp.prototype, 'exec').value is RegExp.prototype.exec
28 PASS Object.getOwnPropertyDescriptor(RegExp.prototype, 'exec').hasOwnProperty('get') is false
29 PASS Object.getOwnPropertyDescriptor(RegExp.prototype, 'exec').hasOwnProperty('set') is false
30 PASS Object.getOwnPropertyDescriptor(RegExp.prototype, 'exec').enumerable is false
31 PASS Object.getOwnPropertyDescriptor(RegExp.prototype, 'exec').configurable is true
32 PASS Object.getOwnPropertyDescriptor(document.__proto__.__proto__, 'createElement').value is document.createElement
33 PASS Object.getOwnPropertyDescriptor(document.__proto__.__proto__, 'createElement').hasOwnProperty('get') is false
34 PASS Object.getOwnPropertyDescriptor(document.__proto__.__proto__, 'createElement').hasOwnProperty('set') is false
35 PASS Object.getOwnPropertyDescriptor(document.__proto__.__proto__, 'createElement').enumerable is true
36 PASS Object.getOwnPropertyDescriptor(document.__proto__.__proto__, 'createElement').configurable is false
37 PASS Object.getOwnPropertyDescriptor(Number, 'NEGATIVE_INFINITY').value is Number.NEGATIVE_INFINITY
38 PASS Object.getOwnPropertyDescriptor(Number, 'NEGATIVE_INFINITY').hasOwnProperty('get') is false
39 PASS Object.getOwnPropertyDescriptor(Number, 'NEGATIVE_INFINITY').hasOwnProperty('set') is false
40 PASS Object.getOwnPropertyDescriptor(Number, 'NEGATIVE_INFINITY').enumerable is false
41 PASS Object.getOwnPropertyDescriptor(Number, 'NEGATIVE_INFINITY').configurable is false
42 FAIL Object.getOwnPropertyDescriptor(RegExp, '$_').value should be  (of type string). Was undefined (of type undefined).
43 FAIL Object.getOwnPropertyDescriptor(RegExp, '$_').hasOwnProperty('get') should be false. Was true.
44 FAIL Object.getOwnPropertyDescriptor(RegExp, '$_').hasOwnProperty('set') should be false. Was true.
45 PASS Object.getOwnPropertyDescriptor(RegExp, '$_').enumerable is false
46 FAIL Object.getOwnPropertyDescriptor(RegExp, '$_').configurable should be true. Was false.
47 PASS Object.getOwnPropertyDescriptor(/a/g, 'global').value is true
48 PASS Object.getOwnPropertyDescriptor(/a/g, 'global').hasOwnProperty('get') is false
49 PASS Object.getOwnPropertyDescriptor(/a/g, 'global').hasOwnProperty('set') is false
50 PASS Object.getOwnPropertyDescriptor(/a/g, 'global').enumerable is false
51 PASS Object.getOwnPropertyDescriptor(/a/g, 'global').configurable is false
52 PASS Object.getOwnPropertyDescriptor(Node, 'DOCUMENT_POSITION_DISCONNECTED').value is Node.DOCUMENT_POSITION_DISCONNECTED
53 PASS Object.getOwnPropertyDescriptor(Node, 'DOCUMENT_POSITION_DISCONNECTED').hasOwnProperty('get') is false
54 PASS Object.getOwnPropertyDescriptor(Node, 'DOCUMENT_POSITION_DISCONNECTED').hasOwnProperty('set') is false
55 PASS Object.getOwnPropertyDescriptor(Node, 'DOCUMENT_POSITION_DISCONNECTED').enumerable is true
56 PASS Object.getOwnPropertyDescriptor(Node, 'DOCUMENT_POSITION_DISCONNECTED').configurable is false
57 PASS Object.getOwnPropertyDescriptor(Math, 'sin').value is Math.sin
58 PASS Object.getOwnPropertyDescriptor(Math, 'sin').hasOwnProperty('get') is false
59 PASS Object.getOwnPropertyDescriptor(Math, 'sin').hasOwnProperty('set') is false
60 PASS Object.getOwnPropertyDescriptor(Math, 'sin').enumerable is false
61 PASS Object.getOwnPropertyDescriptor(Math, 'sin').configurable is true
62 PASS Object.getOwnPropertyDescriptor([1,2,3], 0).value is 1
63 PASS Object.getOwnPropertyDescriptor([1,2,3], 0).hasOwnProperty('get') is false
64 PASS Object.getOwnPropertyDescriptor([1,2,3], 0).hasOwnProperty('set') is false
65 PASS Object.getOwnPropertyDescriptor([1,2,3], 0).enumerable is true
66 PASS Object.getOwnPropertyDescriptor([1,2,3], 0).configurable is true
67 PASS Object.getOwnPropertyDescriptor([1,2,3], 'length').value is 3
68 PASS Object.getOwnPropertyDescriptor([1,2,3], 'length').hasOwnProperty('get') is false
69 PASS Object.getOwnPropertyDescriptor([1,2,3], 'length').hasOwnProperty('set') is false
70 PASS Object.getOwnPropertyDescriptor([1,2,3], 'length').enumerable is false
71 PASS Object.getOwnPropertyDescriptor([1,2,3], 'length').configurable is false
72 PASS Object.getOwnPropertyDescriptor([1,2,3], 'length').value is 3
73 PASS Object.getOwnPropertyDescriptor([1,2,3], 'length').hasOwnProperty('get') is false
74 PASS Object.getOwnPropertyDescriptor([1,2,3], 'length').hasOwnProperty('set') is false
75 PASS Object.getOwnPropertyDescriptor([1,2,3], 'length').enumerable is false
76 PASS Object.getOwnPropertyDescriptor([1,2,3], 'length').configurable is false
77 PASS Object.getOwnPropertyDescriptor(/(a)*/g.exec('a'), 0).value is 'a'
78 PASS Object.getOwnPropertyDescriptor(/(a)*/g.exec('a'), 0).hasOwnProperty('get') is false
79 PASS Object.getOwnPropertyDescriptor(/(a)*/g.exec('a'), 0).hasOwnProperty('set') is false
80 PASS Object.getOwnPropertyDescriptor(/(a)*/g.exec('a'), 0).enumerable is true
81 PASS Object.getOwnPropertyDescriptor(/(a)*/g.exec('a'), 0).configurable is true
82 PASS Object.getOwnPropertyDescriptor(/(a)*/g.exec('a'), 'length').value is 2
83 PASS Object.getOwnPropertyDescriptor(/(a)*/g.exec('a'), 'length').hasOwnProperty('get') is false
84 PASS Object.getOwnPropertyDescriptor(/(a)*/g.exec('a'), 'length').hasOwnProperty('set') is false
85 PASS Object.getOwnPropertyDescriptor(/(a)*/g.exec('a'), 'length').enumerable is false
86 PASS Object.getOwnPropertyDescriptor(/(a)*/g.exec('a'), 'length').configurable is false
87 PASS Object.getOwnPropertyDescriptor(function(){}, 'length').value is 0
88 PASS Object.getOwnPropertyDescriptor(function(){}, 'length').hasOwnProperty('get') is false
89 PASS Object.getOwnPropertyDescriptor(function(){}, 'length').hasOwnProperty('set') is false
90 PASS Object.getOwnPropertyDescriptor(function(){}, 'length').enumerable is false
91 PASS Object.getOwnPropertyDescriptor(function(){}, 'length').configurable is false
92 PASS Object.getOwnPropertyDescriptor(Math.sin, 'length').value is 1
93 PASS Object.getOwnPropertyDescriptor(Math.sin, 'length').hasOwnProperty('get') is false
94 PASS Object.getOwnPropertyDescriptor(Math.sin, 'length').hasOwnProperty('set') is false
95 PASS Object.getOwnPropertyDescriptor(Math.sin, 'length').enumerable is false
96 PASS Object.getOwnPropertyDescriptor(Math.sin, 'length').configurable is false
97 PASS Object.getOwnPropertyDescriptor(Math.sin, 'name').value is 'sin'
98 PASS Object.getOwnPropertyDescriptor(Math.sin, 'name').hasOwnProperty('get') is false
99 PASS Object.getOwnPropertyDescriptor(Math.sin, 'name').hasOwnProperty('set') is false
100 PASS Object.getOwnPropertyDescriptor(Math.sin, 'name').enumerable is false
101 PASS Object.getOwnPropertyDescriptor(Math.sin, 'name').configurable is false
102 PASS Object.getOwnPropertyDescriptor(global, 'global').value is global
103 PASS Object.getOwnPropertyDescriptor(global, 'global').hasOwnProperty('get') is false
104 PASS Object.getOwnPropertyDescriptor(global, 'global').hasOwnProperty('set') is false
105 PASS Object.getOwnPropertyDescriptor(global, 'global').enumerable is true
106 PASS Object.getOwnPropertyDescriptor(global, 'global').configurable is false
107 PASS Object.getOwnPropertyDescriptor(global, 'undefined').value is undefined
108 PASS Object.getOwnPropertyDescriptor(global, 'undefined').hasOwnProperty('get') is false
109 PASS Object.getOwnPropertyDescriptor(global, 'undefined').hasOwnProperty('set') is false
110 PASS Object.getOwnPropertyDescriptor(global, 'undefined').enumerable is false
111 PASS Object.getOwnPropertyDescriptor(global, 'undefined').configurable is false
112 PASS Object.getOwnPropertyDescriptor(global, 'NaN').value is NaN
113 PASS Object.getOwnPropertyDescriptor(global, 'NaN').hasOwnProperty('get') is false
114 PASS Object.getOwnPropertyDescriptor(global, 'NaN').hasOwnProperty('set') is false
115 PASS Object.getOwnPropertyDescriptor(global, 'NaN').enumerable is false
116 PASS Object.getOwnPropertyDescriptor(global, 'NaN').configurable is false
117 PASS Object.getOwnPropertyDescriptor(global, 'Infinity').value is Infinity
118 PASS Object.getOwnPropertyDescriptor(global, 'Infinity').hasOwnProperty('get') is false
119 PASS Object.getOwnPropertyDescriptor(global, 'Infinity').hasOwnProperty('set') is false
120 PASS Object.getOwnPropertyDescriptor(global, 'Infinity').enumerable is false
121 PASS Object.getOwnPropertyDescriptor(global, 'Infinity').configurable is false
122 PASS Object.getOwnPropertyDescriptor(global, 'window').value is global
123 PASS Object.getOwnPropertyDescriptor(global, 'window').hasOwnProperty('get') is false
124 PASS Object.getOwnPropertyDescriptor(global, 'window').hasOwnProperty('set') is false
125 PASS Object.getOwnPropertyDescriptor(global, 'window').enumerable is true
126 PASS Object.getOwnPropertyDescriptor(global, 'window').configurable is false
127 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').value is XMLHttpRequest
128 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').hasOwnProperty('get') is false
129 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').hasOwnProperty('set') is false
130 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').enumerable is false
131 PASS Object.getOwnPropertyDescriptor(global, 'XMLHttpRequest').configurable is true
132 PASS Object.getOwnPropertyDescriptor(global, 'length').value is global.length
133 PASS Object.getOwnPropertyDescriptor(global, 'length').hasOwnProperty('get') is false
134 PASS Object.getOwnPropertyDescriptor(global, 'length').hasOwnProperty('set') is false
135 PASS Object.getOwnPropertyDescriptor(global, 'length').enumerable is true
136 FAIL Object.getOwnPropertyDescriptor(global, 'length').configurable should be false. Was true.
137 FAIL Object.getOwnPropertyDescriptor(global, 0).value should be [object Window]. Threw exception TypeError: Cannot read property 'value' of undefined
138 FAIL Object.getOwnPropertyDescriptor(global, 0).hasOwnProperty('get') should be false. Threw exception TypeError: Cannot call method 'hasOwnProperty' of undefined
139 FAIL Object.getOwnPropertyDescriptor(global, 0).hasOwnProperty('set') should be false. Threw exception TypeError: Cannot call method 'hasOwnProperty' of undefined
140 FAIL Object.getOwnPropertyDescriptor(global, 0).enumerable should be false. Threw exception TypeError: Cannot read property 'enumerable' of undefined
141 FAIL Object.getOwnPropertyDescriptor(global, 0).configurable should be false. Threw exception TypeError: Cannot read property 'configurable' of undefined
142 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'length').value is 1
143 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'length').hasOwnProperty('get') is false
144 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'length').hasOwnProperty('set') is false
145 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'length').enumerable is true
146 FAIL Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 'length').configurable should be false. Was true.
147 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 0).value is document.getElementsByTagName('div')[0]
148 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 0).hasOwnProperty('get') is false
149 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 0).hasOwnProperty('set') is false
150 PASS Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 0).enumerable is true
151 FAIL Object.getOwnPropertyDescriptor(document.getElementsByTagName('div'), 0).configurable should be false. Was true.
152 PASS Object.getOwnPropertyDescriptor(document.getElementsByClassName('pass'), 0).value is document.getElementsByClassName('pass')[0]
153 PASS Object.getOwnPropertyDescriptor(document.getElementsByClassName('pass'), 0).hasOwnProperty('get') is false
154 PASS Object.getOwnPropertyDescriptor(document.getElementsByClassName('pass'), 0).hasOwnProperty('set') is false
155 PASS Object.getOwnPropertyDescriptor(document.getElementsByClassName('pass'), 0).enumerable is true
156 FAIL Object.getOwnPropertyDescriptor(document.getElementsByClassName('pass'), 0).configurable should be false. Was true.
157 PASS Object.getOwnPropertyDescriptor(document.getElementsByClassName('pass'), 'length').value is document.getElementsByClassName('pass').length
158 PASS Object.getOwnPropertyDescriptor(document.getElementsByClassName('pass'), 'length').hasOwnProperty('get') is false
159 PASS Object.getOwnPropertyDescriptor(document.getElementsByClassName('pass'), 'length').hasOwnProperty('set') is false
160 PASS Object.getOwnPropertyDescriptor(document.getElementsByClassName('pass'), 'length').enumerable is true
161 FAIL Object.getOwnPropertyDescriptor(document.getElementsByClassName('pass'), 'length').configurable should be false. Was true.
162 PASS Object.getOwnPropertyDescriptor(select, 'length').value is select.length
163 PASS Object.getOwnPropertyDescriptor(select, 'length').hasOwnProperty('get') is false
164 PASS Object.getOwnPropertyDescriptor(select, 'length').hasOwnProperty('set') is false
165 PASS Object.getOwnPropertyDescriptor(select, 'length').enumerable is true
166 FAIL Object.getOwnPropertyDescriptor(select, 'length').configurable should be false. Was true.
167 PASS Object.getOwnPropertyDescriptor(select, 0).value is select[0]
168 PASS Object.getOwnPropertyDescriptor(select, 0).hasOwnProperty('get') is false
169 PASS Object.getOwnPropertyDescriptor(select, 0).hasOwnProperty('set') is false
170 PASS Object.getOwnPropertyDescriptor(select, 0).enumerable is true
171 FAIL Object.getOwnPropertyDescriptor(select, 0).configurable should be false. Was true.
172 PASS Object.getOwnPropertyDescriptor(objectWithGetter, 'getter').get is getterFunc
173 PASS Object.getOwnPropertyDescriptor(objectWithGetter, 'getter').set is undefined
174 PASS Object.getOwnPropertyDescriptor(objectWithGetter, 'getter').hasOwnProperty('value') is false
175 PASS Object.getOwnPropertyDescriptor(objectWithGetter, 'getter').hasOwnProperty('writable') is false
176 PASS Object.getOwnPropertyDescriptor(objectWithGetter, 'getter').enumerable is true
177 PASS Object.getOwnPropertyDescriptor(objectWithGetter, 'getter').configurable is true
178 PASS Object.getOwnPropertyDescriptor(objectWithSetter, 'setter').get is undefined
179 PASS Object.getOwnPropertyDescriptor(objectWithSetter, 'setter').set is setterFunc
180 PASS Object.getOwnPropertyDescriptor(objectWithSetter, 'setter').hasOwnProperty('value') is false
181 PASS Object.getOwnPropertyDescriptor(objectWithSetter, 'setter').hasOwnProperty('writable') is false
182 PASS Object.getOwnPropertyDescriptor(objectWithSetter, 'setter').enumerable is true
183 PASS Object.getOwnPropertyDescriptor(objectWithSetter, 'setter').configurable is true
184 PASS Object.getOwnPropertyDescriptor(objectWithAccessor, 'accessor').get is getterFunc
185 PASS Object.getOwnPropertyDescriptor(objectWithAccessor, 'accessor').set is setterFunc
186 PASS Object.getOwnPropertyDescriptor(objectWithAccessor, 'accessor').hasOwnProperty('value') is false
187 PASS Object.getOwnPropertyDescriptor(objectWithAccessor, 'accessor').hasOwnProperty('writable') is false
188 PASS Object.getOwnPropertyDescriptor(objectWithAccessor, 'accessor').enumerable is true
189 PASS Object.getOwnPropertyDescriptor(objectWithAccessor, 'accessor').configurable is true
190 PASS Object.getOwnPropertyDescriptor(null) threw exception TypeError: Object.getOwnPropertyDescriptor called on non-object.
191 PASS Object.getOwnPropertyDescriptor(undefined) threw exception TypeError: Object.getOwnPropertyDescriptor called on non-object.
192 PASS Object.getOwnPropertyDescriptor(1) threw exception TypeError: Object.getOwnPropertyDescriptor called on non-object.
193 PASS Object.getOwnPropertyDescriptor('') threw exception TypeError: Object.getOwnPropertyDescriptor called on non-object.
194 PASS Object.getOwnPropertyDescriptor(true) threw exception TypeError: Object.getOwnPropertyDescriptor called on non-object.
195 PASS Object.getOwnPropertyDescriptor(false) threw exception TypeError: Object.getOwnPropertyDescriptor called on non-object.
196 Checking property ordering
197 PASS property is 'value'
198 PASS property is 'writable'
199 PASS property is 'enumerable'
200 PASS property is 'configurable'
201 PASS property is 'get'
202 PASS property is 'set'
203 PASS property is 'enumerable'
204 PASS property is 'configurable'
205 PASS property is 'get'
206 PASS property is 'set'
207 PASS property is 'enumerable'
208 PASS property is 'configurable'
209 PASS property is 'get'
210 PASS property is 'set'
211 PASS property is 'enumerable'
212 PASS property is 'configurable'
213 PASS successfullyParsed is true
214
215 TEST COMPLETE
216