function checkTestCompleted(){  var win = gSpider.mDocument.defaultView;  if (win.wrappedJSObject)  {    win = win.wrappedJSObject;  }  if (win.gPageCompleted)  {    unregisterDialogCloser();    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);  }  }
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/3703c3c05f398a63e55992f7687ef65273b26d6a/userhookeach-e4x.js/buggy/js/tests/userhookeach-e4x.js