Debian Codegraph @

rhino/testsrc/tests/ecma/Boolean/15.6.4.js

raw symbols SCIP
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.6.4.js';
7
8 /**
9 File Name: 15.6.4.js
10 ECMA Section: Properties of the Boolean Prototype Object
11 Description:
12 The Boolean prototype object is itself a Boolean object (its [[Class]] is "
13 Boolean") whose value is false.
14
15 The value of the internal [[Prototype]] property of the Boolean prototype
16 object is the Object prototype object (15.2.3.1).
17
18 In following descriptions of functions that are properties of the Boolean
19 prototype object, the phrase "this Boolean object" refers to the object that
20 is the this value for the invocation of the function; it is an error if
21 this does not refer to an object for which the value of the internal
22 [[Class]] property is "Boolean". Also, the phrase "this boolean value"
23 refers to the boolean value represented by this Boolean object, that is,
24 the value of the internal [[Value]] property of this Boolean object.
25
26 Author: [email protected]
27 Date: 12 november 1997
28 */
29
30 var SECTION = "15.6.4";
31 var VERSION = "ECMA_1";
32 startTest();
33 var TITLE = "Properties of the Boolean Prototype Object";
34
35 writeHeaderToLog( SECTION + " "+ TITLE);
36
37 new TestCase( SECTION,
38 "Boolean.prototype == false",
39 true,
40 Boolean.prototype == false );
41
42 new TestCase( SECTION,
43 "Boolean.prototype.toString = Object.prototype.toString; Boolean.prototype.toString()",
44 "[object Boolean]",
45 eval("Boolean.prototype.toString = Object.prototype.toString; Boolean.prototype.toString()") );
46
47 test();