Adding new case to the test.

git-svn-id: svn://10.0.0.236/trunk@100923 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pschwartau%netscape.com 2001-08-13 19:38:18 +00:00
parent 8d75bc0860
commit e5902aae86

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();
}
//-----------------------------------------------------------------------------