Debian Codegraph @

rhino/testsrc/tests/ecma_2/instanceof/instanceof-001.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-001.js';
7
8 /**
9 File Name: instanceof-1.js
10 ECMA Section:
11 Description: instanceof operator
12
13 Author: [email protected]
14 Date: 12 november 1997
15 */
16 var SECTION = "";
17 var VERSION = "ECMA_2";
18 var TITLE = "instanceof operator";
19
20 startTest();
21 writeHeaderToLog( SECTION + " "+ TITLE);
22
23 var b = new Boolean();
24
25 new TestCase( SECTION,
26 "var b = new Boolean(); b instanceof Boolean",
27 true,
28 b instanceof Boolean );
29
30 new TestCase( SECTION,
31 "b instanceof Object",
32 true,
33 b instanceof Object );
34
35 test();