Debian Codegraph @

rhino/testsrc/tests/ecma_2/instanceof/instanceof-002.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 = 'instanceof-002.js';
7
8 /**
9 File Name:
10 ECMA Section:
11 Description: Call Objects
12
13
14
15 Author: [email protected]
16 Date: 12 november 1997
17 */
18 var SECTION = "";
19 var VERSION = "ECMA_2";
20 var TITLE = "The Call Constructor";
21
22 startTest();
23 writeHeaderToLog( SECTION + " "+ TITLE);
24
25 var b = new Boolean();
26
27 new TestCase( SECTION,
28 "var b = new Boolean(); b instanceof Boolean",
29 true,
30 b instanceof Boolean );
31
32 new TestCase( SECTION,
33 "b instanceof Object",
34 true,
35 b instanceof Object );
36
37 new TestCase( SECTION,
38 "b instanceof Array",
39 false,
40 b instanceof Array );
41
42 new TestCase( SECTION,
43 "true instanceof Boolean",
44 false,
45 true instanceof Boolean );
46
47 new TestCase( SECTION,
48 "Boolean instanceof Object",
49 true,
50 Boolean instanceof Object );
51 test();
52