Debian Codegraph @

rhino/testsrc/tests/ecma/Array/15.4.3.1-2.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.3.1-2.js';
7
8 /**
9 File Name: 15.4.3.1-1.js
10 ECMA Section: 15.4.3.1 Array.prototype
11 Description: The initial value of Array.prototype is the built-in
12 Array prototype object (15.4.4).
13
14 Author: [email protected]
15 Date: 7 october 1997
16 */
17
18 var SECTION = "15.4.3.1-1";
19 var VERSION = "ECMA_1";
20 startTest();
21 var TITLE = "Array.prototype";
22
23 writeHeaderToLog( SECTION + " "+ TITLE);
24
25
26 var ARRAY_PROTO = Array.prototype;
27
28 new TestCase( SECTION,
29 "var props = ''; for ( p in Array ) { props += p } props",
30 "",
31 eval("var props = ''; for ( p in Array ) { props += p } props") );
32
33 new TestCase( SECTION,
34 "Array.prototype = null; Array.prototype",
35 ARRAY_PROTO,
36 eval("Array.prototype = null; Array.prototype") );
37
38 new TestCase( SECTION,
39 "delete Array.prototype",
40 false,
41 delete Array.prototype );
42
43 new TestCase( SECTION,
44 "delete Array.prototype; Array.prototype",
45 ARRAY_PROTO,
46 eval("delete Array.prototype; Array.prototype") );
47
48 test();