4 Description: Call Objects
8 Author: christine@netscape.com
12 var VERSION = "ECMA_2";
13 var TITLE = "The Call Constructor";
16 writeHeaderToLog( SECTION + " "+ TITLE);
19 var testcases = new Array();
21 var b = new Boolean();
23 testcases[tc++] = new TestCase( SECTION,
24 "var b = new Boolean(); b instanceof Boolean",
26 b instanceof Boolean );
28 testcases[tc++] = new TestCase( SECTION,
29 "b instanceof Object",
31 b instanceof Object );
33 testcases[tc++] = new TestCase( SECTION,
38 testcases[tc++] = new TestCase( SECTION,
39 "true instanceof Boolean",
41 true instanceof Boolean );
43 testcases[tc++] = new TestCase( SECTION,
44 "Boolean instanceof Object",
46 Boolean instanceof Object );
50 for ( tc=0; tc < testcases.length; tc++ ) {
51 testcases[tc].passed = writeTestCaseResult(
54 testcases[tc].description +" = "+
55 testcases[tc].actual );
57 testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value ";