rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
if (browserVersion == 2)
if (browserVersion == 2)
function blockStartHTML(idprefix) { var idParam = "id='" + idprefix + this.id + "'" var docW = "" if (browserVersion == 2) docW = "<layer "+ idParam + " top=" + doc.yPos + " visibility=show>" else if (browserVersion != 0) docW = "<div " + idParam + " style='display:block; position:block;'>" docW = docW + "<table border=0 cellspacing=0 cellpadding=0 width=100% >" return docW}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/10ba7e2a5c2d92957e2e2af83e2170a8ccca3aea/ftiens4.js/clean/trunk/cacti/include/treeview/ftiens4.js
function blockStartHTML(idprefix) { var idParam = "id='" + idprefix + this.id + "'" var docW = "" if (browserVersion == 2) docW = "<layer "+ idParam + " top=" + doc.yPos + " visibility=show>" else if (browserVersion != 0) docW = "<div " + idParam + " style='display:block; position:block;'>" docW = docW + "<table border=0 cellspacing=0 cellpadding=0 width=100% >" return docW}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/10ba7e2a5c2d92957e2e2af83e2170a8ccca3aea/ftiens4.js/clean/trunk/cacti/include/treeview/ftiens4.js
window.setTimeout(execStrikethroughCommand, commandCount * commandDelay);
window.setTimeout(execBoldCommand, commandCount * commandDelay);
function boldCommand() { if (commandDelay > 0) { window.setTimeout(execStrikethroughCommand, commandCount * commandDelay); commandCount++; } else { execStrikethroughCommand(); }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/8b40393e40a8c4ebc33b966d55d95b6df055615a/editing.js/buggy/third_party/WebKit/LayoutTests/editing/editing.js
execStrikethroughCommand();
execBoldCommand();
function boldCommand() { if (commandDelay > 0) { window.setTimeout(execStrikethroughCommand, commandCount * commandDelay); commandCount++; } else { execStrikethroughCommand(); }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/8b40393e40a8c4ebc33b966d55d95b6df055615a/editing.js/buggy/third_party/WebKit/LayoutTests/editing/editing.js
window.setTimeout(execBoldCommand, commandCount * commandDelay);
window.setTimeout(execStrikethroughCommand, commandCount * commandDelay);
function boldCommand() { if (commandDelay > 0) { window.setTimeout(execBoldCommand, commandCount * commandDelay); commandCount++; } else { execBoldCommand(); }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/444e2253a1b9884fd879d946625ae96bee9af5c8/editing.js/clean/third_party/WebKit/LayoutTests/editing/editing.js
execBoldCommand();
execStrikethroughCommand();
function boldCommand() { if (commandDelay > 0) { window.setTimeout(execBoldCommand, commandCount * commandDelay); commandCount++; } else { execBoldCommand(); }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/444e2253a1b9884fd879d946625ae96bee9af5c8/editing.js/clean/third_party/WebKit/LayoutTests/editing/editing.js
var p_w = getObjectWidth(name);
var p_w = getObjectWidth(name);
function boundPopup(name){ var p_l = getObjectLeft(name); // this.left var p_t = getObjectTop(name); // this.top var p_h = getObjectHeight(name); // clip.height var p_w = getObjectWidth(name); // clio.width var c_h = getClientHeight() - 16; // window.innerHeight var c_w = getClientWidth() - 16; // window.innerWidth var s_l = getScrollLeft(); // window.pageXOffset var s_t = getScrollTop(); // window.pageYOffset if((p_l + p_w - s_l) > c_w) p_l = Math.max(0, c_w - p_w + s_l); if((p_t + p_h - s_t) > c_h) p_t = Math.max(0, c_h - p_h + s_t); shiftTo(name, p_l, p_t); //alert(p_w+''+p_h+'@'+p_l+','+p_t+' '+c_w+''+c_h+'@'+s_l+','+s_t);}
2059 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2059/6dc770eef4358b17a2da49cbb2bd1f6958ac5d02/Popup.js/clean/server/modules/tags/javascript_support/scripts/Popup.js
function boundPopup(name){ var p_l = getObjectLeft(name); // this.left var p_t = getObjectTop(name); // this.top var p_h = getObjectHeight(name); // clip.height var p_w = getObjectWidth(name); // clip.width var c_h = getClientHeight() - 16; // window.innerHeight var c_w = getClientWidth() - 16; // window.innerWidth var s_l = getScrollLeft(); // window.pageXOffset var s_t = getScrollTop(); // window.pageYOffset if((p_l + p_w - s_l) > c_w) p_l = Math.max(0, c_w - p_w + s_l); if((p_t + p_h - s_t) > c_h) p_t = Math.max(0, c_h - p_h + s_t); shiftTo(name, p_l, p_t); //alert(p_w+''+p_h+'@'+p_l+','+p_t+' '+c_w+''+c_h+'@'+s_l+','+s_t);}
2059 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2059/adf04323b4cf6bc130f8dd0265003f62e4cdcde1/Popup.js/clean/server/modules/tags/javascript_support/scripts/Popup.js
if (row.hasStyleClass("breakpoint")) toggleBreakpoint(row, file, lineNum); else
if (row.hasStyleClass("breakpoint")) { if (!pendingAction) pendingAction = setTimeout(toggleBreakpoint, DebuggerDocument.doubleClickMilliseconds(), row, file, lineNum); } else
function breakpointAction(event){ var row = event.target.parentNode; var file = files[currentFile]; var lineNum = parseInt(event.target.title); if (row.hasStyleClass("breakpoint")) toggleBreakpoint(row, file, lineNum); else createBreakpoint(row, file, lineNum);}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/210dfad1d33be575f22d1b2fd642f203530ae57c/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
var row = event.target.parentNode;
function breakpointAction(event){ var row = event.target.parentNode; var file = files[currentFile]; var lineNum = parseInt(event.target.title); if (row.hasStyleClass("breakpoint")) { if (!pendingAction) pendingAction = setTimeout(toggleBreakpoint, DebuggerDocument.doubleClickMilliseconds(), row, file, lineNum); } else createBreakpoint(row, file, lineNum);}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
var lineNum = parseInt(event.target.title);
var lineNum = event.target.title;
function breakpointAction(event){ var row = event.target.parentNode; var file = files[currentFile]; var lineNum = parseInt(event.target.title); if (row.hasStyleClass("breakpoint")) { if (!pendingAction) pendingAction = setTimeout(toggleBreakpoint, DebuggerDocument.doubleClickMilliseconds(), row, file, lineNum); } else createBreakpoint(row, file, lineNum);}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
if (row.hasStyleClass("breakpoint")) {
if (file.breakpoints[lineNum]) {
function breakpointAction(event){ var row = event.target.parentNode; var file = files[currentFile]; var lineNum = parseInt(event.target.title); if (row.hasStyleClass("breakpoint")) { if (!pendingAction) pendingAction = setTimeout(toggleBreakpoint, DebuggerDocument.doubleClickMilliseconds(), row, file, lineNum); } else createBreakpoint(row, file, lineNum);}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
pendingAction = setTimeout(toggleBreakpoint, DebuggerDocument.doubleClickMilliseconds(), row, file, lineNum);
pendingAction = setTimeout(toggleBreakpointOnLine, DebuggerDocument.doubleClickMilliseconds(), lineNum);
function breakpointAction(event){ var row = event.target.parentNode; var file = files[currentFile]; var lineNum = parseInt(event.target.title); if (row.hasStyleClass("breakpoint")) { if (!pendingAction) pendingAction = setTimeout(toggleBreakpoint, DebuggerDocument.doubleClickMilliseconds(), row, file, lineNum); } else createBreakpoint(row, file, lineNum);}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
createBreakpoint(row, file, lineNum);
file.breakpoints[lineNum] = new BreakPoint(event.target.parentNode, file, lineNum);
function breakpointAction(event){ var row = event.target.parentNode; var file = files[currentFile]; var lineNum = parseInt(event.target.title); if (row.hasStyleClass("breakpoint")) { if (!pendingAction) pendingAction = setTimeout(toggleBreakpoint, DebuggerDocument.doubleClickMilliseconds(), row, file, lineNum); } else createBreakpoint(row, file, lineNum);}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
var sourcesDocument = document.getElementById("sources").contentDocument;
function breakpointDrag(event){ if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { draggingBreakpoint.isDisabled = hasStyleClass(draggingBreakpoint.parentNode, "disabled"); removeStyleClass(draggingBreakpoint.parentNode, "breakpoint"); removeStyleClass(draggingBreakpoint.parentNode, "disabled"); draggingBreakpoint.started = true; var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.opacity = "0"; else dragImage.style.opacity = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/98c1cf6f6c32738969ddb4ace85168e572624ea4/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
var sourcesDocument = document.getElementById("sources").contentDocument;
function breakpointDrag(event){ if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { draggingBreakpoint.isDisabled = hasStyleClass(draggingBreakpoint.parentNode, "disabled"); removeStyleClass(draggingBreakpoint.parentNode, "breakpoint"); removeStyleClass(draggingBreakpoint.parentNode, "disabled"); draggingBreakpoint.started = true; var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.opacity = "0"; else dragImage.style.opacity = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/98c1cf6f6c32738969ddb4ace85168e572624ea4/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
dragImage.style.opacity = "0";
dragImage.style.visibility = "hidden";
function breakpointDrag(event){ if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { draggingBreakpoint.isDisabled = hasStyleClass(draggingBreakpoint.parentNode, "disabled"); removeStyleClass(draggingBreakpoint.parentNode, "breakpoint"); removeStyleClass(draggingBreakpoint.parentNode, "disabled"); draggingBreakpoint.started = true; var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.opacity = "0"; else dragImage.style.opacity = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/98c1cf6f6c32738969ddb4ace85168e572624ea4/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
dragImage.style.opacity = null;
dragImage.style.visibility = null;
function breakpointDrag(event){ if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { draggingBreakpoint.isDisabled = hasStyleClass(draggingBreakpoint.parentNode, "disabled"); removeStyleClass(draggingBreakpoint.parentNode, "breakpoint"); removeStyleClass(draggingBreakpoint.parentNode, "disabled"); draggingBreakpoint.started = true; var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.opacity = "0"; else dragImage.style.opacity = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/98c1cf6f6c32738969ddb4ace85168e572624ea4/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
draggingBreakpoint.started = true;
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); draggingBreakpoint.started = true; var lineNum = parseInt(draggingBreakpoint.title); if(draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; files[currentFile].breakpoints[lineNum] = null; files[currentFile].disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/75f7b1c539a192b149c18bc6570c80690c5510b0/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
if(draggingBreakpoint.isDisabled)
var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; } draggingBreakpoint.started = true; if (draggingBreakpoint.isDisabled)
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); draggingBreakpoint.started = true; var lineNum = parseInt(draggingBreakpoint.title); if(draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; files[currentFile].breakpoints[lineNum] = null; files[currentFile].disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/75f7b1c539a192b149c18bc6570c80690c5510b0/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
files[currentFile].breakpoints[lineNum] = null; files[currentFile].disabledBreakpoints[lineNum] = null;
file.breakpoints[lineNum] = null; file.disabledBreakpoints[lineNum] = null;
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); draggingBreakpoint.started = true; var lineNum = parseInt(draggingBreakpoint.title); if(draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; files[currentFile].breakpoints[lineNum] = null; files[currentFile].disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/75f7b1c539a192b149c18bc6570c80690c5510b0/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
draggingBreakpoint.isDisabled = hasStyleClass(draggingBreakpoint.parentNode, "disabled"); removeStyleClass(draggingBreakpoint.parentNode, "breakpoint"); removeStyleClass(draggingBreakpoint.parentNode, "disabled");
var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled");
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { draggingBreakpoint.isDisabled = hasStyleClass(draggingBreakpoint.parentNode, "disabled"); removeStyleClass(draggingBreakpoint.parentNode, "breakpoint"); removeStyleClass(draggingBreakpoint.parentNode, "disabled"); draggingBreakpoint.started = true; var lineNum = parseInt(draggingBreakpoint.title); if(draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; files[currentFile].breakpoints[lineNum] = null; files[currentFile].disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/c6fb57961d884bd88831658bfe27448abb9cbe1c/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
var lineNum = parseInt(draggingBreakpoint.title); if(draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; files[currentFile].breakpoints[lineNum] = null; files[currentFile].disabledBreakpoints[lineNum] = null;
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { draggingBreakpoint.isDisabled = hasStyleClass(draggingBreakpoint.parentNode, "disabled"); removeStyleClass(draggingBreakpoint.parentNode, "breakpoint"); removeStyleClass(draggingBreakpoint.parentNode, "disabled"); draggingBreakpoint.started = true; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/d20969b630420cefa62196966e6ccb4895e9fb96/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
sourcesDocument.body.style.cursor = null;
sourcesDocument.body.style.removeProperty("cursor");
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var lineNum = draggingBreakpoint.title; var file = files[currentFile]; var breakpoint = file.breakpoints[lineNum]; draggingBreakpoint.breakpoint = breakpoint; breakpoint.row.removeStyleClass("breakpoint"); breakpoint.row.removeStyleClass("disabled"); var editor = breakpoint.editor; if (editor) toggleBreakpointEditorOnLine(lineNum); draggingBreakpoint.started = true; file.breakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.breakpoint.enabled) dragImage.src = "breakPoint.tif"; else dragImage.src = "breakPointDisabled.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/698fe24365317fd75bda13d558b5e551b352b9c6/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
sourcesDocument.body.style.cursor = null;
sourcesDocument.body.style.removeProperty("cursor");
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var lineNum = draggingBreakpoint.title; var file = files[currentFile]; var breakpoint = file.breakpoints[lineNum]; draggingBreakpoint.breakpoint = breakpoint; breakpoint.row.removeStyleClass("breakpoint"); breakpoint.row.removeStyleClass("disabled"); var editor = breakpoint.editor; if (editor) toggleBreakpointEditorOnLine(lineNum); draggingBreakpoint.started = true; file.breakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.breakpoint.enabled) dragImage.src = "breakPoint.tif"; else dragImage.src = "breakPointDisabled.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/698fe24365317fd75bda13d558b5e551b352b9c6/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
dragImage.style.visibility = null;
dragImage.style.removeProperty("visibility");
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var lineNum = draggingBreakpoint.title; var file = files[currentFile]; var breakpoint = file.breakpoints[lineNum]; draggingBreakpoint.breakpoint = breakpoint; breakpoint.row.removeStyleClass("breakpoint"); breakpoint.row.removeStyleClass("disabled"); var editor = breakpoint.editor; if (editor) toggleBreakpointEditorOnLine(lineNum); draggingBreakpoint.started = true; file.breakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.breakpoint.enabled) dragImage.src = "breakPoint.tif"; else dragImage.src = "breakPointDisabled.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/698fe24365317fd75bda13d558b5e551b352b9c6/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); var lineNum = parseInt(draggingBreakpoint.title);
var lineNum = draggingBreakpoint.title;
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); var lineNum = parseInt(draggingBreakpoint.title); var file = files[currentFile]; var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; } draggingBreakpoint.started = true; if (draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; file.breakpoints[lineNum] = null; file.disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; }
var breakpoint = file.breakpoints[lineNum]; draggingBreakpoint.breakpoint = breakpoint; breakpoint.row.removeStyleClass("breakpoint"); breakpoint.row.removeStyleClass("disabled"); var editor = breakpoint.editor; if (editor) toggleBreakpointEditorOnLine(lineNum);
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); var lineNum = parseInt(draggingBreakpoint.title); var file = files[currentFile]; var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; } draggingBreakpoint.started = true; if (draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; file.breakpoints[lineNum] = null; file.disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
if (draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum];
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); var lineNum = parseInt(draggingBreakpoint.title); var file = files[currentFile]; var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; } draggingBreakpoint.started = true; if (draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; file.breakpoints[lineNum] = null; file.disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
file.disabledBreakpoints[lineNum] = null;
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); var lineNum = parseInt(draggingBreakpoint.title); var file = files[currentFile]; var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; } draggingBreakpoint.started = true; if (draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; file.breakpoints[lineNum] = null; file.disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
if (draggingBreakpoint.isDisabled)
if (draggingBreakpoint.breakpoint.enabled) dragImage.src = "breakPoint.tif"; else
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); var lineNum = parseInt(draggingBreakpoint.title); var file = files[currentFile]; var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; } draggingBreakpoint.started = true; if (draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; file.breakpoints[lineNum] = null; file.disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
else dragImage.src = "breakPoint.tif";
function breakpointDrag(event){ var sourcesDocument = document.getElementById("sources").contentDocument; if (!draggingBreakpoint) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } var x = event.clientX + window.scrollX; var y = event.clientY + window.scrollY; var deltaX = draggingBreakpoint.dragLastX - x; var deltaY = draggingBreakpoint.dragLastY - y; if (draggingBreakpoint.started || deltaX > 4 || deltaY > 4 || deltaX < -4 || deltaY < -4) { if (!draggingBreakpoint.started) { var node = draggingBreakpoint.parentNode; draggingBreakpoint.isDisabled = node.hasStyleClass("disabled"); node.removeStyleClass("breakpoint"); node.removeStyleClass("disabled"); var lineNum = parseInt(draggingBreakpoint.title); var file = files[currentFile]; var editor = file.breakpointEditors[lineNum]; if (editor) { node.childNodes[1].removeChild(editor); file.breakpointEditors[lineNum] = null; } draggingBreakpoint.started = true; if (draggingBreakpoint.isDisabled) draggingBreakpoint.breakFunction = files[currentFile].disabledBreakpoints[lineNum]; else draggingBreakpoint.breakFunction = files[currentFile].breakpoints[lineNum]; file.breakpoints[lineNum] = null; file.disabledBreakpoints[lineNum] = null; var dragImage = sourcesDocument.createElement("img"); if (draggingBreakpoint.isDisabled) dragImage.src = "breakPointDisabled.tif"; else dragImage.src = "breakPoint.tif"; dragImage.id = "breakpointDrag"; dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; sourcesDocument.body.appendChild(dragImage); } else { var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) { sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; return; } dragImage.style.top = y - 8 + "px"; dragImage.style.left = x - 12 + "px"; if (x > 40) dragImage.style.visibility = "hidden"; else dragImage.style.visibility = null; } draggingBreakpoint.dragLastX = x; draggingBreakpoint.dragLastY = y; }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
var y = event.clientY + window.scrollY; var x = event.clientX + window.scrollX;
function breakpointDragEnd(event){ var y = event.clientY + window.scrollY; var x = event.clientX + window.scrollX; var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); if (x > 40 || !draggingBreakpoint) return; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (!row) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled"); addStyleClass(tr, "breakpoint"); file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1); draggingBreakpoint = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/98c1cf6f6c32738969ddb4ace85168e572624ea4/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
var sourcesDocument = document.getElementById("sources").contentDocument;
function breakpointDragEnd(event){ var y = event.clientY + window.scrollY; var x = event.clientX + window.scrollX; var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); if (x > 40 || !draggingBreakpoint) return; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (!row) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled"); addStyleClass(tr, "breakpoint"); file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1); draggingBreakpoint = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/98c1cf6f6c32738969ddb4ace85168e572624ea4/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
if (!row)
if (row <= 0)
function breakpointDragEnd(event){ var y = event.clientY + window.scrollY; var x = event.clientX + window.scrollX; var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); if (x > 40 || !draggingBreakpoint) return; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (!row) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled"); addStyleClass(tr, "breakpoint"); file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1); draggingBreakpoint = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/98c1cf6f6c32738969ddb4ace85168e572624ea4/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
if (!tr) return;
function breakpointDragEnd(event){ var y = event.clientY + window.scrollY; var x = event.clientX + window.scrollX; var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); var sourcesDocument = document.getElementById("sources").contentDocument; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); if (x > 40 || !draggingBreakpoint) return; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (!row) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled"); addStyleClass(tr, "breakpoint"); file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1); draggingBreakpoint = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/98c1cf6f6c32738969ddb4ace85168e572624ea4/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
if(draggingBreakpoint.isDisabled) {
if (draggingBreakpoint.isDisabled) {
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; if(draggingBreakpoint.isDisabled) { tr.addStyleClass("disabled"); file.disabledBreakpoints[row] = draggingBreakpoint.breakFunction; file.breakpoints[row] = null; } else { file.disabledBreakpoints[row] = null; file.breakpoints[row] = draggingBreakpoint.breakFunction; } tr.addStyleClass("breakpoint"); draggingBreakpoint = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/75f7b1c539a192b149c18bc6570c80690c5510b0/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
addStyleClass(tr, "disabled");
tr.addStyleClass("disabled");
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; if(draggingBreakpoint.isDisabled) { addStyleClass(tr, "disabled"); file.disabledBreakpoints[row] = draggingBreakpoint.breakFunction; file.breakpoints[row] = null; } else { file.disabledBreakpoints[row] = null; file.breakpoints[row] = draggingBreakpoint.breakFunction; } addStyleClass(tr, "breakpoint"); draggingBreakpoint = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/c6fb57961d884bd88831658bfe27448abb9cbe1c/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
addStyleClass(tr, "breakpoint");
tr.addStyleClass("breakpoint");
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; if(draggingBreakpoint.isDisabled) { addStyleClass(tr, "disabled"); file.disabledBreakpoints[row] = draggingBreakpoint.breakFunction; file.breakpoints[row] = null; } else { file.disabledBreakpoints[row] = null; file.breakpoints[row] = draggingBreakpoint.breakFunction; } addStyleClass(tr, "breakpoint"); draggingBreakpoint = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/c6fb57961d884bd88831658bfe27448abb9cbe1c/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled"); addStyleClass(tr, "breakpoint"); file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1); draggingBreakpoint = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/d20969b630420cefa62196966e6ccb4895e9fb96/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled");
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled"); addStyleClass(tr, "breakpoint"); file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1); draggingBreakpoint = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/d20969b630420cefa62196966e6ccb4895e9fb96/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1);
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; if (draggingBreakpoint.isDisabled) addStyleClass(tr, "disabled"); addStyleClass(tr, "breakpoint"); file.breakpoints[row] = (draggingBreakpoint.isDisabled ? -1 : 1); draggingBreakpoint = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/d20969b630420cefa62196966e6ccb4895e9fb96/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
sourcesDocument.body.style.cursor = null;
sourcesDocument.body.style.removeProperty("cursor");
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; var breakpoint = draggingBreakpoint.breakpoint; breakpoint.row = tr; // leave the editor there if it exists... we'll want to update it to the new values breakpoint.editor = file.breakpoints[row].editor; file.breakpoints[row] = breakpoint; if (breakpoint.editor) { breakpoint.editor.id = row; updateBreakpointTypeOnLine(row); setConditionFieldText(breakpoint); } if (!breakpoint.enabled) tr.addStyleClass("disabled"); tr.addStyleClass("breakpoint"); draggingBreakpoint = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/698fe24365317fd75bda13d558b5e551b352b9c6/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
if (breakpoint.editor) { breakpoint.editor.id = row; updateBreakpointTypeOnLine(row); setConditionFieldText(breakpoint); }
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; var breakpoint = draggingBreakpoint.breakpoint; breakpoint.row = tr; file.breakpoints[row] = breakpoint; if (!breakpoint.enabled) tr.addStyleClass("disabled"); tr.addStyleClass("breakpoint"); draggingBreakpoint = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/838a1ac3903d168a2ae4036d297b5b48e8ff8c9e/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
if (draggingBreakpoint.isDisabled) {
var breakpoint = draggingBreakpoint.breakpoint; breakpoint.row = tr; file.breakpoints[row] = breakpoint; if (!breakpoint.enabled)
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; if (draggingBreakpoint.isDisabled) { tr.addStyleClass("disabled"); file.disabledBreakpoints[row] = draggingBreakpoint.breakFunction; file.breakpoints[row] = null; } else { file.disabledBreakpoints[row] = null; file.breakpoints[row] = draggingBreakpoint.breakFunction; } tr.addStyleClass("breakpoint"); draggingBreakpoint = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
file.disabledBreakpoints[row] = draggingBreakpoint.breakFunction; file.breakpoints[row] = null; } else { file.disabledBreakpoints[row] = null; file.breakpoints[row] = draggingBreakpoint.breakFunction; }
function breakpointDragEnd(event){ var sourcesDocument = document.getElementById("sources").contentDocument; sourcesDocument.removeEventListener("mousemove", breakpointDrag, true); sourcesDocument.removeEventListener("mouseup", breakpointDragEnd, true); sourcesDocument.body.style.cursor = null; var dragImage = sourcesDocument.getElementById("breakpointDrag"); if (!dragImage) return; dragImage.parentNode.removeChild(dragImage); var x = event.clientX + window.scrollX; if (x > 40 || !draggingBreakpoint) return; var y = event.clientY + window.scrollY; var rowHeight = draggingBreakpoint.parentNode.offsetHeight; var row = Math.ceil(y / rowHeight); if (row <= 0) row = 1; var file = files[currentFile]; var table = file.element.firstChild; if (row > table.childNodes.length) return; var tr = table.childNodes.item(row - 1); if (!tr) return; if (draggingBreakpoint.isDisabled) { tr.addStyleClass("disabled"); file.disabledBreakpoints[row] = draggingBreakpoint.breakFunction; file.breakpoints[row] = null; } else { file.disabledBreakpoints[row] = null; file.breakpoints[row] = draggingBreakpoint.breakFunction; } tr.addStyleClass("breakpoint"); draggingBreakpoint = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
this.rgb = Rico.Color.HSBtoRGB(hsb.h, hsb.s, Math.min(hsb.b + percent,1));
this.rgb = OpenLayers.Rico.Color.HSBtoRGB(hsb.h, hsb.s, Math.min(hsb.b + percent,1));
brighten: function(percent) { var hsb = this.asHSB(); this.rgb = Rico.Color.HSBtoRGB(hsb.h, hsb.s, Math.min(hsb.b + percent,1)); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/112978ac3d807e4a8b7e412ef2f585650c0506d8/Color.js/buggy/lib/Rico/Color.js
this.rgb = Rico.Color.HSBtoRGB(hsb.h, hsb.s, Math.min(hsb.b + percent,1));
this.rgb = OpenLayers.Rico.Color.HSBtoRGB(hsb.h, hsb.s, Math.min(hsb.b + percent,1));
brighten: function(percent) { var hsb = this.asHSB(); this.rgb = Rico.Color.HSBtoRGB(hsb.h, hsb.s, Math.min(hsb.b + percent,1)); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/112978ac3d807e4a8b7e412ef2f585650c0506d8/Color.js/buggy/lib/Rico/Color.js
document.getElementById( 'browse_lastdir' ).value;
function browse( dest ){ document.getElementById( 'browse_dest' ).value = dest; browse_dir( document.getElementById( 'browse_lastdir' ).value ); show( 'browse' );}
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/978d39b3442d34db2be88322500274a0f50cccd5/functions.js/buggy/share/http/js/functions.js
loadXMLDoc( 'requests/browse.xml?dir='+escape(dir), parse_browse_dir );
loadXMLDoc( 'requests/browse.xml?dir='+encodeURIComponent(dir), parse_browse_dir );
function browse_dir( dir ){ document.getElementById( 'browse_lastdir' ).value = dir; loadXMLDoc( 'requests/browse.xml?dir='+escape(dir), parse_browse_dir );}
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/2ec45e6f9fb34cec89722493dc40eeb17d66d3b5/functions.js/buggy/share/http/js/functions.js
loadXMLDoc( 'requests/browse.xml?dir='+dir, parse_browse_dir );
loadXMLDoc( 'requests/browse.xml?dir='+escape(dir), parse_browse_dir );
function browse_dir( dir ){ document.getElementById( 'browse_lastdir' ).value = dir; loadXMLDoc( 'requests/browse.xml?dir='+dir, parse_browse_dir );}
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/4c1df9c171cf1b0ad9d9954af1c483d8a496f08d/functions.js/clean/share/http/js/functions.js
this.nextPromptResult = '';
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.newPageLoaded = false; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/538d31738ad6ff53d3769763901d45420f989a46/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js
this.recordPageLoad = function() {
this.recordPageLoad = function(elementOrWindow) {
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4e0a02c1c4c22cfcb651a4876c917b70f01b9d82/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
LOG.debug("Page load location=" + self.getCurrentWindow(true).location);
if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); }
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4e0a02c1c4c22cfcb651a4876c917b70f01b9d82/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
LOG.debug("Page load location=" + self.getCurrentWindow().location);
LOG.debug("Page load location=" + self.getCurrentWindow().location);
var BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) throw this.pageLoadError; return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/0e14a53996e4d4f6077da9fa5f25415f4fff0108/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
self.pageLoadError = e; return;
self.pageLoadError = e; return;
var BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) throw this.pageLoadError; return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/0e14a53996e4d4f6077da9fa5f25415f4fff0108/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
if (this.pageLoadError) throw this.pageLoadError;
if (this.pageLoadError) throw this.pageLoadError;
var BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) throw this.pageLoadError; return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/0e14a53996e4d4f6077da9fa5f25415f4fff0108/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
LOG.debug("Page load detected, location=" + self.getCurrentWindow().location);
LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; }
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected, location=" + self.getCurrentWindow().location); self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/5a068b4300c7479e884b8a0c259ed1a39ef6496a/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
if (this.pageLoadError) throw this.pageLoadError;
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected, location=" + self.getCurrentWindow().location); self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/5a068b4300c7479e884b8a0c259ed1a39ef6496a/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
BrowserBot = function(frame) {
var BrowserBot = function(frame) {
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) throw this.pageLoadError; return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/10e591b5be05718f2e4d76628c0765675e463e1b/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
LOG.debug("Page load location=" + self.getCurrentWindow().location);
LOG.debug("Page load location=" + self.getCurrentWindow().location);
var BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) throw this.pageLoadError; return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/6b0b260c628dcdbf842d816728bb3bdcc6219faa/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
self.pageLoadError = e; return;
self.pageLoadError = e; return;
var BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) throw this.pageLoadError; return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/6b0b260c628dcdbf842d816728bb3bdcc6219faa/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
if (this.pageLoadError) throw this.pageLoadError;
if (this.pageLoadError) throw this.pageLoadError;
var BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) throw this.pageLoadError; return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/6b0b260c628dcdbf842d816728bb3bdcc6219faa/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
LOG.debug("Page load detected");
LOG.debug("Page load detected, location=" + self.getCurrentWindow().location);
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/c9ad9e534ac11b80c0d2046f424d1a94b3274d3f/selenium-browserbot.js/clean/code/javascript/selenium-browserbot.js
this.nextPromptResult = '';
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.newPageLoaded = false; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/62b872e97995fb3cdbf0351385a58b95e6c14d8c/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js
this.shouldHighlightLocatedElement = false;
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; this.topFrame = this.topWindow; this.baseUrl=window.location.href; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.metaKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.permDeniedCount = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function(elementOrWindow) { LOG.debug("Page load detected"); try { if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); } } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { LOG.error("isNewPageLoaded found an old pageLoadError"); var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/b65b96860c14f050944e3fa047dbc1565d3db0a5/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
LOG.error("isNewPageLoaded found an old pageLoadError");
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; this.topFrame = this.topWindow; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.metaKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.permDeniedCount = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function(elementOrWindow) { LOG.debug("Page load detected"); try { if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); } } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/eee8eb9db54254414e988389d2f3f2f744e0550d/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e);
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/476ccd842ee26de6c101e6581d2a0f5bb251d2f6/selenium-browserbot.js/clean/code/javascript/core/scripts/selenium-browserbot.js
var BrowserBot = function(win) { this.topWindow = win; this.window = this.topWindow; this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; this.windowPollers = new Array(); this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); var self = this; this.recordPageLoad = function() { LOG.info("Page load detected"); try { LOG.info("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/093b5139dc945169afd36fbd691e1420b1e3e681/selenium-browserbot.js/clean/code/javascript/core/scripts/selenium-browserbot.js
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; this.topFrame = this.topWindow; this.baseUrl=window.location.href; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.metaKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.shouldHighlightLocatedElement = false; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.permDeniedCount = new Object(); this.windowPollers = new Array(); // DGF for backwards compatibility this.browserbot = this; var self = this; this._registerAllLocatorFunctions(); this.recordPageLoad = function(elementOrWindow) { LOG.debug("Page load detected"); try { if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); } } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { LOG.error("isNewPageLoaded found an old pageLoadError"); var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4ef0b7f863bb671a971c537bdb87b5d98631b378/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
this.buttonWindow = this.topWindow;
this.buttonWindow = window;
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; this.topFrame = this.topWindow; this.baseUrl=window.location.href; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.metaKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.shouldHighlightLocatedElement = false; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.permDeniedCount = new Object(); this.windowPollers = new Array(); // DGF for backwards compatibility this.browserbot = this; var self = this; objectExtend(this, PageBot.prototype); this._registerAllLocatorFunctions(); this.recordPageLoad = function(elementOrWindow) { LOG.debug("Page load detected"); try { if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); } } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { LOG.error("isNewPageLoaded found an old pageLoadError"); var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/79bf4dfd3a2f0ac908ce913232f83d83b08c1533/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
var BrowserBot = function(win) { this.topWindow = win; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function() { LOG.info("Page load detected"); try { LOG.info("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/02691fc3094ecacd69b9d0b6489ad057f3da77ab/selenium-browserbot.js/clean/code/javascript/core/scripts/selenium-browserbot.js
LOG.debug("Page load detected");
LOG.debug("Page load detected, location=" + self.getCurrentWindow().location);
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; var self = this; this.recordPageLoad = function() { LOG.debug("Page load detected"); self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/1373e1377af777ef6f4d581ca503ac7a5b698db7/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js
this.openedWindows = {};
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.nextConfirmResult = true;};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/a23b4fcc59263b0f9e4c08b6cf7499f673920f47/selenium-browserbot.js/clean/code/javascript/selenium-browserbot.js
this.metaKeyDown = false;
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; this.topFrame = this.topWindow; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.permDeniedCount = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function(elementOrWindow) { LOG.debug("Page load detected"); try { if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); } } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/41a9e04d8b87c3050736f604fc6194765320ec1b/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
this.openedWindows = {};
BrowserBot = function(frame) { this.frame = frame; this.currentPage = null; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.nextConfirmResult = true;};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/c47599e57346ba693ee8021b4e1ebf44749b2aab/selenium-browserbot.js/clean/code/javascript/selenium-browserbot.js
if (this.topWindow && this.topWindow.location) { this.baseUrl=this.topWindow.location.href; }
this.baseUrl=window.location.href;
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; this.topFrame = this.topWindow; if (this.topWindow && this.topWindow.location) { this.baseUrl=this.topWindow.location.href; } // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; // We need to know this in advance, in case the frame closes unexpectedly this.isSubFrameSelected = false; this.altKeyDown = false; this.controlKeyDown = false; this.shiftKeyDown = false; this.metaKeyDown = false; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.permDeniedCount = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function(elementOrWindow) { LOG.debug("Page load detected"); try { if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); } } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { LOG.error("isNewPageLoaded found an old pageLoadError"); var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/3a7e5fefeacd5b603a3b70b7e3f2c1d20a30def3/selenium-browserbot.js/clean/code/javascript/core/scripts/selenium-browserbot.js
var BrowserBot = function(topLevelApplicationWindow) { this.topWindow = topLevelApplicationWindow; // the buttonWindow is the Selenium window // it contains the Run/Pause buttons... this should *not* be the AUT window // todo: Here the buttonWindow is not Selenium window. It will be set to Selenium window in pollForLoad. // Change this!!! this.buttonWindow = this.topWindow; // not sure what this is used for this.currentPage = null; this.currentWindow = this.topWindow; this.currentWindowName = null; this.modalDialogTest = null; this.recordedAlerts = new Array(); this.recordedConfirmations = new Array(); this.recordedPrompts = new Array(); this.openedWindows = {}; this.nextConfirmResult = true; this.nextPromptResult = ''; this.newPageLoaded = false; this.pageLoadError = null; this.uniqueId = new Date().getTime(); this.pollingForLoad = new Object(); this.windowPollers = new Array(); var self = this; this.recordPageLoad = function() { LOG.info("Page load detected"); try { LOG.info("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; }; this.isNewPageLoaded = function() { if (this.pageLoadError) { var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; };};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/70f5ebacbd9f1460354cd6cc0da2b8675328e124/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
if (/^chrome:\/\ self.isChrome = true; } else { self.isChrome = false; }
var BrowserVersion = function() { this.name = navigator.appName; if (window.opera != null) { this.browser = BrowserVersion.OPERA; this.isOpera = true; return; } var self = this; var checkChrome = function() { var loc = window.document.location.href; try { loc = window.top.document.location.href; } catch (e) { // can't see the top (that means we might be chrome, but it's impossible to be sure) self.isChromeDetectable = "no, top location couldn't be read in this window"; } if (/^chrome:\/\//.test(loc)) { self.isChrome = true; } else { self.isChrome = false; } } if (this.name == "Microsoft Internet Explorer") { this.browser = BrowserVersion.IE; this.isIE = true; if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true; } if ("0" == navigator.appMinorVersion) { this.preSV1 = true; if (navigator.appVersion.match(/MSIE 6.0/)) { this.appearsToBeBrokenInitialIE6 = true; } } return; } if (navigator.userAgent.indexOf('Safari') != -1) { this.browser = BrowserVersion.SAFARI; this.isSafari = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Konqueror') != -1) { this.browser = BrowserVersion.KONQUEROR; this.isKonqueror = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Firefox') != -1) { this.browser = BrowserVersion.FIREFOX; this.isFirefox = true; this.isGecko = true; var result = /.*Firefox\/([\d\.]+).*/.exec(navigator.userAgent); if (result) { this.firefoxVersion = result[1]; } checkChrome(); return; } if (navigator.userAgent.indexOf('Gecko') != -1) { this.browser = BrowserVersion.MOZILLA; this.isMozilla = true; this.isGecko = true; checkChrome(); return; } this.browser = BrowserVersion.UNKNOWN;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/eee8eb9db54254414e988389d2f3f2f744e0550d/selenium-browserdetect.js/buggy/code/javascript/core/scripts/selenium-browserdetect.js
if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true;
try { if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true; } } catch (e) { this.isHTADetectable = "no, top location couldn't be read in this window"; if (_getQueryParameter('thisIsHTA')) { self.isHTA = true; } else { self.isHTA = false; }
var BrowserVersion = function() { this.name = navigator.appName; if (window.opera != null) { this.browser = BrowserVersion.OPERA; this.isOpera = true; return; } var self = this; var checkChrome = function() { var loc = window.document.location.href; try { loc = window.top.document.location.href; } catch (e) { // can't see the top (that means we might be chrome, but it's impossible to be sure) self.isChromeDetectable = "no, top location couldn't be read in this window"; } if (/^chrome:\/\//.test(loc)) { self.isChrome = true; } else { self.isChrome = false; } } if (this.name == "Microsoft Internet Explorer") { this.browser = BrowserVersion.IE; this.isIE = true; if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true; } if ("0" == navigator.appMinorVersion) { this.preSV1 = true; if (navigator.appVersion.match(/MSIE 6.0/)) { this.appearsToBeBrokenInitialIE6 = true; } } return; } if (navigator.userAgent.indexOf('Safari') != -1) { this.browser = BrowserVersion.SAFARI; this.isSafari = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Konqueror') != -1) { this.browser = BrowserVersion.KONQUEROR; this.isKonqueror = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Firefox') != -1) { this.browser = BrowserVersion.FIREFOX; this.isFirefox = true; this.isGecko = true; var result = /.*Firefox\/([\d\.]+).*/.exec(navigator.userAgent); if (result) { this.firefoxVersion = result[1]; } checkChrome(); return; } if (navigator.userAgent.indexOf('Gecko') != -1) { this.browser = BrowserVersion.MOZILLA; this.isMozilla = true; this.isGecko = true; checkChrome(); return; } this.browser = BrowserVersion.UNKNOWN;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/eee8eb9db54254414e988389d2f3f2f744e0550d/selenium-browserdetect.js/buggy/code/javascript/core/scripts/selenium-browserdetect.js
if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true; }
BrowserVersion = function() { this.name = navigator.appName; if (window.opera != null) { this.browser = BrowserVersion.OPERA; this.isOpera = true; return; } if (this.name == "Microsoft Internet Explorer") { this.browser = BrowserVersion.IE; this.isIE = true; return; } if (navigator.userAgent.indexOf('Safari') != -1) { this.browser = BrowserVersion.SAFARI; this.isSafari = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Konqueror') != -1) { this.browser = BrowserVersion.KONQUEROR; this.isKonqueror = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Firefox') != -1) { this.browser = BrowserVersion.FIREFOX; this.isFirefox = true; this.isGecko = true; return; } if (navigator.userAgent.indexOf('Gecko') != -1) { this.browser = BrowserVersion.MOZILLA; this.isMozilla = true; this.isGecko = true; return; } this.browser = BrowserVersion.UNKNOWN;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/7c8f281c97245c878f36003ba018f44622c0c718/selenium-browserdetect.js/buggy/code/javascript/core/scripts/selenium-browserdetect.js
if (navigator.appVersion.match(/MSIE 6.0/)) { this.appearsToBeBrokenInitialIE6 = true; }
var BrowserVersion = function() { this.name = navigator.appName; if (window.opera != null) { this.browser = BrowserVersion.OPERA; this.isOpera = true; return; } var self = this; var checkChrome = function() { var loc = window.document.location.href; try { loc = window.top.document.location.href; } catch (e) { // can't see the top (that means we might be chrome, but it's impossible to be sure) self.isChromeDetectable = "no, top location couldn't be read in this window"; } if (/^chrome:\/\//.test(loc)) { self.isChrome = true; } else { self.isChrome = false; } } if (this.name == "Microsoft Internet Explorer") { this.browser = BrowserVersion.IE; this.isIE = true; if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true; } if ("0" == navigator.appMinorVersion) { this.preSV1 = true; } return; } if (navigator.userAgent.indexOf('Safari') != -1) { this.browser = BrowserVersion.SAFARI; this.isSafari = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Konqueror') != -1) { this.browser = BrowserVersion.KONQUEROR; this.isKonqueror = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Firefox') != -1) { this.browser = BrowserVersion.FIREFOX; this.isFirefox = true; this.isGecko = true; var result = /.*Firefox\/([\d\.]+).*/.exec(navigator.userAgent); if (result) { this.firefoxVersion = result[1]; } checkChrome(); return; } if (navigator.userAgent.indexOf('Gecko') != -1) { this.browser = BrowserVersion.MOZILLA; this.isMozilla = true; this.isGecko = true; checkChrome(); return; } this.browser = BrowserVersion.UNKNOWN;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/2926652532e34f5b463decd00e6cb0836ad65b1d/selenium-browserdetect.js/buggy/code/javascript/core/scripts/selenium-browserdetect.js
var result = /.*Firefox\/([\d\.]+).*/.exec(navigator.userAgent); if (result) { this.firefoxVersion = result[1]; }
BrowserVersion = function() { this.name = navigator.appName; if (window.opera != null) { this.browser = BrowserVersion.OPERA; this.isOpera = true; return; } if (this.name == "Microsoft Internet Explorer") { this.browser = BrowserVersion.IE; this.isIE = true; if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true; } return; } if (navigator.userAgent.indexOf('Safari') != -1) { this.browser = BrowserVersion.SAFARI; this.isSafari = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Konqueror') != -1) { this.browser = BrowserVersion.KONQUEROR; this.isKonqueror = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Firefox') != -1) { this.browser = BrowserVersion.FIREFOX; this.isFirefox = true; this.isGecko = true; return; } if (navigator.userAgent.indexOf('Gecko') != -1) { this.browser = BrowserVersion.MOZILLA; this.isMozilla = true; this.isGecko = true; return; } this.browser = BrowserVersion.UNKNOWN;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/625ecfb8411e3161585be6394a2dc7e2f30a97c2/selenium-browserdetect.js/clean/code/javascript/core/scripts/selenium-browserdetect.js
checkChrome();
BrowserVersion = function() { this.name = navigator.appName; if (window.opera != null) { this.browser = BrowserVersion.OPERA; this.isOpera = true; return; } if (this.name == "Microsoft Internet Explorer") { this.browser = BrowserVersion.IE; this.isIE = true; if (window.top.SeleniumHTARunner && window.top.document.location.pathname.match(/.hta$/i)) { this.isHTA = true; } if ("0" == navigator.appMinorVersion) { this.preSV1 = true; } return; } if (navigator.userAgent.indexOf('Safari') != -1) { this.browser = BrowserVersion.SAFARI; this.isSafari = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Konqueror') != -1) { this.browser = BrowserVersion.KONQUEROR; this.isKonqueror = true; this.khtml = true; return; } if (navigator.userAgent.indexOf('Firefox') != -1) { this.browser = BrowserVersion.FIREFOX; this.isFirefox = true; this.isGecko = true; var result = /.*Firefox\/([\d\.]+).*/.exec(navigator.userAgent); if (result) { this.firefoxVersion = result[1]; } return; } if (navigator.userAgent.indexOf('Gecko') != -1) { this.browser = BrowserVersion.MOZILLA; this.isMozilla = true; this.isGecko = true; return; } this.browser = BrowserVersion.UNKNOWN;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/bf34e1e762b4ec71e653e71ca3b4d79fa5c37709/selenium-browserdetect.js/buggy/code/javascript/core/scripts/selenium-browserdetect.js
var baseUrl = window.location.href.substring(0, lastSlash+1);
baseUrl = window.location.href.substring(0, lastSlash+1);
function buildBaseUrl() { var lastSlash = window.location.href.lastIndexOf('/'); var baseUrl = window.location.href.substring(0, lastSlash+1); return baseUrl;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/411bc9a330c08b868b94adc4b71d73eabce63353/selenium-seleneserunner.js/buggy/code/javascript/core/scripts/selenium-seleneserunner.js
var host = runOptions.getDriverHost(); var port = runOptions.getDriverPort(); if (host != undefined && port != undefined) { params = params + "&driverhost=" + host + "&driverport=" + port; }
function buildDriverParams() { var params = ""; var host = runOptions.getDriverHost(); var port = runOptions.getDriverPort(); if (host != undefined && port != undefined) { params = params + "&driverhost=" + host + "&driverport=" + port; } var sessionId = runOptions.getSessionId(); if (sessionId == undefined) { sessionId = injectedSessionId; } if (sessionId != undefined) { params = params + "&sessionId=" + sessionId; } return params;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/221e405153e4944ac36a523560cbc57de7ae219b/selenium-remoterunner.js/buggy/code/javascript/core/scripts/selenium-remoterunner.js
if (!Event.isLeftClick(evt)) return;
buttonClick: function(evt) { this.switchModeTo(evt.div.action); Event.stop(evt); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c92cd6d88a59f79879c73965c26269e13afa25e3/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
if (!Event.isLeftClick(evt)) return;
buttonClick: function(evt) { this.switchModeTo(evt.div.action); Event.stop(evt); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c92cd6d88a59f79879c73965c26269e13afa25e3/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
if (!Event.isLeftClick(evt)) return;
buttonDown: function (evt) { var slide = this.map.getResolution() * this.slideFactor; var center = this.map.getCenter(); var newCenter = center.copyOf(); switch (this.action) { case "panup": newCenter = newCenter.add( 0, slide); break; case "pandown": newCenter = newCenter.add( 0, -slide); break; case "panleft": newCenter = newCenter.add( -slide, 0); break; case "panright": newCenter = newCenter.add( slide, 0); break; case "zoomin": this.map.zoomIn(); break; case "zoomout": this.map.zoomOut(); break; case "zoomworld": this.map.zoomToFullExtent(); break; } if (!newCenter.equals(center)) { this.map.setCenter(newCenter); } Event.stop(evt); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c92cd6d88a59f79879c73965c26269e13afa25e3/PanZoom.js/buggy/lib/OpenLayers/Control/PanZoom.js
case "zoomextents": this.map.zoomExtent(); break;
case "zoomworld": this.map.zoomExtent(); break;
buttonDown: function (evt) { switch (this.action) { case "panup": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LonLat(center.lon, center.lat + (resolution * 50)) ); break; case "pandown": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LonLat(center.lon, center.lat - (resolution * 50)) ); break; case "panleft": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LonLat(center.lon - (resolution * 50), center.lat) ); break; case "panright": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LonLat(center.lon + (resolution * 50), center.lat) ); break; case "zoomin": this.map.zoomIn(); break; case "zoomout": this.map.zoomOut(); break; case "zoomextents": this.map.zoomExtent(); break; } Event.stop(evt); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/cdd26c1df23791ffc4e172c84fd58753580904b5/PanZoom.js/clean/lib/OpenLayers/Control/PanZoom.js
if (!Event.isLeftClick(evt)) return;
buttonDown: function (evt) { var slide = this.map.getResolution() * this.slideFactor; var center = this.map.getCenter(); var newCenter = center.copyOf(); switch (this.action) { case "panup": newCenter = newCenter.add( 0, slide); break; case "pandown": newCenter = newCenter.add( 0, -slide); break; case "panleft": newCenter = newCenter.add( -slide, 0); break; case "panright": newCenter = newCenter.add( slide, 0); break; case "zoomin": this.map.zoomIn(); break; case "zoomout": this.map.zoomOut(); break; case "zoomworld": this.map.zoomToFullExtent(); break; } if (!newCenter.equals(center)) { this.map.setCenter(newCenter); } Event.stop(evt); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c92cd6d88a59f79879c73965c26269e13afa25e3/PanZoom.js/clean/lib/OpenLayers/Control/PanZoom.js
new OpenLayers.LatLon(center.lat + (reslution * 50),
new OpenLayers.LatLon(center.lat + (resolution * 50),
buttonDown: function (evt) { switch (this.action) { case "panup": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat + (reslution * 50), center.lon ) ); break; case "pandown": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat - (reslution * 50), center.lon ) ); break; case "panleft": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat, center.lon - (resolution * 50) ) ); break; case "panright": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat, center.lon + (resolution * 50) ) ); break; case "zoomin": this.map.zoomIn(); break; case "zoomout": this.map.zoomOut(); break; case "zoomextents": this.map.zoomExtent(); break; } Event.stop(evt); }
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/9f29b0e9a6df5e1704ce3fa98e1d413e4f307a1b/PanZoom.js/buggy/js/OpenLayers/Control/PanZoom.js
new OpenLayers.LatLon(center.lat - (reslution * 50),
new OpenLayers.LatLon(center.lat - (resolution * 50),
buttonDown: function (evt) { switch (this.action) { case "panup": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat + (reslution * 50), center.lon ) ); break; case "pandown": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat - (reslution * 50), center.lon ) ); break; case "panleft": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat, center.lon - (resolution * 50) ) ); break; case "panright": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat, center.lon + (resolution * 50) ) ); break; case "zoomin": this.map.zoomIn(); break; case "zoomout": this.map.zoomOut(); break; case "zoomextents": this.map.zoomExtent(); break; } Event.stop(evt); }
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/9f29b0e9a6df5e1704ce3fa98e1d413e4f307a1b/PanZoom.js/buggy/js/OpenLayers/Control/PanZoom.js
new OpenLayers.LatLon(center.lat + (reslution * 50),
new OpenLayers.LatLon(center.lat + (resolution * 50),
buttonDown: function (evt) { switch (this.action) { case "panup": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat + (reslution * 50), center.lon ) ); break; case "pandown": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat - (reslution * 50), center.lon ) ); break; case "panleft": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat, center.lon - (resolution * 50) ) ); break; case "panright": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat, center.lon + (resolution * 50) ) ); break; case "zoomin": this.map.zoomIn(); break; case "zoomout": this.map.zoomOut(); break; case "zoomextents": this.map.zoomExtent(); break; } Event.stop(evt); }
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/9f29b0e9a6df5e1704ce3fa98e1d413e4f307a1b/PanZoom.js/buggy/js/OpenLayers/Control/PanZoom.js
new OpenLayers.LatLon(center.lat - (reslution * 50),
new OpenLayers.LatLon(center.lat - (resolution * 50),
buttonDown: function (evt) { switch (this.action) { case "panup": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat + (reslution * 50), center.lon ) ); break; case "pandown": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat - (reslution * 50), center.lon ) ); break; case "panleft": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat, center.lon - (resolution * 50) ) ); break; case "panright": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LatLon(center.lat, center.lon + (resolution * 50) ) ); break; case "zoomin": this.map.zoomIn(); break; case "zoomout": this.map.zoomOut(); break; case "zoomextents": this.map.zoomExtent(); break; } Event.stop(evt); }
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/9f29b0e9a6df5e1704ce3fa98e1d413e4f307a1b/PanZoom.js/buggy/js/OpenLayers/Control/PanZoom.js
case "zoomextents": this.map.zoomExtent(); break;
case "zoomworld": this.map.zoomExtent(); break;
buttonDown: function (evt) { switch (this.action) { case "panup": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LonLat(center.lon, center.lat + (resolution * 50)) ); break; case "pandown": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LonLat(center.lon, center.lat - (resolution * 50)) ); break; case "panleft": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LonLat(center.lon - (resolution * 50), center.lat) ); break; case "panright": var resolution = this.map.getResolution(); var center = this.map.getCenter(); this.map.setCenter( new OpenLayers.LonLat(center.lon + (resolution * 50), center.lat) ); break; case "zoomin": this.map.zoomIn(); break; case "zoomout": this.map.zoomOut(); break; case "zoomextents": this.map.zoomExtent(); break; } Event.stop(evt); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/cdd26c1df23791ffc4e172c84fd58753580904b5/PanZoom.js/clean/lib/OpenLayers/Control/PanZoom.js
function BX_add_tagWithAttributes(tag,content,attributes) { var element = BX_xml.createElementNS("http: element.appendChild(BX_xml.createTextNode(content));
function BX_add_tagWithAttributes(tag,content,attributes) { var element = BX_xml.doc.createElement(tag); element.appendChild(BX_xml.doc.createTextNode(content));
function BX_add_tagWithAttributes(tag,content,attributes){ var element = BX_xml.createElementNS("http://www.w3.org/1999/xhtml",tag); element.appendChild(BX_xml.createTextNode(content)); for (var attName in attributes) { element.setAttribute(attName,attributes[attName]); } element.setAttribute("id","BX_id_"+BX_id_counter); element.setAttribute("internalid",'yes'); BX_id_counter++; BX_insertContent(element); BX_scrollToCursor(element); BX_selection.selectAllChildren(element); BX_update_buttons = true;}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js
for (var attName in attributes) {
for (var attName in attributes) {
function BX_add_tagWithAttributes(tag,content,attributes){ var element = BX_xml.createElementNS("http://www.w3.org/1999/xhtml",tag); element.appendChild(BX_xml.createTextNode(content)); for (var attName in attributes) { element.setAttribute(attName,attributes[attName]); } element.setAttribute("id","BX_id_"+BX_id_counter); element.setAttribute("internalid",'yes'); BX_id_counter++; BX_insertContent(element); BX_scrollToCursor(element); BX_selection.selectAllChildren(element); BX_update_buttons = true;}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js
element.setAttribute("internalid",'yes');
element.setAttribute("bxe_internalid",'yes');
function BX_add_tagWithAttributes(tag,content,attributes){ var element = BX_xml.createElementNS("http://www.w3.org/1999/xhtml",tag); element.appendChild(BX_xml.createTextNode(content)); for (var attName in attributes) { element.setAttribute(attName,attributes[attName]); } element.setAttribute("id","BX_id_"+BX_id_counter); element.setAttribute("internalid",'yes'); BX_id_counter++; BX_insertContent(element); BX_scrollToCursor(element); BX_selection.selectAllChildren(element); BX_update_buttons = true;}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js
function BX_addEvents() {
function BX_addEvents() {
function BX_addEvents(){ document.addEventListener("keypress",BX_keypress,false); document.addEventListener("keyup",BX_onkeyup,false); // var allSpans = document.getElementsByName("bitfluxspan"); /* for (i = 0; i < allSpans.length; i ++) { allSpans[i].addEventListener("mouseup", BX_RangeCaptureOnMouseUp, false); }*/ document.getElementById("transformLocation").addEventListener("mouseup", BX_RangeCaptureOnMouseUp, false);}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js