rem: log("adding " + id);  
context: function doAddTest(id, optSkipAnimation){    if (gActiveTests.indexOf(id) != -1) {        // test already exists, indicate that        $("#activetests #testid" + id).hide();        $("#activetests #testid" + id).fadeIn(300);        return;    }    var t = null;    for (var i = 0; i < gTestList.length; i++) {        if (gTestList[i].tid == id) {            t = gTestList[i];            break;        }    }    if (t == null)	return;    gActiveTests.push(id);    var html = makeTestDiv(t, true);    $("#activetests").append(html);    if (!optSkipAnimation) {        $("#activetests #testid" + id).hide();        $("#activetests #testid" + id).fadeIn(300);    }    $("#activetests #testid" + id + " .throbber")[0].setAttribute("loading", "true");    $("#activetests #testid" + id + " .removecell").click(        function(evt) {            var tid = testIdFromElement(this);            doRemoveTest(parseInt(tid));        }    );    log("adding " + id);    var color = randomColor();    $("#activetests #testid" + id + " .colorcell")[0].style.background = colorToRgbString(color);    addTestToGraph(id, function(ds) {                       $("#activetests #testid" + id + " .throbber")[0].removeAttribute("loading");                       ds.color = color;                  });}
meta: 2092	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2092/837da832c31d2c366e49a95c29a049ea30a73a06/graph-2.js/buggy/js/graph-2.js