Adding new case to the test.

This commit is contained in:
pschwartau%netscape.com 2001-08-13 19:38:18 +00:00
parent 0b2b25c6a4
commit 3c0807c3df

View File

@ -36,19 +36,29 @@ var expect= '';
var expectedvalues = [];
status = 'Section 1 of test';
try
{
xxxyyyzzz();
}
catch (e)
{
status = 'Section 1 of test';
actual = e instanceof ReferenceError;
}
expect = true;
addThis();
expect = true;
addThis();
/*
* This test is more literal, and may one day be invalid.
* Searching for literal string "ReferenceError" in e.toString()
*/
status = 'Section 2 of test';
var match = e.toString().search(/ReferenceError/);
actual = (match > -1);
expect = true;
addThis();
}
//-----------------------------------------------------------------------------