зеркало из https://github.com/mozilla/gecko-dev.git
JavaScript Test - update regression test for bug 342359 due to changes in bug 376957, not part of the build
This commit is contained in:
Родитель
e424c29f67
Коммит
eb29fae67e
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче