| 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
| 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 5 | |
| 6 | gTestfile = '15.7.3.3-2.js'; |
| 7 | |
| 8 | /** |
| 9 | File Name: 15.7.3.3-2.js |
| 10 | ECMA Section: 15.7.3.3 Number.MIN_VALUE |
| 11 | Description: All value properties of the Number object should have |
| 12 | the attributes [DontEnum, DontDelete, ReadOnly] |
| 13 | |
| 14 | this test checks the DontDelete attribute of Number.MIN_VALUE |
| 15 | |
| 16 | Author: [email protected] |
| 17 | Date: 16 september 1997 |
| 18 | */ |
| 19 | |
| 20 | |
| 21 | var SECTION = "15.7.3.3-2"; |
| 22 | var VERSION = "ECMA_1"; |
| 23 | startTest(); |
| 24 | var TITLE = "Number.MIN_VALUE"; |
| 25 | |
| 26 | writeHeaderToLog( SECTION + " "+ TITLE ); |
| 27 | |
| 28 | var MIN_VAL = 5e-324; |
| 29 | |
| 30 | new TestCase( SECTION, |
| 31 | "delete( Number.MIN_VALUE )", |
| 32 | false, |
| 33 | eval("delete( Number.MIN_VALUE )") ); |
| 34 | |
| 35 | new TestCase( SECTION, |
| 36 | "delete( Number.MIN_VALUE ); Number.MIN_VALUE", |
| 37 | MIN_VAL, |
| 38 | eval("delete( Number.MIN_VALUE );Number.MIN_VALUE") ); |
| 39 | |
| 40 | test(); |