context: function checkTestCompleted(){  var win = gSpider.mDocument.defaultView;  if (win.wrappedJSObject)  {    win = win.wrappedJSObject;  }  if (win.gPageCompleted)  {    gPageCompleted = true;    var testcases = win.testcases;    if (typeof testcases == 'undefined')    {      return;    }    for (var i = 0; i < testcases.length; i++)    {      var testcase = testcases[i];      cdump('test: '    + testcase.path + ' ' +            'bug: '         + testcase.bugnumber + ' ' +             'result: ' + (testcase.passed ? 'PASSED':'FAILED') + ' ' +            'type: browser ' +             'description: ' + testcase.description + ' ' +             'expected: '    + testcase.expect + ' ' +             'actual: '      + testcase.actual + ' ' +            'reason: '      + testcase.reason);    }    // added in Spider 0.0.1.8    // gc to flush out issues quickly    collectGarbage();  }  else  {    dlog('page not completed, recheck');    setTimeout(checkTestCompleted, gCheckInterval);  }  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/3703c3c05f398a63e55992f7687ef65273b26d6a/userhookeach-js.js/buggy/js/tests/userhookeach-js.js