reset javascript options before calling reportCompare, no bug, fix my goof.

This commit is contained in:
bob@bclary.com
2005-10-23 12:31:35 +00:00
parent 892b11fcbb
commit 1808429b19
2 changed files with 4 additions and 2 deletions

View File

@@ -59,7 +59,8 @@ catch(e)
{
actual = e.name;
}
jsOptions.reset();
reportCompare(expect, actual, summary);
jsOptions.reset();

View File

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