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;
|
||||
}
|
||||
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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user