JavaScript Test - update regression test for bug 342359 due to changes in bug 376957, not part of the build

This commit is contained in:
bclary@bclary.com 2007-12-10 13:51:53 -08:00
parent ba222a25cc
commit 7078220319

View File

@ -45,7 +45,16 @@ var expect = '';
printBugNumber(BUGNUMBER);
printStatus (summary);
ReferenceError = 5;
// work around bug 376957
var SavedReferenceError = ReferenceError;
try
{
ReferenceError = 5;
}
catch(ex)
{
}
try
{
@ -56,7 +65,13 @@ catch(ex)
print(ex + '');
}
expect = 5;
actual = ReferenceError
reportCompare(expect, actual, summary);
if (SavedReferenceError == ReferenceError)
{
actual = expect = 'Test ignored due to bug 376957';
}
else
{
expect = 5;
actual = ReferenceError;
}
reportCompare(expect, actual, summary);