Debian Codegraph @

rhino/testsrc/tests/lc3/shell.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
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 gTestsuite = 'lc3';
7
8 // verify that DataTypeClass is on the CLASSPATH
9
10 DT = Packages.com.netscape.javascript.qa.liveconnect.DataTypeClass;
11
12 if ( typeof DT == "undefined" ) {
13 throw "Test Exception: "+
14 "com.netscape.javascript.qa.liveconnect.DataTypeClass "+
15 "is not on the CLASSPATH";
16 }
17
18 /*
19 * TestCase constructor
20 *
21 * tests in this directory oddly depend on a 3-argument
22 * TestCase constructor, rather than the conventional 4
23 */
24 function TestCase( d, e, a ) {
25 this.path = (typeof gTestPath == 'undefined') ?
26 (gTestsuite + '/' + gTestsubsuite + '/' + gTestfile) :
27 gTestPath;
28 this.file = gTestfile;
29 this.name = d;
30 this.description = d;
31 this.expect = e;
32 this.actual = a;
33 this.passed = getTestCaseResult(e, a);
34 this.reason = "";
35 this.bugnumber = typeof(BUGNUMER) != 'undefined' ? BUGNUMBER : '';
36 this.type = (typeof window == 'undefined' ? 'shell' : 'browser');
37 gTestcases[gTc++] = this;
38 }