Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | // Copyright 2009 the Sputnik authors. All rights reserved. |
michael@0 | 2 | // This code is governed by the BSD license found in the LICENSE file. |
michael@0 | 3 | |
michael@0 | 4 | /** |
michael@0 | 5 | * Check type of various properties |
michael@0 | 6 | * |
michael@0 | 7 | * @path ch11/11.2/11.2.1/S11.2.1_A4_T1.js |
michael@0 | 8 | * @description Checking properties of this object |
michael@0 | 9 | */ |
michael@0 | 10 | |
michael@0 | 11 | //CHECK#1-32 |
michael@0 | 12 | if (typeof (this.NaN) === "undefined") $ERROR('#1: typeof (this.NaN) !== "undefined"'); |
michael@0 | 13 | if (typeof this['NaN'] === "undefined") $ERROR('#2: typeof this["NaN"] !== "undefined"'); |
michael@0 | 14 | if (typeof this.Infinity === "undefined") $ERROR('#3: typeof this.Infinity !== "undefined"'); |
michael@0 | 15 | if (typeof this['Infinity'] === "undefined") $ERROR('#4: typeof this["Infinity"] !== "undefined"'); |
michael@0 | 16 | if (typeof this.parseInt === "undefined") $ERROR('#5: typeof this.parseInt !== "undefined"'); |
michael@0 | 17 | if (typeof this['parseInt'] === "undefined") $ERROR('#6: typeof this["parseInt"] !== "undefined"'); |
michael@0 | 18 | if (typeof this.parseFloat === "undefined") $ERROR('#7: typeof this.parseFloat !== "undefined"'); |
michael@0 | 19 | if (typeof this['parseFloat'] === "undefined") $ERROR('#8: typeof this["parseFloat"] !== "undefined"'); |
michael@0 | 20 | if (typeof this.isNaN === "undefined") $ERROR('#13: typeof this.isNaN !== "undefined"'); |
michael@0 | 21 | if (typeof this['isNaN'] === "undefined") $ERROR('#14: typeof this["isNaN"] !== "undefined"'); |
michael@0 | 22 | if (typeof this.isFinite === "undefined") $ERROR('#15: typeof this.isFinite !== "undefined"'); |
michael@0 | 23 | if (typeof this['isFinite'] === "undefined") $ERROR('#16: typeof this["isFinite"] !== "undefined"'); |
michael@0 | 24 | if (typeof this.Object === "undefined") $ERROR('#17: typeof this.Object !== "undefined"'); |
michael@0 | 25 | if (typeof this['Object'] === "undefined") $ERROR('#18: typeof this["Object"] !== "undefined"'); |
michael@0 | 26 | if (typeof this.Number === "undefined") $ERROR('#19: typeof this.Number !== "undefined"'); |
michael@0 | 27 | if (typeof this['Number'] === "undefined") $ERROR('#20: typeof this["Number"] !== "undefined"'); |
michael@0 | 28 | if (typeof this.Function === "undefined") $ERROR('#21: typeof this.Function !== "undefined"'); |
michael@0 | 29 | if (typeof this['Function'] === "undefined") $ERROR('#22: typeof this["Function"] !== "undefined"'); |
michael@0 | 30 | if (typeof this.Array === "undefined") $ERROR('#23: typeof this.Array !== "undefined"'); |
michael@0 | 31 | if (typeof this['Array'] === "undefined") $ERROR('#24: typeof this["Array"] !== "undefined"'); |
michael@0 | 32 | if (typeof this.String === "undefined") $ERROR('#25: typeof this.String !== "undefined"'); |
michael@0 | 33 | if (typeof this['String'] === "undefined") $ERROR('#26: typeof this["String"] !== "undefined"'); |
michael@0 | 34 | if (typeof this.Boolean === "undefined") $ERROR('#27: typeof this.Boolean !== "undefined"'); |
michael@0 | 35 | if (typeof this['Boolean'] === "undefined") $ERROR('#28: typeof this["Boolean"] !== "undefined"'); |
michael@0 | 36 | if (typeof this.Date === "undefined") $ERROR('#29: typeof this.Date !== "undefined"'); |
michael@0 | 37 | if (typeof this['Date'] === "undefined") $ERROR('#30: typeof this["Date"] !== "undefined"'); |
michael@0 | 38 | if (typeof this.Math === "undefined") $ERROR('#31: typeof this.Math !== "undefined"'); |
michael@0 | 39 | if (typeof this['Math'] === "undefined") $ERROR('#32: typeof this["Math"] !== "undefined"'); |
michael@0 | 40 |