OLD | NEW |
1 # Copyright 2014 the V8 project authors. All rights reserved. | 1 # Copyright 2014 the V8 project authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 Test to ensure correct behaviour of Object.getOwnPropertyNames | 5 Test to ensure correct behaviour of Object.getOwnPropertyNames |
6 | 6 |
7 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 7 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
8 | 8 |
9 | 9 |
10 PASS getSortedOwnPropertyNames({}) is [] | 10 PASS getSortedOwnPropertyNames({}) is [] |
(...skipping 30 matching lines...) Expand all Loading... |
41 PASS getSortedOwnPropertyNames(escape) is ['length', 'name'] | 41 PASS getSortedOwnPropertyNames(escape) is ['length', 'name'] |
42 PASS getSortedOwnPropertyNames(unescape) is ['length', 'name'] | 42 PASS getSortedOwnPropertyNames(unescape) is ['length', 'name'] |
43 PASS getSortedOwnPropertyNames(decodeURI) is ['length', 'name'] | 43 PASS getSortedOwnPropertyNames(decodeURI) is ['length', 'name'] |
44 PASS getSortedOwnPropertyNames(decodeURIComponent) is ['length', 'name'] | 44 PASS getSortedOwnPropertyNames(decodeURIComponent) is ['length', 'name'] |
45 PASS getSortedOwnPropertyNames(encodeURI) is ['length', 'name'] | 45 PASS getSortedOwnPropertyNames(encodeURI) is ['length', 'name'] |
46 PASS getSortedOwnPropertyNames(encodeURIComponent) is ['length', 'name'] | 46 PASS getSortedOwnPropertyNames(encodeURIComponent) is ['length', 'name'] |
47 PASS getSortedOwnPropertyNames(Object) is ['arguments', 'assign', 'caller', 'cre
ate', 'defineProperties', 'defineProperty', 'deliverChangeRecords', 'freeze', 'g
etNotifier', 'getOwnPropertyDescriptor', 'getOwnPropertyNames', 'getOwnPropertyS
ymbols', 'getPrototypeOf', 'is', 'isExtensible', 'isFrozen', 'isSealed', 'keys',
'length', 'name', 'observe', 'preventExtensions', 'prototype', 'seal', 'setProt
otypeOf', 'unobserve'] | 47 PASS getSortedOwnPropertyNames(Object) is ['arguments', 'assign', 'caller', 'cre
ate', 'defineProperties', 'defineProperty', 'deliverChangeRecords', 'freeze', 'g
etNotifier', 'getOwnPropertyDescriptor', 'getOwnPropertyNames', 'getOwnPropertyS
ymbols', 'getPrototypeOf', 'is', 'isExtensible', 'isFrozen', 'isSealed', 'keys',
'length', 'name', 'observe', 'preventExtensions', 'prototype', 'seal', 'setProt
otypeOf', 'unobserve'] |
48 PASS getSortedOwnPropertyNames(Object.prototype) is ['__defineGetter__', '__defi
neSetter__', '__lookupGetter__', '__lookupSetter__', '__proto__', 'constructor',
'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 't
oString', 'valueOf'] | 48 PASS getSortedOwnPropertyNames(Object.prototype) is ['__defineGetter__', '__defi
neSetter__', '__lookupGetter__', '__lookupSetter__', '__proto__', 'constructor',
'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 't
oString', 'valueOf'] |
49 PASS getSortedOwnPropertyNames(Function) is ['arguments', 'caller', 'length', 'n
ame', 'prototype'] | 49 PASS getSortedOwnPropertyNames(Function) is ['arguments', 'caller', 'length', 'n
ame', 'prototype'] |
50 PASS getSortedOwnPropertyNames(Function.prototype) is ['apply', 'arguments', 'bi
nd', 'call', 'caller', 'constructor', 'length', 'name', 'toString'] | 50 PASS getSortedOwnPropertyNames(Function.prototype) is ['apply', 'arguments', 'bi
nd', 'call', 'caller', 'constructor', 'length', 'name', 'toString'] |
51 PASS getSortedOwnPropertyNames(Array) is ['arguments', 'caller', 'isArray', 'len
gth', 'name', 'observe', 'prototype', 'unobserve'] | 51 PASS getSortedOwnPropertyNames(Array) is ['arguments', 'caller', 'from', 'isArra
y', 'length', 'name', 'observe', 'of', 'prototype', 'unobserve'] |
52 PASS getSortedOwnPropertyNames(Array.prototype) is ['concat', 'constructor', 'en
tries', 'every', 'filter', 'forEach', 'indexOf', 'join', 'keys', 'lastIndexOf',
'length', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'sl
ice', 'some', 'sort', 'splice', 'toLocaleString', 'toString', 'unshift'] | 52 PASS getSortedOwnPropertyNames(Array.prototype) is ['concat', 'constructor', 'co
pyWithin', 'entries', 'every', 'fill', 'filter', 'find', 'findIndex', 'forEach',
'indexOf', 'join', 'keys', 'lastIndexOf', 'length', 'map', 'pop', 'push', 'redu
ce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'splice', 'toLo
caleString', 'toString', 'unshift'] |
53 PASS getSortedOwnPropertyNames(String) is ['arguments', 'caller', 'fromCharCode'
, 'fromCodePoint', 'length', 'name', 'prototype', 'raw'] | 53 PASS getSortedOwnPropertyNames(String) is ['arguments', 'caller', 'fromCharCode'
, 'fromCodePoint', 'length', 'name', 'prototype', 'raw'] |
54 PASS getSortedOwnPropertyNames(String.prototype) is ['anchor', 'big', 'blink', '
bold', 'charAt', 'charCodeAt', 'codePointAt', 'concat', 'constructor', 'endsWith
', 'fixed', 'fontcolor', 'fontsize', 'includes', 'indexOf', 'italics', 'lastInde
xOf', 'length', 'link', 'localeCompare', 'match', 'normalize', 'repeat', 'replac
e', 'search', 'slice', 'small', 'split', 'startsWith', 'strike', 'sub', 'substr'
, 'substring', 'sup', 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', '
toString', 'toUpperCase', 'trim', 'trimLeft', 'trimRight', 'valueOf'] | 54 PASS getSortedOwnPropertyNames(String.prototype) is ['anchor', 'big', 'blink', '
bold', 'charAt', 'charCodeAt', 'codePointAt', 'concat', 'constructor', 'endsWith
', 'fixed', 'fontcolor', 'fontsize', 'includes', 'indexOf', 'italics', 'lastInde
xOf', 'length', 'link', 'localeCompare', 'match', 'normalize', 'repeat', 'replac
e', 'search', 'slice', 'small', 'split', 'startsWith', 'strike', 'sub', 'substr'
, 'substring', 'sup', 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', '
toString', 'toUpperCase', 'trim', 'trimLeft', 'trimRight', 'valueOf'] |
55 PASS getSortedOwnPropertyNames(Boolean) is ['arguments', 'caller', 'length', 'na
me', 'prototype'] | 55 PASS getSortedOwnPropertyNames(Boolean) is ['arguments', 'caller', 'length', 'na
me', 'prototype'] |
56 PASS getSortedOwnPropertyNames(Boolean.prototype) is ['constructor', 'toString',
'valueOf'] | 56 PASS getSortedOwnPropertyNames(Boolean.prototype) is ['constructor', 'toString',
'valueOf'] |
57 PASS getSortedOwnPropertyNames(Number) is ['EPSILON', 'MAX_SAFE_INTEGER', 'MAX_V
ALUE', 'MIN_SAFE_INTEGER', 'MIN_VALUE', 'NEGATIVE_INFINITY', 'NaN', 'POSITIVE_IN
FINITY', 'arguments', 'caller', 'isFinite', 'isInteger', 'isNaN', 'isSafeInteger
', 'length', 'name', 'parseFloat', 'parseInt', 'prototype'] | 57 PASS getSortedOwnPropertyNames(Number) is ['EPSILON', 'MAX_SAFE_INTEGER', 'MAX_V
ALUE', 'MIN_SAFE_INTEGER', 'MIN_VALUE', 'NEGATIVE_INFINITY', 'NaN', 'POSITIVE_IN
FINITY', 'arguments', 'caller', 'isFinite', 'isInteger', 'isNaN', 'isSafeInteger
', 'length', 'name', 'parseFloat', 'parseInt', 'prototype'] |
58 PASS getSortedOwnPropertyNames(Number.prototype) is ['constructor', 'toExponenti
al', 'toFixed', 'toLocaleString', 'toPrecision', 'toString', 'valueOf'] | 58 PASS getSortedOwnPropertyNames(Number.prototype) is ['constructor', 'toExponenti
al', 'toFixed', 'toLocaleString', 'toPrecision', 'toString', 'valueOf'] |
59 PASS getSortedOwnPropertyNames(Date) is ['UTC', 'arguments', 'caller', 'length',
'name', 'now', 'parse', 'prototype'] | 59 PASS getSortedOwnPropertyNames(Date) is ['UTC', 'arguments', 'caller', 'length',
'name', 'now', 'parse', 'prototype'] |
60 PASS getSortedOwnPropertyNames(Date.prototype) is ['constructor', 'getDate', 'ge
tDay', 'getFullYear', 'getHours', 'getMilliseconds', 'getMinutes', 'getMonth', '
getSeconds', 'getTime', 'getTimezoneOffset', 'getUTCDate', 'getUTCDay', 'getUTCF
ullYear', 'getUTCHours', 'getUTCMilliseconds', 'getUTCMinutes', 'getUTCMonth', '
getUTCSeconds', 'getYear', 'setDate', 'setFullYear', 'setHours', 'setMillisecond
s', 'setMinutes', 'setMonth', 'setSeconds', 'setTime', 'setUTCDate', 'setUTCFull
Year', 'setUTCHours', 'setUTCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'set
UTCSeconds', 'setYear', 'toDateString', 'toGMTString', 'toISOString', 'toJSON',
'toLocaleDateString', 'toLocaleString', 'toLocaleTimeString', 'toString', 'toTim
eString', 'toUTCString', 'valueOf'] | 60 PASS getSortedOwnPropertyNames(Date.prototype) is ['constructor', 'getDate', 'ge
tDay', 'getFullYear', 'getHours', 'getMilliseconds', 'getMinutes', 'getMonth', '
getSeconds', 'getTime', 'getTimezoneOffset', 'getUTCDate', 'getUTCDay', 'getUTCF
ullYear', 'getUTCHours', 'getUTCMilliseconds', 'getUTCMinutes', 'getUTCMonth', '
getUTCSeconds', 'getYear', 'setDate', 'setFullYear', 'setHours', 'setMillisecond
s', 'setMinutes', 'setMonth', 'setSeconds', 'setTime', 'setUTCDate', 'setUTCFull
Year', 'setUTCHours', 'setUTCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'set
UTCSeconds', 'setYear', 'toDateString', 'toGMTString', 'toISOString', 'toJSON',
'toLocaleDateString', 'toLocaleString', 'toLocaleTimeString', 'toString', 'toTim
eString', 'toUTCString', 'valueOf'] |
61 PASS getSortedOwnPropertyNames(RegExp) is ['$&', "$'", '$*', '$+', '$1', '$2', '
$3', '$4', '$5', '$6', '$7', '$8', '$9', '$_', '$`', 'arguments', 'caller', 'inp
ut', 'lastMatch', 'lastParen', 'leftContext', 'length', 'multiline', 'name', 'pr
ototype', 'rightContext'] | 61 PASS getSortedOwnPropertyNames(RegExp) is ['$&', "$'", '$*', '$+', '$1', '$2', '
$3', '$4', '$5', '$6', '$7', '$8', '$9', '$_', '$`', 'arguments', 'caller', 'inp
ut', 'lastMatch', 'lastParen', 'leftContext', 'length', 'multiline', 'name', 'pr
ototype', 'rightContext'] |
62 PASS getSortedOwnPropertyNames(RegExp.prototype) is ['compile', 'constructor', '
exec', 'global', 'ignoreCase', 'lastIndex', 'multiline', 'source', 'test', 'toSt
ring'] | 62 PASS getSortedOwnPropertyNames(RegExp.prototype) is ['compile', 'constructor', '
exec', 'global', 'ignoreCase', 'lastIndex', 'multiline', 'source', 'test', 'toSt
ring'] |
(...skipping 22 matching lines...) Expand all Loading... |
85 PASS globalPropertyNames.indexOf('Number') != -1 is true | 85 PASS globalPropertyNames.indexOf('Number') != -1 is true |
86 PASS globalPropertyNames.indexOf('Date') != -1 is true | 86 PASS globalPropertyNames.indexOf('Date') != -1 is true |
87 PASS globalPropertyNames.indexOf('RegExp') != -1 is true | 87 PASS globalPropertyNames.indexOf('RegExp') != -1 is true |
88 PASS globalPropertyNames.indexOf('Error') != -1 is true | 88 PASS globalPropertyNames.indexOf('Error') != -1 is true |
89 PASS globalPropertyNames.indexOf('Math') != -1 is true | 89 PASS globalPropertyNames.indexOf('Math') != -1 is true |
90 PASS globalPropertyNames.indexOf('JSON') != -1 is true | 90 PASS globalPropertyNames.indexOf('JSON') != -1 is true |
91 PASS successfullyParsed is true | 91 PASS successfullyParsed is true |
92 | 92 |
93 TEST COMPLETE | 93 TEST COMPLETE |
94 | 94 |
OLD | NEW |