]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/mozilla/ecma_2/instanceof/instanceof-001.js
JavaScriptCore-461.tar.gz
[apple/javascriptcore.git] / tests / mozilla / ecma_2 / instanceof / instanceof-001.js
CommitLineData
b37bf2e1
A
1/**
2 File Name: instanceof-1.js
3 ECMA Section:
4 Description: instanceof operator
5
6 Author: christine@netscape.com
7 Date: 12 november 1997
8*/
9 var SECTION = "";
10 var VERSION = "ECMA_2";
11 var TITLE = "instanceof operator";
12
13 startTest();
14 writeHeaderToLog( SECTION + " "+ TITLE);
15
16 var tc = 0;
17 var testcases = new Array();
18
19 var b = new Boolean();
20
21 testcases[tc++] = new TestCase( SECTION,
22 "var b = new Boolean(); b instanceof Boolean",
23 true,
24 b instanceof Boolean );
25
26 testcases[tc++] = new TestCase( SECTION,
27 "b instanceof Object",
28 true,
29 b instanceof Object );
30
31 test();