зеркало из https://github.com/mozilla/gecko-dev.git
reset javascript options before calling reportCompare, no bug, fix my goof.
This commit is contained in:
Родитель
73d703ff67
Коммит
ed1852f363
|
@ -59,7 +59,8 @@ catch(e)
|
|||
{
|
||||
actual = e.name;
|
||||
}
|
||||
jsOptions.reset();
|
||||
|
||||
reportCompare(expect, actual, summary);
|
||||
|
||||
jsOptions.reset();
|
||||
|
||||
|
|
|
@ -50,13 +50,14 @@ jsOptions.setOption('strict', false);
|
|||
jsOptions.setOption('werror', false);
|
||||
expect = null;
|
||||
actual = /.\011/.exec ('a'+String.fromCharCode(0)+'11');
|
||||
jsOptions.reset();
|
||||
reportCompare(expect, actual, summary);
|
||||
|
||||
// strict
|
||||
jsOptions.setOption('strict', true);
|
||||
expect = null;
|
||||
actual = /.\011/.exec ('a'+String.fromCharCode(0)+'11');
|
||||
jsOptions.reset();
|
||||
reportCompare(expect, actual, summary);
|
||||
|
||||
jsOptions.reset();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче