Home | History | Annotate | Download | only in kde
      1 # Copyright 2013 the V8 project authors. All rights reserved.
      2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
      3 #
      4 # Redistribution and use in source and binary forms, with or without
      5 # modification, are permitted provided that the following conditions
      6 # are met:
      7 # 1.  Redistributions of source code must retain the above copyright
      8 #     notice, this list of conditions and the following disclaimer.
      9 # 2.  Redistributions in binary form must reproduce the above copyright
     10 #     notice, this list of conditions and the following disclaimer in the
     11 #     documentation and/or other materials provided with the distribution.
     12 #
     13 # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
     14 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     15 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     16 # DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
     17 # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     18 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     19 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
     20 # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     21 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
     22 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     23 
     24 KDE JS Test
     25 
     26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
     27 
     28 
     29 PASS Number() is 0
     30 PASS Number(1) is 1
     31 PASS Number(1.1) is 1.1
     32 PASS Number('1.2') is 1.2
     33 PASS isNaN(Number('a')) is true
     34 PASS (new Number()).valueOf() is 0
     35 PASS (new Number(.4)).valueOf() is 0.4
     36 PASS (new Number('1.')).valueOf() is 1
     37 PASS isNaN(new Number('a')) is true
     38 PASS isNaN(Number.NaN) is true
     39 PASS Number.NEGATIVE_INFINITY is -Infinity
     40 PASS Number.POSITIVE_INFINITY is Infinity
     41 PASS (1).toString() is '1'
     42 PASS typeof (1).toString() is 'string'
     43 PASS (10).toString(16) is 'a'
     44 PASS (8.5).toString(16) is '8.8'
     45 PASS (-8.5).toString(16) is '-8.8'
     46 PASS Number.NaN.toString(16) is 'NaN'
     47 PASS Number.POSITIVE_INFINITY.toString(16) is 'Infinity'
     48 PASS Number.NEGATIVE_INFINITY.toString(16) is '-Infinity'
     49 PASS Number.MAX_VALUE.toString(2).length is 1024
     50 PASS (1).valueOf() is 1
     51 PASS typeof (1).valueOf() is 'number'
     52 PASS Number(1234.567).toFixed(0) is "1235"
     53 PASS Number(1234.567).toFixed(undefined) is "1235"
     54 PASS Number(-1234.567).toFixed(0) is "-1235"
     55 PASS Number(-1234.567).toFixed(undefined) is "-1235"
     56 PASS Number(0).toFixed(7) is "0.0000000"
     57 PASS Number(0.003).toFixed(0) is "0"
     58 PASS Number(-0.003).toFixed(0) is "-0"
     59 PASS Number(40.1234567890123).toFixed(7) is "40.1234568"
     60 PASS Number(-40.1234567890123).toFixed(7) is "-40.1234568"
     61 PASS Number(4).toFixed(7) is "4.0000000"
     62 PASS Number(-4).toFixed(7) is "-4.0000000"
     63 PASS Number(0.000056).toFixed(7) is "0.0000560"
     64 PASS Number(-0.000056).toFixed(7) is "-0.0000560"
     65 PASS Number(NaN).toFixed(7) is "NaN"
     66 PASS Number(Infinity).toFixed(7) is "Infinity"
     67 PASS Number(-Infinity).toFixed(7) is "-Infinity"
     68 PASS Number(Math.pow(10,4)).toFixed(13) is "10000.0000000000000"
     69 PASS Number(Math.pow(10,17)).toFixed(16) is "100000000000000000.0000000000000000"
     70 PASS Number(Math.pow(10,18)).toFixed(17) is "1000000000000000000.00000000000000000"
     71 PASS Number(Math.pow(10,19)).toFixed(18) is "10000000000000000000.000000000000000000"
     72 PASS Number(Math.pow(10,17)).toFixed(20) is "100000000000000000.00000000000000000000"
     73 PASS Number(Math.pow(10,18)).toFixed(20) is "1000000000000000000.00000000000000000000"
     74 PASS Number(Math.pow(10,19)).toFixed(20) is "10000000000000000000.00000000000000000000"
     75 PASS Number(Math.pow(10,20)).toFixed(20) is "100000000000000000000.00000000000000000000"
     76 PASS Number(Math.pow(10,21)).toFixed(20) is "1e+21"
     77 PASS Number(-Math.pow(10,4)).toFixed(13) is "-10000.0000000000000"
     78 PASS Number(-Math.pow(10,17)).toFixed(16) is "-100000000000000000.0000000000000000"
     79 PASS Number(-Math.pow(10,18)).toFixed(17) is "-1000000000000000000.00000000000000000"
     80 PASS Number(-Math.pow(10,19)).toFixed(18) is "-10000000000000000000.000000000000000000"
     81 PASS Number(-Math.pow(10,17)).toFixed(20) is "-100000000000000000.00000000000000000000"
     82 PASS Number(-Math.pow(10,18)).toFixed(20) is "-1000000000000000000.00000000000000000000"
     83 PASS Number(-Math.pow(10,19)).toFixed(20) is "-10000000000000000000.00000000000000000000"
     84 PASS Number(-Math.pow(10,20)).toFixed(20) is "-100000000000000000000.00000000000000000000"
     85 PASS Number(-Math.pow(10,21)).toFixed(20) is "-1e+21"
     86 PASS toFixedOrException(2,-1).indexOf('Range') >= 0 is true
     87 PASS Number(2).toFixed(0) is "2"
     88 PASS Number(2).toFixed(20) is "2.00000000000000000000"
     89 PASS toFixedOrException(2,21).indexOf('Range') >= 0 is true
     90 PASS toFixedOrException(-2,-1).indexOf('Range') >= 0 is true
     91 PASS Number(-2).toFixed(0) is "-2"
     92 PASS Number(-2).toFixed(20) is "-2.00000000000000000000"
     93 PASS toFixedOrException(-2,21).indexOf('Range') >= 0 is true
     94 PASS Number(NaN).toExponential() is "NaN"
     95 PASS Number(Infinity).toExponential() is "Infinity"
     96 PASS Number(-Infinity).toExponential() is "-Infinity"
     97 PASS Number(NaN).toExponential(4) is "NaN"
     98 PASS Number(Infinity).toExponential(4) is "Infinity"
     99 PASS Number(-Infinity).toExponential(4) is "-Infinity"
    100 PASS Number(123.456).toExponential() is "1.23456e+2"
    101 PASS try { Number(123.456).toExponential(-1) } catch (e) { String(e).indexOf('Range') >= 0; } is true
    102 PASS Number(123.456).toExponential(0) is "1e+2"
    103 PASS Number(123.456).toExponential(1) is "1.2e+2"
    104 PASS Number(123.456).toExponential(2) is "1.23e+2"
    105 PASS Number(123.456).toExponential(3) is "1.235e+2"
    106 PASS Number(123.456).toExponential(4) is "1.2346e+2"
    107 PASS Number(123.456).toExponential(5) is "1.23456e+2"
    108 PASS Number(123.456).toExponential(6) is "1.234560e+2"
    109 PASS Number(123.456).toExponential(7) is "1.2345600e+2"
    110 PASS Number(123.456).toExponential(8) is "1.23456000e+2"
    111 PASS Number(123.456).toExponential(9) is "1.234560000e+2"
    112 PASS Number(123.456).toExponential(10) is "1.2345600000e+2"
    113 PASS Number(123.456).toExponential(11) is "1.23456000000e+2"
    114 PASS Number(123.456).toExponential(12) is "1.234560000000e+2"
    115 PASS Number(123.456).toExponential(13) is "1.2345600000000e+2"
    116 PASS Number(123.456).toExponential(14) is "1.23456000000000e+2"
    117 PASS Number(123.456).toExponential(15) is "1.234560000000000e+2"
    118 PASS Number(123.456).toExponential(16) is "1.2345600000000000e+2"
    119 PASS Number(123.456).toExponential(17) is "1.23456000000000003e+2"
    120 PASS Number(123.456).toExponential(18) is "1.234560000000000031e+2"
    121 PASS Number(123.456).toExponential(19) is "1.2345600000000000307e+2"
    122 PASS Number(123.456).toExponential(20) is "1.23456000000000003070e+2"
    123 PASS try { Number(123.456).toExponential(21) } catch (e) { String(e).indexOf('Range') >= 0; } is true
    124 PASS Number(-123.456).toExponential() is "-1.23456e+2"
    125 PASS try { Number(-123.456).toExponential(-1) } catch (e) { String(e).indexOf('Range') >= 0; } is true
    126 PASS Number(-123.456).toExponential(0) is "-1e+2"
    127 PASS Number(-123.456).toExponential(1) is "-1.2e+2"
    128 PASS Number(-123.456).toExponential(2) is "-1.23e+2"
    129 PASS Number(-123.456).toExponential(3) is "-1.235e+2"
    130 PASS Number(-123.456).toExponential(4) is "-1.2346e+2"
    131 PASS Number(-123.456).toExponential(5) is "-1.23456e+2"
    132 PASS Number(-123.456).toExponential(6) is "-1.234560e+2"
    133 PASS Number(-123.456).toExponential(7) is "-1.2345600e+2"
    134 PASS Number(-123.456).toExponential(8) is "-1.23456000e+2"
    135 PASS Number(-123.456).toExponential(9) is "-1.234560000e+2"
    136 PASS Number(-123.456).toExponential(10) is "-1.2345600000e+2"
    137 PASS Number(-123.456).toExponential(11) is "-1.23456000000e+2"
    138 PASS Number(-123.456).toExponential(12) is "-1.234560000000e+2"
    139 PASS Number(-123.456).toExponential(13) is "-1.2345600000000e+2"
    140 PASS Number(-123.456).toExponential(14) is "-1.23456000000000e+2"
    141 PASS Number(-123.456).toExponential(15) is "-1.234560000000000e+2"
    142 PASS Number(-123.456).toExponential(16) is "-1.2345600000000000e+2"
    143 PASS Number(-123.456).toExponential(17) is "-1.23456000000000003e+2"
    144 PASS Number(-123.456).toExponential(18) is "-1.234560000000000031e+2"
    145 PASS Number(-123.456).toExponential(19) is "-1.2345600000000000307e+2"
    146 PASS Number(-123.456).toExponential(20) is "-1.23456000000000003070e+2"
    147 PASS try { Number(-123.456).toExponential(21) } catch (e) { String(e).indexOf('Range') >= 0; } is true
    148 PASS Number(.000123456).toExponential() is "1.23456e-4"
    149 PASS try { Number(.000123456).toExponential(-1) } catch (e) { String(e).indexOf('Range') >= 0; } is true
    150 PASS Number(.000123456).toExponential(0) is "1e-4"
    151 PASS Number(.000123456).toExponential(1) is "1.2e-4"
    152 PASS Number(.000123456).toExponential(2) is "1.23e-4"
    153 PASS Number(.000123456).toExponential(3) is "1.235e-4"
    154 PASS Number(.000123456).toExponential(4) is "1.2346e-4"
    155 PASS Number(.000123456).toExponential(5) is "1.23456e-4"
    156 PASS Number(.000123456).toExponential(6) is "1.234560e-4"
    157 PASS Number(.000123456).toExponential(7) is "1.2345600e-4"
    158 PASS Number(.000123456).toExponential(8) is "1.23456000e-4"
    159 PASS Number(.000123456).toExponential(9) is "1.234560000e-4"
    160 PASS Number(.000123456).toExponential(10) is "1.2345600000e-4"
    161 PASS Number(.000123456).toExponential(11) is "1.23456000000e-4"
    162 PASS Number(.000123456).toExponential(12) is "1.234560000000e-4"
    163 PASS Number(.000123456).toExponential(13) is "1.2345600000000e-4"
    164 PASS Number(.000123456).toExponential(14) is "1.23456000000000e-4"
    165 PASS Number(.000123456).toExponential(15) is "1.234560000000000e-4"
    166 PASS Number(.000123456).toExponential(16) is "1.2345600000000001e-4"
    167 PASS Number(.000123456).toExponential(17) is "1.23456000000000005e-4"
    168 PASS Number(.000123456).toExponential(18) is "1.234560000000000052e-4"
    169 PASS Number(.000123456).toExponential(19) is "1.2345600000000000519e-4"
    170 PASS Number(.000123456).toExponential(20) is "1.23456000000000005188e-4"
    171 PASS try { Number(.000123456).toExponential(21) } catch (e) { String(e).indexOf('Range') >= 0; } is true
    172 PASS Number(-.000123456).toExponential() is "-1.23456e-4"
    173 PASS try { Number(-.000123456).toExponential(-1) } catch (e) { String(e).indexOf('Range') >= 0; } is true
    174 PASS Number(-.000123456).toExponential(0) is "-1e-4"
    175 PASS Number(-.000123456).toExponential(1) is "-1.2e-4"
    176 PASS Number(-.000123456).toExponential(2) is "-1.23e-4"
    177 PASS Number(-.000123456).toExponential(3) is "-1.235e-4"
    178 PASS Number(-.000123456).toExponential(4) is "-1.2346e-4"
    179 PASS Number(-.000123456).toExponential(5) is "-1.23456e-4"
    180 PASS Number(-.000123456).toExponential(6) is "-1.234560e-4"
    181 PASS Number(-.000123456).toExponential(7) is "-1.2345600e-4"
    182 PASS Number(-.000123456).toExponential(8) is "-1.23456000e-4"
    183 PASS Number(-.000123456).toExponential(9) is "-1.234560000e-4"
    184 PASS Number(-.000123456).toExponential(10) is "-1.2345600000e-4"
    185 PASS Number(-.000123456).toExponential(11) is "-1.23456000000e-4"
    186 PASS Number(-.000123456).toExponential(12) is "-1.234560000000e-4"
    187 PASS Number(-.000123456).toExponential(13) is "-1.2345600000000e-4"
    188 PASS Number(-.000123456).toExponential(14) is "-1.23456000000000e-4"
    189 PASS Number(-.000123456).toExponential(15) is "-1.234560000000000e-4"
    190 PASS Number(-.000123456).toExponential(16) is "-1.2345600000000001e-4"
    191 PASS Number(-.000123456).toExponential(17) is "-1.23456000000000005e-4"
    192 PASS Number(-.000123456).toExponential(18) is "-1.234560000000000052e-4"
    193 PASS Number(-.000123456).toExponential(19) is "-1.2345600000000000519e-4"
    194 PASS Number(-.000123456).toExponential(20) is "-1.23456000000000005188e-4"
    195 PASS try { Number(-.000123456).toExponential(21) } catch (e) { String(e).indexOf('Range') >= 0; } is true
    196 PASS Number(123.4567890123456789012).toExponential() is "1.2345678901234568e+2"
    197 PASS try { Number(123.4567890123456789012).toExponential(-1) } catch (e) { String(e).indexOf('Range') >= 0; } is true
    198 PASS Number(123.4567890123456789012).toExponential(0) is "1e+2"
    199 PASS Number(123.4567890123456789012).toExponential(1) is "1.2e+2"
    200 PASS Number(123.4567890123456789012).toExponential(2) is "1.23e+2"
    201 PASS Number(123.4567890123456789012).toExponential(3) is "1.235e+2"
    202 PASS Number(123.4567890123456789012).toExponential(4) is "1.2346e+2"
    203 PASS Number(123.4567890123456789012).toExponential(5) is "1.23457e+2"
    204 PASS Number(123.4567890123456789012).toExponential(6) is "1.234568e+2"
    205 PASS Number(123.4567890123456789012).toExponential(7) is "1.2345679e+2"
    206 PASS Number(123.4567890123456789012).toExponential(8) is "1.23456789e+2"
    207 PASS Number(123.4567890123456789012).toExponential(9) is "1.234567890e+2"
    208 PASS Number(123.4567890123456789012).toExponential(10) is "1.2345678901e+2"
    209 PASS Number(123.4567890123456789012).toExponential(11) is "1.23456789012e+2"
    210 PASS Number(123.4567890123456789012).toExponential(12) is "1.234567890123e+2"
    211 PASS Number(123.4567890123456789012).toExponential(13) is "1.2345678901235e+2"
    212 PASS Number(123.4567890123456789012).toExponential(14) is "1.23456789012346e+2"
    213 PASS Number(123.4567890123456789012).toExponential(15) is "1.234567890123457e+2"
    214 PASS Number(123.4567890123456789012).toExponential(16) is "1.2345678901234568e+2"
    215 PASS Number(123.4567890123456789012).toExponential(17) is "1.23456789012345681e+2"
    216 PASS Number(123.4567890123456789012).toExponential(18) is "1.234567890123456806e+2"
    217 PASS Number(123.4567890123456789012).toExponential(19) is "1.2345678901234568059e+2"
    218 PASS Number(123.4567890123456789012).toExponential(20) is "1.23456789012345680590e+2"
    219 PASS try { Number(123.4567890123456789012).toExponential(21) } catch (e) { String(e).indexOf('Range') >= 0; } is true
    220 PASS Number(-123.4567890123456789012).toExponential() is "-1.2345678901234568e+2"
    221 PASS try { Number(-123.4567890123456789012).toExponential(-1) } catch (e) { String(e).indexOf('Range') >= 0; } is true
    222 PASS Number(-123.4567890123456789012).toExponential(0) is "-1e+2"
    223 PASS Number(-123.4567890123456789012).toExponential(1) is "-1.2e+2"
    224 PASS Number(-123.4567890123456789012).toExponential(2) is "-1.23e+2"
    225 PASS Number(-123.4567890123456789012).toExponential(3) is "-1.235e+2"
    226 PASS Number(-123.4567890123456789012).toExponential(4) is "-1.2346e+2"
    227 PASS Number(-123.4567890123456789012).toExponential(5) is "-1.23457e+2"
    228 PASS Number(-123.4567890123456789012).toExponential(6) is "-1.234568e+2"
    229 PASS Number(-123.4567890123456789012).toExponential(7) is "-1.2345679e+2"
    230 PASS Number(-123.4567890123456789012).toExponential(8) is "-1.23456789e+2"
    231 PASS Number(-123.4567890123456789012).toExponential(9) is "-1.234567890e+2"
    232 PASS Number(-123.4567890123456789012).toExponential(10) is "-1.2345678901e+2"
    233 PASS Number(-123.4567890123456789012).toExponential(11) is "-1.23456789012e+2"
    234 PASS Number(-123.4567890123456789012).toExponential(12) is "-1.234567890123e+2"
    235 PASS Number(-123.4567890123456789012).toExponential(13) is "-1.2345678901235e+2"
    236 PASS Number(-123.4567890123456789012).toExponential(14) is "-1.23456789012346e+2"
    237 PASS Number(-123.4567890123456789012).toExponential(15) is "-1.234567890123457e+2"
    238 PASS Number(-123.4567890123456789012).toExponential(16) is "-1.2345678901234568e+2"
    239 PASS Number(-123.4567890123456789012).toExponential(17) is "-1.23456789012345681e+2"
    240 PASS Number(-123.4567890123456789012).toExponential(18) is "-1.234567890123456806e+2"
    241 PASS Number(-123.4567890123456789012).toExponential(19) is "-1.2345678901234568059e+2"
    242 PASS Number(-123.4567890123456789012).toExponential(20) is "-1.23456789012345680590e+2"
    243 PASS try { Number(-123.4567890123456789012).toExponential(21) } catch (e) { String(e).indexOf('Range') >= 0; } is true
    244 PASS Number(.0000000000000000000001).toExponential() is "1e-22"
    245 PASS Number(.0000000000000000000012).toExponential() is "1.2e-21"
    246 PASS Number(.0000000000000000000123).toExponential() is "1.23e-20"
    247 PASS Number(.0000000000000000000123).toExponential() is "1.23e-20"
    248 PASS Number(.0000000000000000001234).toExponential() is "1.234e-19"
    249 PASS Number(.0000000000000000012345).toExponential() is "1.2345e-18"
    250 PASS Number(.0000000000000000123456).toExponential() is "1.23456e-17"
    251 PASS Number(.0000000000000001234567).toExponential() is "1.234567e-16"
    252 PASS Number(.0000000000000012345678).toExponential() is "1.2345678e-15"
    253 PASS Number(.0000000000000123456789).toExponential() is "1.23456789e-14"
    254 PASS Number(.0000000000001234567890).toExponential() is "1.23456789e-13"
    255 PASS Number(.0000000000012345678901).toExponential() is "1.2345678901e-12"
    256 PASS Number(.0000000000123456789012).toExponential() is "1.23456789012e-11"
    257 PASS Number(.0000000001234567890123).toExponential() is "1.234567890123e-10"
    258 PASS Number(.0000000012345678901234).toExponential() is "1.2345678901234e-9"
    259 PASS Number(.0000000123456789012345).toExponential() is "1.23456789012345e-8"
    260 PASS Number(.0000001234567890123456).toExponential() is "1.234567890123456e-7"
    261 PASS Number(.0000012345678901234567).toExponential() is "1.2345678901234567e-6"
    262 PASS Number(.0000123456789012345678).toExponential() is "1.2345678901234568e-5"
    263 PASS Number(.0001234567890123456789).toExponential() is "1.2345678901234567e-4"
    264 PASS Number(.0012345678901234567890).toExponential() is "1.2345678901234567e-3"
    265 PASS Number(.0123456789012345678901).toExponential() is "1.2345678901234568e-2"
    266 PASS Number(1.234567890123456789012).toExponential() is "1.2345678901234567e+0"
    267 PASS Number(12.34567890123456789012).toExponential() is "1.2345678901234567e+1"
    268 PASS Number(123.4567890123456789012).toExponential() is "1.2345678901234568e+2"
    269 PASS Number(1234.567890123456789012).toExponential() is "1.234567890123457e+3"
    270 PASS Number(12345.67890123456789012).toExponential() is "1.2345678901234567e+4"
    271 PASS Number(123456.7890123456789012).toExponential() is "1.2345678901234567e+5"
    272 PASS Number(1234567.890123456789012).toExponential() is "1.2345678901234567e+6"
    273 PASS Number(12345678.90123456789012).toExponential() is "1.2345678901234567e+7"
    274 PASS Number(123456789.0123456789012).toExponential() is "1.2345678901234567e+8"
    275 PASS Number(1234567890.123456789012).toExponential() is "1.2345678901234567e+9"
    276 PASS Number(12345678901.23456789012).toExponential() is "1.2345678901234568e+10"
    277 PASS Number(123456789012.3456789012).toExponential() is "1.2345678901234567e+11"
    278 PASS Number(1234567890123.456789012).toExponential() is "1.2345678901234568e+12"
    279 PASS Number(12345678901234.56789012).toExponential() is "1.2345678901234568e+13"
    280 PASS Number(123456789012345.6789012).toExponential() is "1.2345678901234567e+14"
    281 PASS Number(1234567890123456.789012).toExponential() is "1.2345678901234568e+15"
    282 PASS Number(12345678901234567.89012).toExponential() is "1.2345678901234568e+16"
    283 PASS Number(123456789012345678.9012).toExponential() is "1.2345678901234568e+17"
    284 PASS Number(1234567890123456789.012).toExponential() is "1.2345678901234568e+18"
    285 PASS Number(12345678901234567890.12).toExponential() is "1.2345678901234567e+19"
    286 PASS Number(123456789012345678901.2).toExponential() is "1.2345678901234568e+20"
    287 PASS Number(-.0000000000000000000001).toExponential() is "-1e-22"
    288 PASS Number(-.0000000000000000000012).toExponential() is "-1.2e-21"
    289 PASS Number(-.0000000000000000000123).toExponential() is "-1.23e-20"
    290 PASS Number(-.0000000000000000000123).toExponential() is "-1.23e-20"
    291 PASS Number(-.0000000000000000001234).toExponential() is "-1.234e-19"
    292 PASS Number(-.0000000000000000012345).toExponential() is "-1.2345e-18"
    293 PASS Number(-.0000000000000000123456).toExponential() is "-1.23456e-17"
    294 PASS Number(-.0000000000000001234567).toExponential() is "-1.234567e-16"
    295 PASS Number(-.0000000000000012345678).toExponential() is "-1.2345678e-15"
    296 PASS Number(-.0000000000000123456789).toExponential() is "-1.23456789e-14"
    297 PASS Number(-.0000000000001234567890).toExponential() is "-1.23456789e-13"
    298 PASS Number(-.0000000000012345678901).toExponential() is "-1.2345678901e-12"
    299 PASS Number(-.0000000000123456789012).toExponential() is "-1.23456789012e-11"
    300 PASS Number(-.0000000001234567890123).toExponential() is "-1.234567890123e-10"
    301 PASS Number(-.0000000012345678901234).toExponential() is "-1.2345678901234e-9"
    302 PASS Number(-.0000000123456789012345).toExponential() is "-1.23456789012345e-8"
    303 PASS Number(-.0000001234567890123456).toExponential() is "-1.234567890123456e-7"
    304 PASS Number(-.0000012345678901234567).toExponential() is "-1.2345678901234567e-6"
    305 PASS Number(-.0000123456789012345678).toExponential() is "-1.2345678901234568e-5"
    306 PASS Number(-.0001234567890123456789).toExponential() is "-1.2345678901234567e-4"
    307 PASS Number(-.0012345678901234567890).toExponential() is "-1.2345678901234567e-3"
    308 PASS Number(-.0123456789012345678901).toExponential() is "-1.2345678901234568e-2"
    309 PASS Number(-1.234567890123456789012).toExponential() is "-1.2345678901234567e+0"
    310 PASS Number(-12.34567890123456789012).toExponential() is "-1.2345678901234567e+1"
    311 PASS Number(-123.4567890123456789012).toExponential() is "-1.2345678901234568e+2"
    312 PASS Number(-1234.567890123456789012).toExponential() is "-1.234567890123457e+3"
    313 PASS Number(-12345.67890123456789012).toExponential() is "-1.2345678901234567e+4"
    314 PASS Number(-123456.7890123456789012).toExponential() is "-1.2345678901234567e+5"
    315 PASS Number(-1234567.890123456789012).toExponential() is "-1.2345678901234567e+6"
    316 PASS Number(-12345678.90123456789012).toExponential() is "-1.2345678901234567e+7"
    317 PASS Number(-123456789.0123456789012).toExponential() is "-1.2345678901234567e+8"
    318 PASS Number(-1234567890.123456789012).toExponential() is "-1.2345678901234567e+9"
    319 PASS Number(-12345678901.23456789012).toExponential() is "-1.2345678901234568e+10"
    320 PASS Number(-123456789012.3456789012).toExponential() is "-1.2345678901234567e+11"
    321 PASS Number(-1234567890123.456789012).toExponential() is "-1.2345678901234568e+12"
    322 PASS Number(-12345678901234.56789012).toExponential() is "-1.2345678901234568e+13"
    323 PASS Number(-123456789012345.6789012).toExponential() is "-1.2345678901234567e+14"
    324 PASS Number(-1234567890123456.789012).toExponential() is "-1.2345678901234568e+15"
    325 PASS Number(-12345678901234567.89012).toExponential() is "-1.2345678901234568e+16"
    326 PASS Number(-123456789012345678.9012).toExponential() is "-1.2345678901234568e+17"
    327 PASS Number(-1234567890123456789.012).toExponential() is "-1.2345678901234568e+18"
    328 PASS Number(-12345678901234567890.12).toExponential() is "-1.2345678901234567e+19"
    329 PASS Number(-123456789012345678901.2).toExponential() is "-1.2345678901234568e+20"
    330 PASS try { Number(1).toPrecision(-1); } catch (e) { String(e).indexOf('Range') >= 0; } is true
    331 PASS try { Number(1).toPrecision(0); } catch (e) { String(e).indexOf('Range') >= 0; } is true
    332 PASS try { Number(1).toPrecision(1); } catch (e) { String(e); } is "1"
    333 PASS try { Number(1).toPrecision(21); } catch (e) { String(e); } is "1.00000000000000000000"
    334 PASS try { Number(1).toPrecision(22); } catch (e) { String(e).indexOf('Range') >= 0; } is true
    335 PASS Number(NaN).toPrecision() is "NaN"
    336 PASS Number(NaN).toPrecision(1) is "NaN"
    337 PASS Number(Infinity).toPrecision() is "Infinity"
    338 PASS Number(Infinity).toPrecision(1) is "Infinity"
    339 PASS Number(-Infinity).toPrecision() is "-Infinity"
    340 PASS Number(-Infinity).toPrecision(1) is "-Infinity"
    341 PASS Number(.0000000012345).toPrecision(2) is "1.2e-9"
    342 PASS Number(.000000012345).toPrecision(2) is "1.2e-8"
    343 PASS Number(.00000012345).toPrecision(2) is "1.2e-7"
    344 PASS Number(.0000012345).toPrecision(2) is "0.0000012"
    345 PASS Number(.000012345).toPrecision(2) is "0.000012"
    346 PASS Number(.00012345).toPrecision(2) is "0.00012"
    347 PASS Number(.0012345).toPrecision(2) is "0.0012"
    348 PASS Number(.012345).toPrecision(2) is "0.012"
    349 PASS Number(.12345).toPrecision(2) is "0.12"
    350 PASS Number(1.2345).toPrecision(2) is "1.2"
    351 PASS Number(12.345).toPrecision(2) is "12"
    352 PASS Number(123.45).toPrecision(2) is "1.2e+2"
    353 PASS Number(1234.5).toPrecision(2) is "1.2e+3"
    354 PASS Number(12345).toPrecision(2) is "1.2e+4"
    355 PASS Number(12345.67).toPrecision(4) is "1.235e+4"
    356 PASS Number(12344.67).toPrecision(4) is "1.234e+4"
    357 PASS Number(0.0001234567890123456789012345).toPrecision() is "0.00012345678901234567"
    358 PASS Number(0.0001234567890123456789012345).toPrecision(1) is "0.0001"
    359 PASS Number(0.0001234567890123456789012345).toPrecision(2) is "0.00012"
    360 PASS Number(0.0001234567890123456789012345).toPrecision(3) is "0.000123"
    361 PASS Number(0.0001234567890123456789012345).toPrecision(4) is "0.0001235"
    362 PASS Number(0.0001234567890123456789012345).toPrecision(5) is "0.00012346"
    363 PASS Number(0.0001234567890123456789012345).toPrecision(6) is "0.000123457"
    364 PASS Number(0.0001234567890123456789012345).toPrecision(7) is "0.0001234568"
    365 PASS Number(0.0001234567890123456789012345).toPrecision(8) is "0.00012345679"
    366 PASS Number(0.0001234567890123456789012345).toPrecision(9) is "0.000123456789"
    367 PASS Number(0.0001234567890123456789012345).toPrecision(10) is "0.0001234567890"
    368 PASS Number(0.0001234567890123456789012345).toPrecision(11) is "0.00012345678901"
    369 PASS Number(0.0001234567890123456789012345).toPrecision(12) is "0.000123456789012"
    370 PASS Number(0.0001234567890123456789012345).toPrecision(13) is "0.0001234567890123"
    371 PASS Number(0.0001234567890123456789012345).toPrecision(14) is "0.00012345678901235"
    372 PASS Number(0.0001234567890123456789012345).toPrecision(15) is "0.000123456789012346"
    373 PASS Number(0.0001234567890123456789012345).toPrecision(16) is "0.0001234567890123457"
    374 PASS Number(0.0001234567890123456789012345).toPrecision(17) is "0.00012345678901234567"
    375 PASS Number(0.0001234567890123456789012345).toPrecision(18) is "0.000123456789012345671"
    376 PASS Number(0.0001234567890123456789012345).toPrecision(19) is "0.0001234567890123456713"
    377 PASS Number(0.0001234567890123456789012345).toPrecision(20) is "0.00012345678901234567130"
    378 PASS Number(0.0001234567890123456789012345).toPrecision(21) is "0.000123456789012345671298"
    379 PASS Number(12345.67890123456789012345).toPrecision() is "12345.678901234567"
    380 PASS Number(12345.67890123456789012345).toPrecision(1) is "1e+4"
    381 PASS Number(12345.67890123456789012345).toPrecision(2) is "1.2e+4"
    382 PASS Number(12345.67890123456789012345).toPrecision(3) is "1.23e+4"
    383 PASS Number(12345.67890123456789012345).toPrecision(4) is "1.235e+4"
    384 PASS Number(12345.67890123456789012345).toPrecision(5) is "12346"
    385 PASS Number(12345.67890123456789012345).toPrecision(6) is "12345.7"
    386 PASS Number(12345.67890123456789012345).toPrecision(7) is "12345.68"
    387 PASS Number(12345.67890123456789012345).toPrecision(8) is "12345.679"
    388 PASS Number(12345.67890123456789012345).toPrecision(9) is "12345.6789"
    389 PASS Number(12345.67890123456789012345).toPrecision(10) is "12345.67890"
    390 PASS Number(12345.67890123456789012345).toPrecision(11) is "12345.678901"
    391 PASS Number(12345.67890123456789012345).toPrecision(12) is "12345.6789012"
    392 PASS Number(12345.67890123456789012345).toPrecision(13) is "12345.67890123"
    393 PASS Number(12345.67890123456789012345).toPrecision(14) is "12345.678901235"
    394 PASS Number(12345.67890123456789012345).toPrecision(15) is "12345.6789012346"
    395 PASS Number(12345.67890123456789012345).toPrecision(16) is "12345.67890123457"
    396 PASS Number(12345.67890123456789012345).toPrecision(17) is "12345.678901234567"
    397 PASS Number(12345.67890123456789012345).toPrecision(18) is "12345.6789012345671"
    398 PASS Number(12345.67890123456789012345).toPrecision(19) is "12345.67890123456709"
    399 PASS Number(12345.67890123456789012345).toPrecision(20) is "12345.678901234567093"
    400 PASS Number(12345.67890123456789012345).toPrecision(21) is "12345.6789012345670926"
    401 PASS Number(-.0000000012345).toPrecision(2) is "-1.2e-9"
    402 PASS Number(-.000000012345).toPrecision(2) is "-1.2e-8"
    403 PASS Number(-.00000012345).toPrecision(2) is "-1.2e-7"
    404 PASS Number(-.0000012345).toPrecision(2) is "-0.0000012"
    405 PASS Number(-.000012345).toPrecision(2) is "-0.000012"
    406 PASS Number(-.00012345).toPrecision(2) is "-0.00012"
    407 PASS Number(-.0012345).toPrecision(2) is "-0.0012"
    408 PASS Number(-.012345).toPrecision(2) is "-0.012"
    409 PASS Number(-.12345).toPrecision(2) is "-0.12"
    410 PASS Number(-1.2345).toPrecision(2) is "-1.2"
    411 PASS Number(-12.345).toPrecision(2) is "-12"
    412 PASS Number(-123.45).toPrecision(2) is "-1.2e+2"
    413 PASS Number(-1234.5).toPrecision(2) is "-1.2e+3"
    414 PASS Number(-12345).toPrecision(2) is "-1.2e+4"
    415 PASS Number(-12345.67).toPrecision(4) is "-1.235e+4"
    416 PASS Number(-12344.67).toPrecision(4) is "-1.234e+4"
    417 PASS Number(-0.0001234567890123456789012345).toPrecision() is "-0.00012345678901234567"
    418 PASS Number(-0.0001234567890123456789012345).toPrecision(1) is "-0.0001"
    419 PASS Number(-0.0001234567890123456789012345).toPrecision(2) is "-0.00012"
    420 PASS Number(-0.0001234567890123456789012345).toPrecision(3) is "-0.000123"
    421 PASS Number(-0.0001234567890123456789012345).toPrecision(4) is "-0.0001235"
    422 PASS Number(-0.0001234567890123456789012345).toPrecision(5) is "-0.00012346"
    423 PASS Number(-0.0001234567890123456789012345).toPrecision(6) is "-0.000123457"
    424 PASS Number(-0.0001234567890123456789012345).toPrecision(7) is "-0.0001234568"
    425 PASS Number(-0.0001234567890123456789012345).toPrecision(8) is "-0.00012345679"
    426 PASS Number(-0.0001234567890123456789012345).toPrecision(9) is "-0.000123456789"
    427 PASS Number(-0.0001234567890123456789012345).toPrecision(10) is "-0.0001234567890"
    428 PASS Number(-0.0001234567890123456789012345).toPrecision(11) is "-0.00012345678901"
    429 PASS Number(-0.0001234567890123456789012345).toPrecision(12) is "-0.000123456789012"
    430 PASS Number(-0.0001234567890123456789012345).toPrecision(13) is "-0.0001234567890123"
    431 PASS Number(-0.0001234567890123456789012345).toPrecision(14) is "-0.00012345678901235"
    432 PASS Number(-0.0001234567890123456789012345).toPrecision(15) is "-0.000123456789012346"
    433 PASS Number(-0.0001234567890123456789012345).toPrecision(16) is "-0.0001234567890123457"
    434 PASS Number(-0.0001234567890123456789012345).toPrecision(17) is "-0.00012345678901234567"
    435 PASS Number(-0.0001234567890123456789012345).toPrecision(18) is "-0.000123456789012345671"
    436 PASS Number(-0.0001234567890123456789012345).toPrecision(19) is "-0.0001234567890123456713"
    437 PASS Number(-0.0001234567890123456789012345).toPrecision(20) is "-0.00012345678901234567130"
    438 PASS Number(-0.0001234567890123456789012345).toPrecision(21) is "-0.000123456789012345671298"
    439 PASS Number(-12345.67890123456789012345).toPrecision() is "-12345.678901234567"
    440 PASS Number(-12345.67890123456789012345).toPrecision(1) is "-1e+4"
    441 PASS Number(-12345.67890123456789012345).toPrecision(2) is "-1.2e+4"
    442 PASS Number(-12345.67890123456789012345).toPrecision(3) is "-1.23e+4"
    443 PASS Number(-12345.67890123456789012345).toPrecision(4) is "-1.235e+4"
    444 PASS Number(-12345.67890123456789012345).toPrecision(5) is "-12346"
    445 PASS Number(-12345.67890123456789012345).toPrecision(6) is "-12345.7"
    446 PASS Number(-12345.67890123456789012345).toPrecision(7) is "-12345.68"
    447 PASS Number(-12345.67890123456789012345).toPrecision(8) is "-12345.679"
    448 PASS Number(-12345.67890123456789012345).toPrecision(9) is "-12345.6789"
    449 PASS Number(-12345.67890123456789012345).toPrecision(10) is "-12345.67890"
    450 PASS Number(-12345.67890123456789012345).toPrecision(11) is "-12345.678901"
    451 PASS Number(-12345.67890123456789012345).toPrecision(12) is "-12345.6789012"
    452 PASS Number(-12345.67890123456789012345).toPrecision(13) is "-12345.67890123"
    453 PASS Number(-12345.67890123456789012345).toPrecision(14) is "-12345.678901235"
    454 PASS Number(-12345.67890123456789012345).toPrecision(15) is "-12345.6789012346"
    455 PASS Number(-12345.67890123456789012345).toPrecision(16) is "-12345.67890123457"
    456 PASS Number(-12345.67890123456789012345).toPrecision(17) is "-12345.678901234567"
    457 PASS Number(-12345.67890123456789012345).toPrecision(18) is "-12345.6789012345671"
    458 PASS Number(-12345.67890123456789012345).toPrecision(19) is "-12345.67890123456709"
    459 PASS Number(-12345.67890123456789012345).toPrecision(20) is "-12345.678901234567093"
    460 PASS Number(-12345.67890123456789012345).toPrecision(21) is "-12345.6789012345670926"
    461 PASS Number(0).toPrecision() is "0"
    462 PASS Number(0).toPrecision(1) is "0"
    463 PASS Number(0).toPrecision(2) is "0.0"
    464 PASS Number(0).toPrecision(3) is "0.00"
    465 PASS Number(0).toPrecision(4) is "0.000"
    466 PASS Number(0).toPrecision(5) is "0.0000"
    467 PASS Number(0).toPrecision(6) is "0.00000"
    468 PASS Number(0).toPrecision(7) is "0.000000"
    469 PASS Number(0).toPrecision(8) is "0.0000000"
    470 PASS Number(0).toPrecision(9) is "0.00000000"
    471 PASS Number(0).toPrecision(10) is "0.000000000"
    472 PASS Number(0).toPrecision(11) is "0.0000000000"
    473 PASS Number(0).toPrecision(12) is "0.00000000000"
    474 PASS Number(0).toPrecision(13) is "0.000000000000"
    475 PASS Number(0).toPrecision(14) is "0.0000000000000"
    476 PASS Number(0).toPrecision(15) is "0.00000000000000"
    477 PASS Number(0).toPrecision(16) is "0.000000000000000"
    478 PASS Number(0).toPrecision(17) is "0.0000000000000000"
    479 PASS Number(0).toPrecision(18) is "0.00000000000000000"
    480 PASS Number(0).toPrecision(19) is "0.000000000000000000"
    481 PASS Number(0).toPrecision(20) is "0.0000000000000000000"
    482 PASS Number(0).toPrecision(21) is "0.00000000000000000000"
    483 PASS successfullyParsed is true
    484 
    485 TEST COMPLETE
    486 
    487