| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
gTestsuite = 'lc3'; |
| 7 |
|
| 8 |
|
| 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 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 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 |
} |