| 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 |
info: Check type of various properties |
| 6 |
es5id: 11.2.1_A4_T1 |
| 7 |
description: Checking properties of this object |
| 8 |
---*/ |
| 9 |
|
| 10 |
//CHECK#1-32 |
| 11 |
if (typeof (this.NaN) === "undefined") throw new Test262Error('#1: typeof (this.NaN) !== "undefined"'); |
| 12 |
if (typeof this['NaN'] === "undefined") throw new Test262Error('#2: typeof this["NaN"] !== "undefined"'); |
| 13 |
if (typeof this.Infinity === "undefined") throw new Test262Error('#3: typeof this.Infinity !== "undefined"'); |
| 14 |
if (typeof this['Infinity'] === "undefined") throw new Test262Error('#4: typeof this["Infinity"] !== "undefined"'); |
| 15 |
if (typeof this.parseInt === "undefined") throw new Test262Error('#5: typeof this.parseInt !== "undefined"'); |
| 16 |
if (typeof this['parseInt'] === "undefined") throw new Test262Error('#6: typeof this["parseInt"] !== "undefined"'); |
| 17 |
if (typeof this.parseFloat === "undefined") throw new Test262Error('#7: typeof this.parseFloat !== "undefined"'); |
| 18 |
if (typeof this['parseFloat'] === "undefined") throw new Test262Error('#8: typeof this["parseFloat"] !== "undefined"'); |
| 19 |
if (typeof this.isNaN === "undefined") throw new Test262Error('#13: typeof this.isNaN !== "undefined"'); |
| 20 |
if (typeof this['isNaN'] === "undefined") throw new Test262Error('#14: typeof this["isNaN"] !== "undefined"'); |
| 21 |
if (typeof this.isFinite === "undefined") throw new Test262Error('#15: typeof this.isFinite !== "undefined"'); |
| 22 |
if (typeof this['isFinite'] === "undefined") throw new Test262Error('#16: typeof this["isFinite"] !== "undefined"'); |
| 23 |
if (typeof this.Object === "undefined") throw new Test262Error('#17: typeof this.Object !== "undefined"'); |
| 24 |
if (typeof this['Object'] === "undefined") throw new Test262Error('#18: typeof this["Object"] !== "undefined"'); |
| 25 |
if (typeof this.Number === "undefined") throw new Test262Error('#19: typeof this.Number !== "undefined"'); |
| 26 |
if (typeof this['Number'] === "undefined") throw new Test262Error('#20: typeof this["Number"] !== "undefined"'); |
| 27 |
if (typeof this.Function === "undefined") throw new Test262Error('#21: typeof this.Function !== "undefined"'); |
| 28 |
if (typeof this['Function'] === "undefined") throw new Test262Error('#22: typeof this["Function"] !== "undefined"'); |
| 29 |
if (typeof this.Array === "undefined") throw new Test262Error('#23: typeof this.Array !== "undefined"'); |
| 30 |
if (typeof this['Array'] === "undefined") throw new Test262Error('#24: typeof this["Array"] !== "undefined"'); |
| 31 |
if (typeof this.String === "undefined") throw new Test262Error('#25: typeof this.String !== "undefined"'); |
| 32 |
if (typeof this['String'] === "undefined") throw new Test262Error('#26: typeof this["String"] !== "undefined"'); |
| 33 |
if (typeof this.Boolean === "undefined") throw new Test262Error('#27: typeof this.Boolean !== "undefined"'); |
| 34 |
if (typeof this['Boolean'] === "undefined") throw new Test262Error('#28: typeof this["Boolean"] !== "undefined"'); |
| 35 |
if (typeof this.Date === "undefined") throw new Test262Error('#29: typeof this.Date !== "undefined"'); |
| 36 |
if (typeof this['Date'] === "undefined") throw new Test262Error('#30: typeof this["Date"] !== "undefined"'); |
| 37 |
if (typeof this.Math === "undefined") throw new Test262Error('#31: typeof this.Math !== "undefined"'); |
| 38 |
if (typeof this['Math'] === "undefined") throw new Test262Error('#32: typeof this["Math"] !== "undefined"'); |
| 39 |
|
| 40 |
reportCompare(0, 0); |