tests/auto/qml/ecmascripttests/test262/test/built-ins/Infinity/S15.1.1.2_A2_T1.js
raw| 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: The Infinity is ReadOnly |
| 6 | es5id: 15.1.1.2_A2_T1 |
| 7 | description: Checking typeof Functions |
| 8 | includes: [propertyHelper.js] |
| 9 | ---*/ |
| 10 | |
| 11 | // CHECK#1 |
| 12 | verifyNotWritable(this, "Infinity", null, true); |
| 13 | if (typeof(Infinity) === "boolean") { |
| 14 | $ERROR('#1: Infinity = true; typeof(Infinity) !== "boolean". Actual: ' + (typeof(Infinity))); |
| 15 | } |