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 tc = 0;
19    var testcases = new Array();
20
21    var b = new Boolean();
22
23    testcases[tc++] = new TestCase( SECTION,
24                                    "var b = new Boolean(); b instanceof Boolean",
25                                    true,
26                                    b instanceof Boolean );
27
28    testcases[tc++] = new TestCase( SECTION,
29                                    "b instanceof Object",
30                                    true,
31                                    b instanceof Object );
32
33    testcases[tc++] = new TestCase( SECTION,
34                                    "b instanceof Array",
35                                    false,
36                                    b instanceof Array );
37
38    testcases[tc++] = new TestCase( SECTION,
39                                    "true instanceof Boolean",
40                                    false,
41                                    true instanceof Boolean );
42
43    testcases[tc++] = new TestCase( SECTION,
44                                    "Boolean instanceof Object",
45                                    true,
46                                    Boolean instanceof Object );
47    test();
48
49function test() {
50    for ( tc=0; tc < testcases.length; tc++ ) {
51        testcases[tc].passed = writeTestCaseResult(
52                            testcases[tc].expect,
53                            testcases[tc].actual,
54                            testcases[tc].description +" = "+
55                            testcases[tc].actual );
56
57        testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value ";
58    }
59    stopTest();
60    return ( testcases );
61}
62