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