In .:
[mono.git] / mcs / class / Microsoft.JScript / Test / Mozilla / ecma_2 / instanceof / instanceof-002.js
1 /**
2     File Name:
3     ECMA Section:
4     Description:        Call Objects
5
6
7
8     Author:             christine@netscape.com
9     Date:               12 november 1997
10 */
11     var SECTION = "";
12     var VERSION = "ECMA_2";
13     var TITLE   = "The Call Constructor";
14
15     startTest();
16     writeHeaderToLog( SECTION + " "+ TITLE);
17
18     var b = new Boolean();
19
20     new TestCase( SECTION,
21                   "var b = new Boolean(); b instanceof Boolean",
22                   true,
23                   b instanceof Boolean );
24
25     new TestCase( SECTION,
26                   "b instanceof Object",
27                   true,
28                   b instanceof Object );
29
30     new TestCase( SECTION,
31                   "b instanceof Array",
32                   false,
33                   b instanceof Array );
34
35     new TestCase( SECTION,
36                   "true instanceof Boolean",
37                   false,
38                   true instanceof Boolean );
39
40     new TestCase( SECTION,
41                   "Boolean instanceof Object",
42                   true,
43                   Boolean instanceof Object );
44     test();
45