OLD | NEW |
1 Test to ensure correct behaviour of Object.getOwnPropertyNames | 1 Test to ensure correct behaviour of Object.getOwnPropertyNames |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS getSortedOwnPropertyNames({}) is [] | 6 PASS getSortedOwnPropertyNames({}) is [] |
7 PASS getSortedOwnPropertyNames({a:null}) is ['a'] | 7 PASS getSortedOwnPropertyNames({a:null}) is ['a'] |
8 PASS getSortedOwnPropertyNames({a:null, b:null}) is ['a', 'b'] | 8 PASS getSortedOwnPropertyNames({a:null, b:null}) is ['a', 'b'] |
9 PASS getSortedOwnPropertyNames({b:null, a:null}) is ['a', 'b'] | 9 PASS getSortedOwnPropertyNames({b:null, a:null}) is ['a', 'b'] |
10 PASS getSortedOwnPropertyNames({__proto__:{a:null}}) is [] | 10 PASS getSortedOwnPropertyNames({__proto__:{a:null}}) is [] |
(...skipping 12 matching lines...) Expand all Loading... |
23 PASS getSortedOwnPropertyNames([null,null,,,,null]) is ['0','1','5', 'length'] | 23 PASS getSortedOwnPropertyNames([null,null,,,,null]) is ['0','1','5', 'length'] |
24 PASS getSortedOwnPropertyNames((function(){var x=[];x.__proto__=[1,2,3];return x
;})()) is ['length'] | 24 PASS getSortedOwnPropertyNames((function(){var x=[];x.__proto__=[1,2,3];return x
;})()) is ['length'] |
25 PASS getSortedOwnPropertyNames(new Date()) is [] | 25 PASS getSortedOwnPropertyNames(new Date()) is [] |
26 PASS getSortedOwnPropertyNames((function(){var x=new Date();x.__proto__=[1,2,3];
return x;})()) is [] | 26 PASS getSortedOwnPropertyNames((function(){var x=new Date();x.__proto__=[1,2,3];
return x;})()) is [] |
27 PASS getSortedOwnPropertyNames(new RegExp('foo')) is ['global', 'ignoreCase', 'l
astIndex', 'multiline', 'source'] | 27 PASS getSortedOwnPropertyNames(new RegExp('foo')) is ['global', 'ignoreCase', 'l
astIndex', 'multiline', 'source'] |
28 PASS getSortedOwnPropertyNames((function(){var x=new RegExp();x.__proto__=[1,2,3
];return x;})()) is ['global', 'ignoreCase', 'lastIndex', 'multiline', 'source'] | 28 PASS getSortedOwnPropertyNames((function(){var x=new RegExp();x.__proto__=[1,2,3
];return x;})()) is ['global', 'ignoreCase', 'lastIndex', 'multiline', 'source'] |
29 PASS getSortedOwnPropertyNames(argumentsObject()) is ['callee', 'length'] | 29 PASS getSortedOwnPropertyNames(argumentsObject()) is ['callee', 'length'] |
30 PASS getSortedOwnPropertyNames(argumentsObject(1)) is ['0', 'callee', 'length'] | 30 PASS getSortedOwnPropertyNames(argumentsObject(1)) is ['0', 'callee', 'length'] |
31 PASS getSortedOwnPropertyNames(argumentsObject(1,2,3)) is ['0', '1', '2', 'calle
e', 'length'] | 31 PASS getSortedOwnPropertyNames(argumentsObject(1,2,3)) is ['0', '1', '2', 'calle
e', 'length'] |
32 PASS getSortedOwnPropertyNames((function(){arguments.__proto__=[1,2,3];return ar
guments;})()) is ['callee', 'length'] | 32 PASS getSortedOwnPropertyNames((function(){arguments.__proto__=[1,2,3];return ar
guments;})()) is ['callee', 'length'] |
33 PASS getSortedOwnPropertyNames(parseInt) is ['length', 'name'] | 33 FAIL getSortedOwnPropertyNames(parseInt) should be length,name. Was arguments,ca
ller,length,name. |
34 PASS getSortedOwnPropertyNames(parseFloat) is ['length', 'name'] | 34 FAIL getSortedOwnPropertyNames(parseFloat) should be length,name. Was arguments,
caller,length,name. |
35 PASS getSortedOwnPropertyNames(isNaN) is ['length', 'name'] | 35 FAIL getSortedOwnPropertyNames(isNaN) should be length,name. Was arguments,calle
r,length,name. |
36 PASS getSortedOwnPropertyNames(isFinite) is ['length', 'name'] | 36 FAIL getSortedOwnPropertyNames(isFinite) should be length,name. Was arguments,ca
ller,length,name. |
37 PASS getSortedOwnPropertyNames(escape) is ['length', 'name'] | 37 FAIL getSortedOwnPropertyNames(escape) should be length,name. Was arguments,call
er,length,name. |
38 PASS getSortedOwnPropertyNames(unescape) is ['length', 'name'] | 38 FAIL getSortedOwnPropertyNames(unescape) should be length,name. Was arguments,ca
ller,length,name. |
39 PASS getSortedOwnPropertyNames(decodeURI) is ['length', 'name'] | 39 FAIL getSortedOwnPropertyNames(decodeURI) should be length,name. Was arguments,c
aller,length,name. |
40 PASS getSortedOwnPropertyNames(decodeURIComponent) is ['length', 'name'] | 40 FAIL getSortedOwnPropertyNames(decodeURIComponent) should be length,name. Was ar
guments,caller,length,name. |
41 PASS getSortedOwnPropertyNames(encodeURI) is ['length', 'name'] | 41 FAIL getSortedOwnPropertyNames(encodeURI) should be length,name. Was arguments,c
aller,length,name. |
42 PASS getSortedOwnPropertyNames(encodeURIComponent) is ['length', 'name'] | 42 FAIL getSortedOwnPropertyNames(encodeURIComponent) should be length,name. Was ar
guments,caller,length,name. |
43 PASS getSortedOwnPropertyNames(Object) is ['create', 'defineProperties', 'define
Property', 'freeze', 'getOwnPropertyDescriptor', 'getOwnPropertyNames', 'getProt
otypeOf', 'isExtensible', 'isFrozen', 'isSealed', 'keys', 'length', 'name', 'pre
ventExtensions', 'prototype', 'seal'] | 43 FAIL getSortedOwnPropertyNames(Object) should be create,defineProperties,defineP
roperty,freeze,getOwnPropertyDescriptor,getOwnPropertyNames,getPrototypeOf,isExt
ensible,isFrozen,isSealed,keys,length,name,preventExtensions,prototype,seal. Was
arguments,caller,create,defineProperties,defineProperty,freeze,getOwnPropertyDe
scriptor,getOwnPropertyNames,getPrototypeOf,is,isExtensible,isFrozen,isSealed,ke
ys,length,name,preventExtensions,prototype,seal. |
44 PASS getSortedOwnPropertyNames(Object.prototype) is ['__defineGetter__', '__defi
neSetter__', '__lookupGetter__', '__lookupSetter__', '__proto__', 'constructor',
'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 't
oString', 'valueOf'] | 44 PASS getSortedOwnPropertyNames(Object.prototype) is ['__defineGetter__', '__defi
neSetter__', '__lookupGetter__', '__lookupSetter__', '__proto__', 'constructor',
'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 't
oString', 'valueOf'] |
45 PASS getSortedOwnPropertyNames(Function) is ['length', 'name', 'prototype'] | 45 FAIL getSortedOwnPropertyNames(Function) should be length,name,prototype. Was ar
guments,caller,length,name,prototype. |
46 PASS getSortedOwnPropertyNames(Function.prototype) is ['apply', 'bind', 'call',
'constructor', 'length', 'name', 'toString'] | 46 FAIL getSortedOwnPropertyNames(Function.prototype) should be apply,bind,call,con
structor,length,name,toString. Was apply,arguments,bind,call,caller,constructor,
length,name,toString. |
47 PASS getSortedOwnPropertyNames(Array) is ['isArray', 'length', 'name', 'prototyp
e'] | 47 FAIL getSortedOwnPropertyNames(Array) should be isArray,length,name,prototype. W
as arguments,caller,isArray,length,name,prototype. |
48 PASS getSortedOwnPropertyNames(Array.prototype) is ['concat', 'constructor', 'ev
ery', 'filter', 'forEach', 'indexOf', 'join', 'lastIndexOf', 'length', 'map', 'p
op', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort
', 'splice', 'toLocaleString', 'toString', 'unshift'] | 48 PASS getSortedOwnPropertyNames(Array.prototype) is ['concat', 'constructor', 'ev
ery', 'filter', 'forEach', 'indexOf', 'join', 'lastIndexOf', 'length', 'map', 'p
op', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort
', 'splice', 'toLocaleString', 'toString', 'unshift'] |
49 PASS getSortedOwnPropertyNames(String) is ['fromCharCode', 'length', 'name', 'pr
ototype'] | 49 FAIL getSortedOwnPropertyNames(String) should be fromCharCode,length,name,protot
ype. Was arguments,caller,fromCharCode,length,name,prototype. |
50 PASS getSortedOwnPropertyNames(String.prototype) is ['anchor', 'big', 'blink', '
bold', 'charAt', 'charCodeAt', 'concat', 'constructor', 'fixed', 'fontcolor', 'f
ontsize', 'indexOf', 'italics', 'lastIndexOf', 'length', 'link', 'localeCompare'
, 'match', 'replace', 'search', 'slice', 'small', 'split', 'strike', 'sub', 'sub
str', 'substring', 'sup', 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase
', 'toString', 'toUpperCase', 'trim', 'trimLeft', 'trimRight', 'valueOf'] | 50 PASS getSortedOwnPropertyNames(String.prototype) is ['anchor', 'big', 'blink', '
bold', 'charAt', 'charCodeAt', 'concat', 'constructor', 'fixed', 'fontcolor', 'f
ontsize', 'indexOf', 'italics', 'lastIndexOf', 'length', 'link', 'localeCompare'
, 'match', 'replace', 'search', 'slice', 'small', 'split', 'strike', 'sub', 'sub
str', 'substring', 'sup', 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase
', 'toString', 'toUpperCase', 'trim', 'trimLeft', 'trimRight', 'valueOf'] |
51 PASS getSortedOwnPropertyNames(Boolean) is ['length', 'name', 'prototype'] | 51 FAIL getSortedOwnPropertyNames(Boolean) should be length,name,prototype. Was arg
uments,caller,length,name,prototype. |
52 PASS getSortedOwnPropertyNames(Boolean.prototype) is ['constructor', 'toString',
'valueOf'] | 52 PASS getSortedOwnPropertyNames(Boolean.prototype) is ['constructor', 'toString',
'valueOf'] |
53 PASS getSortedOwnPropertyNames(Number) is ['MAX_VALUE', 'MIN_VALUE', 'NEGATIVE_I
NFINITY', 'NaN', 'POSITIVE_INFINITY', 'length', 'name', 'prototype'] | 53 FAIL getSortedOwnPropertyNames(Number) should be MAX_VALUE,MIN_VALUE,NEGATIVE_IN
FINITY,NaN,POSITIVE_INFINITY,length,name,prototype. Was MAX_VALUE,MIN_VALUE,NEGA
TIVE_INFINITY,NaN,POSITIVE_INFINITY,arguments,caller,isFinite,isNaN,length,name,
prototype. |
54 PASS getSortedOwnPropertyNames(Number.prototype) is ['constructor', 'toExponenti
al', 'toFixed', 'toLocaleString', 'toPrecision', 'toString', 'valueOf'] | 54 PASS getSortedOwnPropertyNames(Number.prototype) is ['constructor', 'toExponenti
al', 'toFixed', 'toLocaleString', 'toPrecision', 'toString', 'valueOf'] |
55 PASS getSortedOwnPropertyNames(Date) is ['UTC', 'length', 'name', 'now', 'parse'
, 'prototype'] | 55 FAIL getSortedOwnPropertyNames(Date) should be UTC,length,name,now,parse,prototy
pe. Was UTC,arguments,caller,length,name,now,parse,prototype. |
56 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'] | 56 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'] |
57 PASS getSortedOwnPropertyNames(RegExp) is ['$&', "$'", '$*', '$+', '$1', '$2', '
$3', '$4', '$5', '$6', '$7', '$8', '$9', '$_', '$`', 'input', 'lastMatch', 'last
Paren', 'leftContext', 'length', 'multiline', 'name', 'prototype', 'rightContext
'] | 57 FAIL getSortedOwnPropertyNames(RegExp) should be $&,$',$*,$+,$1,$2,$3,$4,$5,$6,$
7,$8,$9,$_,$`,input,lastMatch,lastParen,leftContext,length,multiline,name,protot
ype,rightContext. Was $&,$',$*,$+,$1,$2,$3,$4,$5,$6,$7,$8,$9,$_,$`,$input,argume
nts,caller,input,lastMatch,lastParen,leftContext,length,multiline,name,prototype
,rightContext. |
58 PASS getSortedOwnPropertyNames(RegExp.prototype) is ['compile', 'constructor', '
exec', 'global', 'ignoreCase', 'lastIndex', 'multiline', 'source', 'test', 'toSt
ring'] | 58 PASS getSortedOwnPropertyNames(RegExp.prototype) is ['compile', 'constructor', '
exec', 'global', 'ignoreCase', 'lastIndex', 'multiline', 'source', 'test', 'toSt
ring'] |
59 PASS getSortedOwnPropertyNames(Error) is ['length', 'name', 'prototype'] | 59 FAIL getSortedOwnPropertyNames(Error) should be length,name,prototype. Was argum
ents,caller,captureStackTrace,length,name,prototype,stackTraceLimit. |
60 PASS getSortedOwnPropertyNames(Error.prototype) is ['constructor', 'message', 'n
ame', 'toString'] | 60 PASS getSortedOwnPropertyNames(Error.prototype) is ['constructor', 'message', 'n
ame', 'toString'] |
61 PASS getSortedOwnPropertyNames(Math) is ['E', 'LN10', 'LN2', 'LOG10E', 'LOG2E',
'PI', 'SQRT1_2', 'SQRT2', 'abs', 'acos', 'asin', 'atan', 'atan2', 'ceil', 'cos',
'exp', 'floor', 'log', 'max', 'min', 'pow', 'random', 'round', 'sin', 'sqrt', '
tan'] | 61 FAIL getSortedOwnPropertyNames(Math) should be E,LN10,LN2,LOG10E,LOG2E,PI,SQRT1_
2,SQRT2,abs,acos,asin,atan,atan2,ceil,cos,exp,floor,log,max,min,pow,random,round
,sin,sqrt,tan. Was E,LN10,LN2,LOG10E,LOG2E,PI,SQRT1_2,SQRT2,abs,acos,asin,atan,a
tan2,ceil,cos,exp,floor,imul,log,max,min,pow,random,round,sin,sqrt,tan. |
62 PASS getSortedOwnPropertyNames(JSON) is ['parse', 'stringify'] | 62 PASS getSortedOwnPropertyNames(JSON) is ['parse', 'stringify'] |
63 PASS globalPropertyNames.indexOf('NaN') != -1 is true | 63 PASS globalPropertyNames.indexOf('NaN') != -1 is true |
64 PASS globalPropertyNames.indexOf('Infinity') != -1 is true | 64 PASS globalPropertyNames.indexOf('Infinity') != -1 is true |
65 PASS globalPropertyNames.indexOf('undefined') != -1 is true | 65 PASS globalPropertyNames.indexOf('undefined') != -1 is true |
66 PASS globalPropertyNames.indexOf('parseInt') != -1 is true | 66 PASS globalPropertyNames.indexOf('parseInt') != -1 is true |
67 PASS globalPropertyNames.indexOf('parseFloat') != -1 is true | 67 PASS globalPropertyNames.indexOf('parseFloat') != -1 is true |
68 PASS globalPropertyNames.indexOf('isNaN') != -1 is true | 68 PASS globalPropertyNames.indexOf('isNaN') != -1 is true |
69 PASS globalPropertyNames.indexOf('isFinite') != -1 is true | 69 PASS globalPropertyNames.indexOf('isFinite') != -1 is true |
70 PASS globalPropertyNames.indexOf('escape') != -1 is true | 70 PASS globalPropertyNames.indexOf('escape') != -1 is true |
71 PASS globalPropertyNames.indexOf('unescape') != -1 is true | 71 PASS globalPropertyNames.indexOf('unescape') != -1 is true |
72 PASS globalPropertyNames.indexOf('decodeURI') != -1 is true | 72 PASS globalPropertyNames.indexOf('decodeURI') != -1 is true |
73 PASS globalPropertyNames.indexOf('decodeURIComponent') != -1 is true | 73 PASS globalPropertyNames.indexOf('decodeURIComponent') != -1 is true |
74 PASS globalPropertyNames.indexOf('encodeURI') != -1 is true | 74 PASS globalPropertyNames.indexOf('encodeURI') != -1 is true |
75 PASS globalPropertyNames.indexOf('encodeURIComponent') != -1 is true | 75 PASS globalPropertyNames.indexOf('encodeURIComponent') != -1 is true |
76 PASS globalPropertyNames.indexOf('Object') != -1 is true | 76 PASS globalPropertyNames.indexOf('Object') != -1 is true |
77 PASS globalPropertyNames.indexOf('Function') != -1 is true | 77 PASS globalPropertyNames.indexOf('Function') != -1 is true |
78 PASS globalPropertyNames.indexOf('Array') != -1 is true | 78 PASS globalPropertyNames.indexOf('Array') != -1 is true |
79 PASS globalPropertyNames.indexOf('String') != -1 is true | 79 PASS globalPropertyNames.indexOf('String') != -1 is true |
80 PASS globalPropertyNames.indexOf('Boolean') != -1 is true | 80 PASS globalPropertyNames.indexOf('Boolean') != -1 is true |
81 PASS globalPropertyNames.indexOf('Number') != -1 is true | 81 PASS globalPropertyNames.indexOf('Number') != -1 is true |
82 PASS globalPropertyNames.indexOf('Date') != -1 is true | 82 PASS globalPropertyNames.indexOf('Date') != -1 is true |
83 PASS globalPropertyNames.indexOf('RegExp') != -1 is true | 83 PASS globalPropertyNames.indexOf('RegExp') != -1 is true |
84 PASS globalPropertyNames.indexOf('Error') != -1 is true | 84 PASS globalPropertyNames.indexOf('Error') != -1 is true |
85 PASS globalPropertyNames.indexOf('Math') != -1 is true | 85 PASS globalPropertyNames.indexOf('Math') != -1 is true |
86 PASS globalPropertyNames.indexOf('JSON') != -1 is true | 86 PASS globalPropertyNames.indexOf('JSON') != -1 is true |
87 PASS successfullyParsed is true | 87 PASS successfullyParsed is true |
88 | 88 |
89 TEST COMPLETE | 89 TEST COMPLETE |
90 | 90 |
OLD | NEW |