Debian Codegraph @

rhino/testsrc/tests/ecma/Array/15.4.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.4.4.js';
7
8 /**
9 File Name: 15.4.4.js
10 ECMA Section: 15.4.4 Properties of the Array Prototype Object
11 Description: The value of the internal [[Prototype]] property of
12 the Array prototype object is the Object prototype
13 object.
14
15 Note that the Array prototype object is itself an
16 array; it has a length property (whose initial value
17 is (0) and the special [[Put]] method.
18
19 Author: [email protected]
20 Date: 7 october 1997
21 */
22
23 var SECTION = "15.4.4";
24 var VERSION = "ECMA_1";
25 startTest();
26 var TITLE = "Properties of the Array Prototype Object";
27
28 writeHeaderToLog( SECTION + " "+ TITLE);
29
30
31 new TestCase( SECTION, "Array.prototype.length", 0, Array.prototype.length );
32
33 // verify that prototype object is an Array object.
34 new TestCase( SECTION, "typeof Array.prototype", "object", typeof Array.prototype );
35
36 new TestCase( SECTION,
37 "Array.prototype.toString = Object.prototype.toString; Array.prototype.toString()",
38 "[object Array]",
39 eval("Array.prototype.toString = Object.prototype.toString; Array.prototype.toString()") );
40
41 test();