reset javascript options before calling reportCompare, no bug, fix my goof.
This commit is contained in:
@@ -59,7 +59,8 @@ catch(e)
|
|||||||
{
|
{
|
||||||
actual = e.name;
|
actual = e.name;
|
||||||
}
|
}
|
||||||
|
jsOptions.reset();
|
||||||
|
|
||||||
reportCompare(expect, actual, summary);
|
reportCompare(expect, actual, summary);
|
||||||
|
|
||||||
jsOptions.reset();
|
|
||||||
|
|
||||||
|
|||||||
@@ -50,13 +50,14 @@ jsOptions.setOption('strict', false);
|
|||||||
jsOptions.setOption('werror', false);
|
jsOptions.setOption('werror', false);
|
||||||
expect = null;
|
expect = null;
|
||||||
actual = /.\011/.exec ('a'+String.fromCharCode(0)+'11');
|
actual = /.\011/.exec ('a'+String.fromCharCode(0)+'11');
|
||||||
|
jsOptions.reset();
|
||||||
reportCompare(expect, actual, summary);
|
reportCompare(expect, actual, summary);
|
||||||
|
|
||||||
// strict
|
// strict
|
||||||
jsOptions.setOption('strict', true);
|
jsOptions.setOption('strict', true);
|
||||||
expect = null;
|
expect = null;
|
||||||
actual = /.\011/.exec ('a'+String.fromCharCode(0)+'11');
|
actual = /.\011/.exec ('a'+String.fromCharCode(0)+'11');
|
||||||
|
jsOptions.reset();
|
||||||
reportCompare(expect, actual, summary);
|
reportCompare(expect, actual, summary);
|
||||||
|
|
||||||
jsOptions.reset();
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user