| OLD | NEW |
| (Empty) |
| 1 KDE JS Test | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS StripSpaces(eval.toString()) is "functioneval(){[nativecode]}" | |
| 7 PASS StripSpaces(parseInt.toString()) is "functionparseInt(){[nativecode]}" | |
| 8 PASS StripSpaces(parseFloat.toString()) is "functionparseFloat(){[nativecode]}" | |
| 9 PASS StripSpaces(isNaN.toString()) is "functionisNaN(){[nativecode]}" | |
| 10 PASS StripSpaces(isFinite.toString()) is "functionisFinite(){[nativecode]}" | |
| 11 PASS StripSpaces(escape.toString()) is "functionescape(){[nativecode]}" | |
| 12 PASS StripSpaces(unescape.toString()) is "functionunescape(){[nativecode]}" | |
| 13 PASS StripSpaces(Object.prototype.toString.toString()) is "functiontoString(){[n
ativecode]}" | |
| 14 PASS StripSpaces(Object.prototype.toLocaleString.toString()) is "functiontoLocal
eString(){[nativecode]}" | |
| 15 PASS StripSpaces(Object.prototype.valueOf.toString()) is "functionvalueOf(){[nat
ivecode]}" | |
| 16 PASS StripSpaces(Object.prototype.hasOwnProperty.toString()) is "functionhasOwnP
roperty(){[nativecode]}" | |
| 17 PASS StripSpaces(Object.prototype.isPrototypeOf.toString()) is "functionisProtot
ypeOf(){[nativecode]}" | |
| 18 PASS StripSpaces(Object.prototype.propertyIsEnumerable.toString()) is "functionp
ropertyIsEnumerable(){[nativecode]}" | |
| 19 PASS StripSpaces(Function.prototype.toString.toString()) is "functiontoString(){
[nativecode]}" | |
| 20 PASS StripSpaces(Function.prototype.apply.toString()) is "functionapply(){[nativ
ecode]}" | |
| 21 PASS StripSpaces(Function.prototype.call.toString()) is "functioncall(){[nativec
ode]}" | |
| 22 PASS StripSpaces(Array.prototype.toString.toString()) is "functiontoString(){[na
tivecode]}" | |
| 23 PASS StripSpaces(Array.prototype.toLocaleString.toString()) is "functiontoLocale
String(){[nativecode]}" | |
| 24 PASS StripSpaces(Array.prototype.concat.toString()) is "functionconcat(){[native
code]}" | |
| 25 PASS StripSpaces(Array.prototype.join.toString()) is "functionjoin(){[nativecode
]}" | |
| 26 PASS StripSpaces(Array.prototype.pop.toString()) is "functionpop(){[nativecode]}
" | |
| 27 PASS StripSpaces(Array.prototype.push.toString()) is "functionpush(){[nativecode
]}" | |
| 28 PASS StripSpaces(Array.prototype.reverse.toString()) is "functionreverse(){[nati
vecode]}" | |
| 29 PASS StripSpaces(Array.prototype.shift.toString()) is "functionshift(){[nativeco
de]}" | |
| 30 PASS StripSpaces(Array.prototype.slice.toString()) is "functionslice(){[nativeco
de]}" | |
| 31 PASS StripSpaces(Array.prototype.sort.toString()) is "functionsort(){[nativecode
]}" | |
| 32 PASS StripSpaces(Array.prototype.splice.toString()) is "functionsplice(){[native
code]}" | |
| 33 PASS StripSpaces(Array.prototype.unshift.toString()) is "functionunshift(){[nati
vecode]}" | |
| 34 PASS StripSpaces(String.prototype.toString.toString()) is "functiontoString(){[n
ativecode]}" | |
| 35 PASS StripSpaces(String.prototype.valueOf.toString()) is "functionvalueOf(){[nat
ivecode]}" | |
| 36 PASS StripSpaces(String.prototype.charAt.toString()) is "functioncharAt(){[nativ
ecode]}" | |
| 37 PASS StripSpaces(String.prototype.charCodeAt.toString()) is "functioncharCodeAt(
){[nativecode]}" | |
| 38 PASS StripSpaces(String.prototype.concat.toString()) is "functionconcat(){[nativ
ecode]}" | |
| 39 PASS StripSpaces(String.prototype.indexOf.toString()) is "functionindexOf(){[nat
ivecode]}" | |
| 40 PASS StripSpaces(String.prototype.lastIndexOf.toString()) is "functionlastIndexO
f(){[nativecode]}" | |
| 41 PASS StripSpaces(String.prototype.match.toString()) is "functionmatch(){[nativec
ode]}" | |
| 42 PASS StripSpaces(String.prototype.replace.toString()) is "functionreplace(){[nat
ivecode]}" | |
| 43 PASS StripSpaces(String.prototype.search.toString()) is "functionsearch(){[nativ
ecode]}" | |
| 44 PASS StripSpaces(String.prototype.slice.toString()) is "functionslice(){[nativec
ode]}" | |
| 45 PASS StripSpaces(String.prototype.split.toString()) is "functionsplit(){[nativec
ode]}" | |
| 46 PASS StripSpaces(String.prototype.substr.toString()) is "functionsubstr(){[nativ
ecode]}" | |
| 47 PASS StripSpaces(String.prototype.substring.toString()) is "functionsubstring(){
[nativecode]}" | |
| 48 PASS StripSpaces(String.prototype.toLowerCase.toString()) is "functiontoLowerCas
e(){[nativecode]}" | |
| 49 PASS StripSpaces(String.prototype.toUpperCase.toString()) is "functiontoUpperCas
e(){[nativecode]}" | |
| 50 PASS StripSpaces(String.prototype.big.toString()) is "functionbig(){[nativecode]
}" | |
| 51 PASS StripSpaces(String.prototype.small.toString()) is "functionsmall(){[nativec
ode]}" | |
| 52 PASS StripSpaces(String.prototype.blink.toString()) is "functionblink(){[nativec
ode]}" | |
| 53 PASS StripSpaces(String.prototype.bold.toString()) is "functionbold(){[nativecod
e]}" | |
| 54 PASS StripSpaces(String.prototype.fixed.toString()) is "functionfixed(){[nativec
ode]}" | |
| 55 PASS StripSpaces(String.prototype.italics.toString()) is "functionitalics(){[nat
ivecode]}" | |
| 56 PASS StripSpaces(String.prototype.strike.toString()) is "functionstrike(){[nativ
ecode]}" | |
| 57 PASS StripSpaces(String.prototype.sub.toString()) is "functionsub(){[nativecode]
}" | |
| 58 PASS StripSpaces(String.prototype.sup.toString()) is "functionsup(){[nativecode]
}" | |
| 59 PASS StripSpaces(String.prototype.fontcolor.toString()) is "functionfontcolor(){
[nativecode]}" | |
| 60 PASS StripSpaces(String.prototype.fontsize.toString()) is "functionfontsize(){[n
ativecode]}" | |
| 61 PASS StripSpaces(String.prototype.anchor.toString()) is "functionanchor(){[nativ
ecode]}" | |
| 62 PASS StripSpaces(String.prototype.link.toString()) is "functionlink(){[nativecod
e]}" | |
| 63 PASS StripSpaces(Boolean.prototype.toString.toString()) is "functiontoString(){[
nativecode]}" | |
| 64 PASS StripSpaces(Boolean.prototype.valueOf.toString()) is "functionvalueOf(){[na
tivecode]}" | |
| 65 PASS StripSpaces(Number.prototype.toString.toString()) is "functiontoString(){[n
ativecode]}" | |
| 66 FAIL StripSpaces(Number.prototype.toLocaleString.toString()) should be functiont
oLocaleString(){[nativecode]}. Was functiontoLocaleString(){if(%_IsConstructCall
()){thrownewTypeError(s)}if(!(thisinstanceofNumber)&&typeof(this)!=='number'){th
rownewTypeError('MethodinvokedonanobjectthatisnotNumber.')}varw=arguments[0]varY
=arguments[1]varap=cachedOrNewService('numberformat',w,Y)returnformatNumber(ap,t
his)}. | |
| 67 PASS StripSpaces(Number.prototype.valueOf.toString()) is "functionvalueOf(){[nat
ivecode]}" | |
| 68 PASS StripSpaces(Number.prototype.toFixed.toString()) is "functiontoFixed(){[nat
ivecode]}" | |
| 69 PASS StripSpaces(Number.prototype.toExponential.toString()) is "functiontoExpone
ntial(){[nativecode]}" | |
| 70 PASS StripSpaces(Number.prototype.toPrecision.toString()) is "functiontoPrecisio
n(){[nativecode]}" | |
| 71 PASS StripSpaces(Math.abs.toString()) is "functionabs(){[nativecode]}" | |
| 72 PASS StripSpaces(Math.acos.toString()) is "functionacos(){[nativecode]}" | |
| 73 PASS StripSpaces(Math.asin.toString()) is "functionasin(){[nativecode]}" | |
| 74 PASS StripSpaces(Math.atan.toString()) is "functionatan(){[nativecode]}" | |
| 75 PASS StripSpaces(Math.atan2.toString()) is "functionatan2(){[nativecode]}" | |
| 76 PASS StripSpaces(Math.ceil.toString()) is "functionceil(){[nativecode]}" | |
| 77 PASS StripSpaces(Math.cos.toString()) is "functioncos(){[nativecode]}" | |
| 78 PASS StripSpaces(Math.exp.toString()) is "functionexp(){[nativecode]}" | |
| 79 PASS StripSpaces(Math.floor.toString()) is "functionfloor(){[nativecode]}" | |
| 80 PASS StripSpaces(Math.log.toString()) is "functionlog(){[nativecode]}" | |
| 81 PASS StripSpaces(Math.max.toString()) is "functionmax(){[nativecode]}" | |
| 82 PASS StripSpaces(Math.min.toString()) is "functionmin(){[nativecode]}" | |
| 83 PASS StripSpaces(Math.pow.toString()) is "functionpow(){[nativecode]}" | |
| 84 PASS StripSpaces(Math.random.toString()) is "functionrandom(){[nativecode]}" | |
| 85 PASS StripSpaces(Math.round.toString()) is "functionround(){[nativecode]}" | |
| 86 PASS StripSpaces(Math.sin.toString()) is "functionsin(){[nativecode]}" | |
| 87 PASS StripSpaces(Math.sqrt.toString()) is "functionsqrt(){[nativecode]}" | |
| 88 PASS StripSpaces(Math.tan.toString()) is "functiontan(){[nativecode]}" | |
| 89 PASS StripSpaces(Date.prototype.toString.toString()) is "functiontoString(){[nat
ivecode]}" | |
| 90 PASS StripSpaces(Date.prototype.toUTCString.toString()) is "functiontoUTCString(
){[nativecode]}" | |
| 91 PASS StripSpaces(Date.prototype.toDateString.toString()) is "functiontoDateStrin
g(){[nativecode]}" | |
| 92 PASS StripSpaces(Date.prototype.toTimeString.toString()) is "functiontoTimeStrin
g(){[nativecode]}" | |
| 93 FAIL StripSpaces(Date.prototype.toLocaleString.toString()) should be functiontoL
ocaleString(){[nativecode]}. Was functiontoLocaleString(){if(%_IsConstructCall()
){thrownewTypeError(s)}varw=arguments[0]varY=arguments[1]returntoLocaleDateTime(
this,w,Y,'any','all','dateformatall')}. | |
| 94 FAIL StripSpaces(Date.prototype.toLocaleDateString.toString()) should be functio
ntoLocaleDateString(){[nativecode]}. Was functiontoLocaleDateString(){if(%_IsCon
structCall()){thrownewTypeError(s)}varw=arguments[0]varY=arguments[1]returntoLoc
aleDateTime(this,w,Y,'date','date','dateformatdate')}. | |
| 95 FAIL StripSpaces(Date.prototype.toLocaleTimeString.toString()) should be functio
ntoLocaleTimeString(){[nativecode]}. Was functiontoLocaleTimeString(){if(%_IsCon
structCall()){thrownewTypeError(s)}varw=arguments[0]varY=arguments[1]returntoLoc
aleDateTime(this,w,Y,'time','time','dateformattime')}. | |
| 96 PASS StripSpaces(Date.prototype.valueOf.toString()) is "functionvalueOf(){[nativ
ecode]}" | |
| 97 PASS StripSpaces(Date.prototype.getTime.toString()) is "functiongetTime(){[nativ
ecode]}" | |
| 98 PASS StripSpaces(Date.prototype.getFullYear.toString()) is "functiongetFullYear(
){[nativecode]}" | |
| 99 PASS StripSpaces(Date.prototype.getUTCFullYear.toString()) is "functiongetUTCFul
lYear(){[nativecode]}" | |
| 100 PASS StripSpaces(Date.prototype.toGMTString.toString()) is "functiontoGMTString(
){[nativecode]}" | |
| 101 PASS StripSpaces(Date.prototype.getMonth.toString()) is "functiongetMonth(){[nat
ivecode]}" | |
| 102 PASS StripSpaces(Date.prototype.getUTCMonth.toString()) is "functiongetUTCMonth(
){[nativecode]}" | |
| 103 PASS StripSpaces(Date.prototype.getDate.toString()) is "functiongetDate(){[nativ
ecode]}" | |
| 104 PASS StripSpaces(Date.prototype.getUTCDate.toString()) is "functiongetUTCDate(){
[nativecode]}" | |
| 105 PASS StripSpaces(Date.prototype.getDay.toString()) is "functiongetDay(){[nativec
ode]}" | |
| 106 PASS StripSpaces(Date.prototype.getUTCDay.toString()) is "functiongetUTCDay(){[n
ativecode]}" | |
| 107 PASS StripSpaces(Date.prototype.getHours.toString()) is "functiongetHours(){[nat
ivecode]}" | |
| 108 PASS StripSpaces(Date.prototype.getUTCHours.toString()) is "functiongetUTCHours(
){[nativecode]}" | |
| 109 PASS StripSpaces(Date.prototype.getMinutes.toString()) is "functiongetMinutes(){
[nativecode]}" | |
| 110 PASS StripSpaces(Date.prototype.getUTCMinutes.toString()) is "functiongetUTCMinu
tes(){[nativecode]}" | |
| 111 PASS StripSpaces(Date.prototype.getSeconds.toString()) is "functiongetSeconds(){
[nativecode]}" | |
| 112 PASS StripSpaces(Date.prototype.getUTCSeconds.toString()) is "functiongetUTCSeco
nds(){[nativecode]}" | |
| 113 PASS StripSpaces(Date.prototype.getMilliseconds.toString()) is "functiongetMilli
seconds(){[nativecode]}" | |
| 114 PASS StripSpaces(Date.prototype.getUTCMilliseconds.toString()) is "functiongetUT
CMilliseconds(){[nativecode]}" | |
| 115 PASS StripSpaces(Date.prototype.getTimezoneOffset.toString()) is "functiongetTim
ezoneOffset(){[nativecode]}" | |
| 116 PASS StripSpaces(Date.prototype.setTime.toString()) is "functionsetTime(){[nativ
ecode]}" | |
| 117 PASS StripSpaces(Date.prototype.setMilliseconds.toString()) is "functionsetMilli
seconds(){[nativecode]}" | |
| 118 PASS StripSpaces(Date.prototype.setUTCMilliseconds.toString()) is "functionsetUT
CMilliseconds(){[nativecode]}" | |
| 119 PASS StripSpaces(Date.prototype.setSeconds.toString()) is "functionsetSeconds(){
[nativecode]}" | |
| 120 PASS StripSpaces(Date.prototype.setUTCSeconds.toString()) is "functionsetUTCSeco
nds(){[nativecode]}" | |
| 121 PASS StripSpaces(Date.prototype.setMinutes.toString()) is "functionsetMinutes(){
[nativecode]}" | |
| 122 PASS StripSpaces(Date.prototype.setUTCMinutes.toString()) is "functionsetUTCMinu
tes(){[nativecode]}" | |
| 123 PASS StripSpaces(Date.prototype.setHours.toString()) is "functionsetHours(){[nat
ivecode]}" | |
| 124 PASS StripSpaces(Date.prototype.setUTCHours.toString()) is "functionsetUTCHours(
){[nativecode]}" | |
| 125 PASS StripSpaces(Date.prototype.setDate.toString()) is "functionsetDate(){[nativ
ecode]}" | |
| 126 PASS StripSpaces(Date.prototype.setUTCDate.toString()) is "functionsetUTCDate(){
[nativecode]}" | |
| 127 PASS StripSpaces(Date.prototype.setMonth.toString()) is "functionsetMonth(){[nat
ivecode]}" | |
| 128 PASS StripSpaces(Date.prototype.setUTCMonth.toString()) is "functionsetUTCMonth(
){[nativecode]}" | |
| 129 PASS StripSpaces(Date.prototype.setFullYear.toString()) is "functionsetFullYear(
){[nativecode]}" | |
| 130 PASS StripSpaces(Date.prototype.setUTCFullYear.toString()) is "functionsetUTCFul
lYear(){[nativecode]}" | |
| 131 PASS StripSpaces(Date.prototype.setYear.toString()) is "functionsetYear(){[nativ
ecode]}" | |
| 132 PASS StripSpaces(Date.prototype.getYear.toString()) is "functiongetYear(){[nativ
ecode]}" | |
| 133 PASS StripSpaces(Date.prototype.toGMTString.toString()) is "functiontoGMTString(
){[nativecode]}" | |
| 134 PASS StripSpaces(RegExp.prototype.exec.toString()) is "functionexec(){[nativecod
e]}" | |
| 135 PASS StripSpaces(RegExp.prototype.test.toString()) is "functiontest(){[nativecod
e]}" | |
| 136 PASS StripSpaces(RegExp.prototype.toString.toString()) is "functiontoString(){[n
ativecode]}" | |
| 137 PASS StripSpaces(Error.prototype.toString.toString()) is "functiontoString(){[na
tivecode]}" | |
| 138 PASS successfullyParsed is true | |
| 139 | |
| 140 TEST COMPLETE | |
| 141 | |
| OLD | NEW |