gWindow = window.open('js-test-driver-' + document.forms.testCases.doctype.value + '.html?test=' + test.path + ';language=' + document.forms.testCases.language.value, 
gWindow = window.open('js-test-driver-' + document.forms.testCases.doctype.value + '.html?test=' + test.path + ';language=' + document.forms.testCases.language.value, 
function runNextTest(){  var iTestCase;  if (gTestNumber != -1)  {    // tests have already run in gWindow, collect the results    // for later reporting.    var e;    try    {      var test  = gTests[gTestNumber];      test.testCases = [];      //test.testCases = test.testCases.concat(gWindow.testcases);      // note MSIE6 has a bug where instead of concating the new arrays      // it concats them to the first element. work around...      var origtestcases = gWindow.testcases;      for (iTestCase = 0; iTestCase < origtestcases.length; iTestCase++)      {//        test.testCases[test.testCases.length] = origtestcases[iTestCase];        var origtestcase = origtestcases[iTestCase];        var testCase = test.testCases[test.testCases.length] = {};        testCase.name = new String(origtestcase.name);        testCase.description = new String(origtestcase.description);        testCase.expect = new String(origtestcase.expect);        testCase.actual = new String(origtestcase.actual);        testCase.passed = origtestcase.passed ? true : false;        testCase.reason = new String(origtestcase.reason);        testCase.bugnumber = new String(origtestcase.bugnumber?origtestcase.bugnumber:'');      }      origtestcases = origtestcase = null;    }    catch(e)    {      ;    }  }  ++gTestNumber;  if (gTestNumber < gTests.length)  {    // run test    test      = gTests[gTestNumber];    gWindow = window.open('js-test-driver-' +                           document.forms.testCases.doctype.value +                           '.html?test=' +                           test.path +                           ';language=' +                           document.forms.testCases.language.value,                           'output');    if (!gWindow)    {      alert('This test suite requires popup windows.\n' +             'Please enable them for this site.');    }  }  else if (document.forms.testCases.outputformat.value == 'html')  {    // all tests completed, display report    reportHTML();  }  else if (document.forms.testCases.outputformat.value == 'javascript')  {    // all tests completed, display report    reportJavaScript();  }}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/3703c3c05f398a63e55992f7687ef65273b26d6a/menuhead.js/clean/js/tests/menuhead.js