JavaScript Tests - attempt to catch exceptions to simplify test reporting, bug 226507

This commit is contained in:
bclary%bclary.com 2008-04-10 20:58:06 +00:00
Родитель 10cbb9111a
Коммит 87a23dad22
1 изменённых файлов: 12 добавлений и 5 удалений

Просмотреть файл

@ -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();