rem: Tinderbox.requestTestList(function (tests) { setTimeout (onGraph, 0); }); 
add: return function (testid, ds) { try { log("ds.firstTime " + ds.firstTime + " ds.lastTime " + ds.lastTime); if (!ds.firstTime || !ds.lastTime) {   for each (g in [BigPerfGraph, SmallPerfGraph]) { g.clearGraph();  } showStatus("No data in the given time range"); clearLoadingAnimation();  } else { ds.color = color; if (title) { ds.title = title; }  if (baselineDataSet) ds = ds.createRelativeTo(baselineDataSet);   var avgds = null; if (baselineDataSet == null && module.average) { avgds = ds.createAverage(gAverageInterval); }  if (avgds) log ("got avgds: (", module.id, ")", avgds.firstTime, avgds.lastTime, avgds.data.length);  for each (g in [BigPerfGraph, SmallPerfGraph]) { g.addDataSet(ds); if (avgds) g.addDataSet(avgds); if (g == SmallPerfGraph || autoExpand) { g.expandTimeRange(Math.max(ds.firstTime, gCurrentLoadRange ? gCurrentLoadRange[0] : ds.firstTime), Math.min(ds.lastTime, gCurrentLoadRange ? gCurrentLoadRange[1] : ds.lastTime)); }  g.autoScale();  g.redraw(); gReadyForRedraw = true; }   updateLinkToThis(); updateDumpToCsv();  }  } catch(e) { log(e); } }; 
context:         Tinderbox.requestTestList(function (tests) {            setTimeout (onGraph, 0); // let the other handlers do their thing        });
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/f548e257d9403b78a5cc81c75c66b6ff5ee4af0e/graph.js/clean/webtools/new-graph/js/graph.js