js/src/tests/test262/ch11/11.2/11.2.1/S11.2.1_A4_T8.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 // Copyright 2009 the Sputnik authors.  All rights reserved.
     2 // This code is governed by the BSD license found in the LICENSE file.
     4 /**
     5  * Check type of various properties
     6  *
     7  * @path ch11/11.2/11.2.1/S11.2.1_A4_T8.js
     8  * @description Checking properties of the Math Object
     9  */
    11 //CHECK#1-52
    12 if (typeof Math.E !== "number")  $ERROR('#1: typeof Math.E === "number". Actual: ' + (typeof Math.E ));
    13 if (typeof Math['E'] !== "number")  $ERROR('#2: typeof Math["E"] === "number". Actual: ' + (typeof Math["E"] ));
    14 if (typeof Math.LN10 !== "number")  $ERROR('#3: typeof Math.LN10 === "number". Actual: ' + (typeof Math.LN10 ));
    15 if (typeof Math['LN10'] !== "number")  $ERROR('#4: typeof Math["LN10"] === "number". Actual: ' + (typeof Math["LN10"] ));
    16 if (typeof Math.LN2 !== "number")  $ERROR('#5: typeof Math.LN2 === "number". Actual: ' + (typeof Math.LN2 ));
    17 if (typeof Math['LN2'] !== "number")  $ERROR('#6: typeof Math["LN2"] === "number". Actual: ' + (typeof Math["LN2"] ));
    18 if (typeof Math.LOG2E !== "number")  $ERROR('#7: typeof Math.LOG2E === "number". Actual: ' + (typeof Math.LOG2E ));
    19 if (typeof Math['LOG2E'] !== "number")  $ERROR('#8: typeof Math["LOG2E"] === "number". Actual: ' + (typeof Math["LOG2E"] ));
    20 if (typeof Math.LOG10E !== "number")  $ERROR('#9: typeof Math.LOG10E === "number". Actual: ' + (typeof Math.LOG10E ));
    21 if (typeof Math['LOG10E'] !== "number")  $ERROR('#10: typeof Math["LOG10E"] === "number". Actual: ' + (typeof Math["LOG10E"] ));
    22 if (typeof Math.PI !== "number")  $ERROR('#11: typeof Math.PI === "number". Actual: ' + (typeof Math.PI ));
    23 if (typeof Math['PI'] !== "number")  $ERROR('#12: typeof Math["PI"] === "number". Actual: ' + (typeof Math["PI"] ));
    24 if (typeof Math.SQRT1_2 !== "number")  $ERROR('#13: typeof Math.SQRT1_2 === "number". Actual: ' + (typeof Math.SQRT1_2 ));
    25 if (typeof Math['SQRT1_2'] !== "number")  $ERROR('#14: typeof Math["SQRT1_2"] === "number". Actual: ' + (typeof Math["SQRT1_2"] ));
    26 if (typeof Math.SQRT2 !== "number")  $ERROR('#15: typeof Math.SQRT2 === "number". Actual: ' + (typeof Math.SQRT2 ));
    27 if (typeof Math['SQRT2'] !== "number")  $ERROR('#16: typeof Math["SQRT2"] === "number". Actual: ' + (typeof Math["SQRT2"] ));
    28 if (typeof Math.abs !== "function")  $ERROR('#17: typeof Math.abs === "function". Actual: ' + (typeof Math.abs ));
    29 if (typeof Math['abs'] !== "function")  $ERROR('#18: typeof Math["abs"] === "function". Actual: ' + (typeof Math["abs"] ));
    30 if (typeof Math.acos !== "function")  $ERROR('#19: typeof Math.acos === "function". Actual: ' + (typeof Math.acos ));
    31 if (typeof Math['acos'] !== "function")  $ERROR('#20: typeof Math["acos"] === "function". Actual: ' + (typeof Math["acos"] ));
    32 if (typeof Math.asin !== "function")  $ERROR('#21: typeof Math.asin === "function". Actual: ' + (typeof Math.asin ));
    33 if (typeof Math['asin'] !== "function")  $ERROR('#22: typeof Math["asin"] === "function". Actual: ' + (typeof Math["asin"] ));
    34 if (typeof Math.atan !== "function")  $ERROR('#23: typeof Math.atan === "function". Actual: ' + (typeof Math.atan ));
    35 if (typeof Math['atan'] !== "function")  $ERROR('#24: typeof Math["atan"] === "function". Actual: ' + (typeof Math["atan"] ));
    36 if (typeof Math.atan2 !== "function")  $ERROR('#25: typeof Math.atan2 === "function". Actual: ' + (typeof Math.atan2 ));
    37 if (typeof Math['atan2'] !== "function")  $ERROR('#26: typeof Math["atan2"] === "function". Actual: ' + (typeof Math["atan2"] ));
    38 if (typeof Math.ceil !== "function")  $ERROR('#27: typeof Math.ceil === "function". Actual: ' + (typeof Math.ceil ));
    39 if (typeof Math['ceil'] !== "function")  $ERROR('#28: typeof Math["ceil"] === "function". Actual: ' + (typeof Math["ceil"] ));
    40 if (typeof Math.cos !== "function")  $ERROR('#29: typeof Math.cos === "function". Actual: ' + (typeof Math.cos ));
    41 if (typeof Math['cos'] !== "function")  $ERROR('#30: typeof Math["cos"] === "function". Actual: ' + (typeof Math["cos"] ));
    42 if (typeof Math.exp !== "function")  $ERROR('#31: typeof Math.exp === "function". Actual: ' + (typeof Math.exp ));
    43 if (typeof Math['exp'] !== "function")  $ERROR('#32: typeof Math["exp"] === "function". Actual: ' + (typeof Math["exp"] ));
    44 if (typeof Math.floor !== "function")  $ERROR('#33: typeof Math.floor === "function". Actual: ' + (typeof Math.floor ));
    45 if (typeof Math['floor'] !== "function")  $ERROR('#34: typeof Math["floor"] === "function". Actual: ' + (typeof Math["floor"] ));
    46 if (typeof Math.log !== "function")  $ERROR('#35: typeof Math.log === "function". Actual: ' + (typeof Math.log ));
    47 if (typeof Math['log'] !== "function")  $ERROR('#36: typeof Math["log"] === "function". Actual: ' + (typeof Math["log"] ));
    48 if (typeof Math.max !== "function")  $ERROR('#37: typeof Math.max === "function". Actual: ' + (typeof Math.max ));
    49 if (typeof Math['max'] !== "function")  $ERROR('#38: typeof Math["max"] === "function". Actual: ' + (typeof Math["max"] ));
    50 if (typeof Math.min !== "function")  $ERROR('#39: typeof Math.min === "function". Actual: ' + (typeof Math.min ));
    51 if (typeof Math['min'] !== "function")  $ERROR('#40: typeof Math["min"] === "function". Actual: ' + (typeof Math["min"] ));
    52 if (typeof Math.pow !== "function")  $ERROR('#41: typeof Math.pow === "function". Actual: ' + (typeof Math.pow ));
    53 if (typeof Math['pow'] !== "function")  $ERROR('#42: typeof Math["pow"] === "function". Actual: ' + (typeof Math["pow"] ));
    54 if (typeof Math.random !== "function")  $ERROR('#43: typeof Math.random === "function". Actual: ' + (typeof Math.random ));
    55 if (typeof Math['random'] !== "function")  $ERROR('#44: typeof Math["random"] === "function". Actual: ' + (typeof Math["random"] ));
    56 if (typeof Math.round !== "function")  $ERROR('#45: typeof Math.round === "function". Actual: ' + (typeof Math.round ));
    57 if (typeof Math['round'] !== "function")  $ERROR('#46: typeof Math["round"] === "function". Actual: ' + (typeof Math["round"] ));
    58 if (typeof Math.sin !== "function")  $ERROR('#47: typeof Math.sin === "function". Actual: ' + (typeof Math.sin ));
    59 if (typeof Math['sin'] !== "function")  $ERROR('#48: typeof Math["sin"] === "function". Actual: ' + (typeof Math["sin"] ));
    60 if (typeof Math.sqrt !== "function")  $ERROR('#49: typeof Math.sqrt === "function". Actual: ' + (typeof Math.sqrt ));
    61 if (typeof Math['sqrt'] !== "function")  $ERROR('#50: typeof Math["sqrt"] === "function". Actual: ' + (typeof Math["sqrt"] ));
    62 if (typeof Math.tan !== "function")  $ERROR('#51: typeof Math.tan === "function". Actual: ' + (typeof Math.tan ));
    63 if (typeof Math['tan'] !== "function")  $ERROR('#52: typeof Math["tan"] === "function". Actual: ' + (typeof Math["tan"] ));

mercurial