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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/tests/test262/ch11/11.2/11.2.1/S11.2.1_A4_T1.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +// Copyright 2009 the Sputnik authors.  All rights reserved.
     1.5 +// This code is governed by the BSD license found in the LICENSE file.
     1.6 +
     1.7 +/**
     1.8 + * Check type of various properties
     1.9 + *
    1.10 + * @path ch11/11.2/11.2.1/S11.2.1_A4_T1.js
    1.11 + * @description Checking properties of this object
    1.12 + */
    1.13 +
    1.14 +//CHECK#1-32
    1.15 +if (typeof (this.NaN)  === "undefined")  $ERROR('#1: typeof (this.NaN) !== "undefined"');
    1.16 +if (typeof this['NaN']  === "undefined")  $ERROR('#2: typeof this["NaN"] !== "undefined"');
    1.17 +if (typeof this.Infinity  === "undefined")  $ERROR('#3: typeof this.Infinity !== "undefined"');
    1.18 +if (typeof this['Infinity']  === "undefined")  $ERROR('#4: typeof this["Infinity"] !== "undefined"');
    1.19 +if (typeof this.parseInt  === "undefined")  $ERROR('#5: typeof this.parseInt !== "undefined"');
    1.20 +if (typeof this['parseInt'] === "undefined")  $ERROR('#6: typeof this["parseInt"] !== "undefined"');
    1.21 +if (typeof this.parseFloat  === "undefined")  $ERROR('#7: typeof this.parseFloat !== "undefined"');
    1.22 +if (typeof this['parseFloat'] === "undefined")  $ERROR('#8: typeof this["parseFloat"] !== "undefined"');
    1.23 +if (typeof this.isNaN  === "undefined")  $ERROR('#13: typeof this.isNaN !== "undefined"');
    1.24 +if (typeof this['isNaN'] === "undefined")  $ERROR('#14: typeof this["isNaN"] !== "undefined"');
    1.25 +if (typeof this.isFinite  === "undefined")  $ERROR('#15: typeof this.isFinite !== "undefined"');
    1.26 +if (typeof this['isFinite'] === "undefined")  $ERROR('#16: typeof this["isFinite"] !== "undefined"');
    1.27 +if (typeof this.Object === "undefined")  $ERROR('#17: typeof this.Object !== "undefined"');
    1.28 +if (typeof this['Object'] === "undefined")  $ERROR('#18: typeof this["Object"] !== "undefined"');
    1.29 +if (typeof this.Number === "undefined")  $ERROR('#19: typeof this.Number !== "undefined"');
    1.30 +if (typeof this['Number'] === "undefined")  $ERROR('#20: typeof this["Number"] !== "undefined"');
    1.31 +if (typeof this.Function === "undefined")  $ERROR('#21: typeof this.Function !== "undefined"');
    1.32 +if (typeof this['Function'] === "undefined")  $ERROR('#22: typeof this["Function"] !== "undefined"');
    1.33 +if (typeof this.Array === "undefined")  $ERROR('#23: typeof this.Array !== "undefined"');
    1.34 +if (typeof this['Array'] === "undefined")  $ERROR('#24: typeof this["Array"] !== "undefined"');
    1.35 +if (typeof this.String === "undefined")  $ERROR('#25: typeof this.String !== "undefined"');
    1.36 +if (typeof this['String'] === "undefined")  $ERROR('#26: typeof this["String"] !== "undefined"');
    1.37 +if (typeof this.Boolean === "undefined")  $ERROR('#27: typeof this.Boolean !== "undefined"');
    1.38 +if (typeof this['Boolean'] === "undefined")  $ERROR('#28: typeof this["Boolean"] !== "undefined"');
    1.39 +if (typeof this.Date === "undefined")  $ERROR('#29: typeof this.Date !== "undefined"');
    1.40 +if (typeof this['Date'] === "undefined")  $ERROR('#30: typeof this["Date"] !== "undefined"');
    1.41 +if (typeof this.Math === "undefined")  $ERROR('#31: typeof this.Math !== "undefined"');
    1.42 +if (typeof this['Math'] === "undefined")  $ERROR('#32: typeof this["Math"] !== "undefined"');
    1.43 +

mercurial