зеркало из https://github.com/mozilla/pjs.git
JavaScript Tests - attempt to catch exceptions to simplify test reporting, bug 226507
This commit is contained in:
Родитель
10cbb9111a
Коммит
87a23dad22
|
@ -130,13 +130,20 @@ if (typeof Script == 'undefined')
|
|||
}
|
||||
else
|
||||
{
|
||||
var script = Script(source);
|
||||
script();
|
||||
try
|
||||
{
|
||||
var script = Script(source);
|
||||
script();
|
||||
|
||||
|
||||
status = inSection(1);
|
||||
actual = counter;
|
||||
expect = (N + 1) * 2;
|
||||
status = inSection(1);
|
||||
actual = counter;
|
||||
expect = (N + 1) * 2;
|
||||
}
|
||||
catch(ex)
|
||||
{
|
||||
actual = ex + '';
|
||||
}
|
||||
}
|
||||
addThis();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче