rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
var parentNode = element.parentNode; return drop._containers.detect(function(c) { return parentNode == c });
var containmentNode; if(drop.tree) { containmentNode = element.treeNode; } else { containmentNode = element.parentNode; } return drop._containers.detect(function(c) { return containmentNode == c });
isContained: function(element, drop) { var parentNode = element.parentNode; return drop._containers.detect(function(c) { return parentNode == c }); },
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js
var parentNode = element.parentNode; return drop._containers.detect(function(c) { return parentNode == c });
var containmentNode; if(drop.tree) { containmentNode = element.treeNode; } else { containmentNode = element.parentNode; } return drop._containers.detect(function(c) { return containmentNode == c });
isContained: function(element, drop) { var parentNode = element.parentNode; return drop._containers.detect(function(c) { return parentNode == c }); },
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
return this.startContent != tinyMCE.trim(this.getBody().innerHTML) && !tinyMCE.isNotDirty;
return tinyMCE.trim(this.startContent) != tinyMCE.trim(this.getBody().innerHTML) && !tinyMCE.isNotDirty;
isDirty : function() { // Is content modified and not in a submit procedure return this.startContent != tinyMCE.trim(this.getBody().innerHTML) && !tinyMCE.isNotDirty; },
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js
return targetElement.style.display == "none";
return targetElement.style.display == "none" || (targetElement.style.display == "" && targetElement.className.indexOf("hidden") >= 0);
function isElementHidden(namespace, elementId) { var targetElement = getNamespacedElement(namespace, elementId); return targetElement.style.display == "none";}
6797 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6797/0bdbbf6345a81dac840602995d10d5deaacc050f/bookmarks.js/clean/webapp/script/bookmarks.js
}
},
isFinished: function() { return this.current > this.finish; }
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/e79801d7f254572e195a0048fc912571b51aa23d/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
isFinished: function() { return this.current > this.finish; }
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/e79801d7f254572e195a0048fc912571b51aa23d/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
isFinished: function() { return this.current > this.finish; }
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/e79801d7f254572e195a0048fc912571b51aa23d/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
isFinished: function() { return this.current > this.finish; }
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/e79801d7f254572e195a0048fc912571b51aa23d/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
isFinished: function() { return this.current > this.finish; }
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/e79801d7f254572e195a0048fc912571b51aa23d/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
isFinished: function() { return this.current > this.finish; }
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/e79801d7f254572e195a0048fc912571b51aa23d/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
isFinished: function() { return this.current > this.finish; }
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/e79801d7f254572e195a0048fc912571b51aa23d/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
isFinished: function() { return this.current > this.finish; }
2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/e79801d7f254572e195a0048fc912571b51aa23d/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
isFinished: function() { return this.current > this.finish; }
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/e79801d7f254572e195a0048fc912571b51aa23d/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
isFinished: function() { return this.current > this.finish; }
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/e79801d7f254572e195a0048fc912571b51aa23d/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
isFinished: function() { return this.current > this.finish; }
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/e79801d7f254572e195a0048fc912571b51aa23d/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
isFinished: function() { return this.current > this.finish; }
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/e79801d7f254572e195a0048fc912571b51aa23d/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
if (tinyMCE.isMSIE)
var s; if (tinyMCE.isIE)
isHidden : function() { if (tinyMCE.isMSIE) return false; var s = this.getSel(); // Weird, wheres that cursor selection? return (!s || !s.rangeCount || s.rangeCount == 0); },
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js
var s = this.getSel();
s = this.getSel();
isHidden : function() { if (tinyMCE.isMSIE) return false; var s = this.getSel(); // Weird, wheres that cursor selection? return (!s || !s.rangeCount || s.rangeCount == 0); },
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js
if (document.jsEnabled == undefined) {
if (typeof document.jsEnabled == 'undefined') {
function isJsEnabled() { if (document.jsEnabled == undefined) { // Note: ! casts to boolean implicitly. document.jsEnabled = !( !document.getElementsByTagName || !document.createElement || !document.createTextNode || !document.getElementById); } return document.jsEnabled;}
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/cb5b2f332cbdaadcc2802bd76b190d1b77b0b51b/drupal.js/buggy/misc/drupal.js
!document.documentElement ||
function isJsEnabled() { if (typeof document.jsEnabled == 'undefined') { // Note: ! casts to boolean implicitly. document.jsEnabled = !( !document.getElementsByTagName || !document.createElement || !document.createTextNode || !document.getElementById); } return document.jsEnabled;}
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/e550f8416210489aedd88a73cdc3c5b614edc574/drupal.js/clean/misc/drupal.js
return 1;
return KLines[the_kl];
function isklined(kl_str) { for(the_kl in KLines) { if (KLines[the_kl].hostmask && IRC_match(kl_str,KLines[the_kl].hostmask)) return 1; } return 0;}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/ddc5d1f8540694fa91565015427d7c84d13e9011/ircd.js/buggy/ircd.js
}
},
isMultiWindowMode:function() { return this._isQueryParameterTrue('multiWindow'); }
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/eee8eb9db54254414e988389d2f3f2f744e0550d/htmlutils.js/clean/code/javascript/core/scripts/htmlutils.js
if (this.pageLoadError) throw this.pageLoadError;
if (this.pageLoadError) throw this.pageLoadError;
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;
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;
if (this.pageLoadError) throw this.pageLoadError;
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.error("isNewPageLoaded found an old pageLoadError");
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
function isPaused() {
function isPaused() {
function isPaused() { return DebuggerDocument.isPaused();}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
return c === " " || c === "\n" || c === "\t";
return c === " " || c === "\r" || c === "\n" || c === "\t" || c === "\f";
function isWhitespace(c) { return c === " " || c === "\n" || c === "\t"; };
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/0bc8f13bad18ef0f992ba2b90f387c220c907455/runtime.js/buggy/scheme2js/runtime/runtime.js
var self = this; return { index: index, toString: function(index) { return self.variableName + "[" + this.index + "]"; } }
return this.variableName + "[" + index + "]";
EqualsArray.prototype.item = function(index) { var self = this; return { index: index, toString: function(index) { return self.variableName + "[" + this.index + "]"; } }}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/9c787c7e6c12c5505c234cea90865fbee0d58139/java-rc.js/clean/src/content/formats/java-rc.js
function Item(itemDescription, itemLink, target) { this.desc = itemDescription this.link = itemLink this.id = -1 this.navObj = 0 this.iconImg = 0 this.iconSrc = ICONPATH + "ftv2doc.gif"
function Item(itemDescription, itemLink, target) { this.desc = itemDescription this.link = itemLink this.id = -1 this.navObj = 0 this.iconImg = 0 this.iconSrc = ICONPATH + "ftv2doc.gif"
function Item(itemDescription, itemLink, target) // Constructor { // constant data this.desc = itemDescription this.link = itemLink this.id = -1 //initialized in initalize() this.navObj = 0 //initialized in render() this.iconImg = 0 //initialized in render() this.iconSrc = ICONPATH + "ftv2doc.gif" this.isRendered = 0 this.isLastNode = false this.level = 0 this.leftSideCoded = "" this.nChildren = 0 this.target = target this.parentObj = null this.maySelect=true this.prependHTML = "" // methods this.initialize = initializeItem this.createIndex = createEntryIndex this.escondeBlock = escondeBlock this.esconde = escondeBlock this.folderMstr = folderMstr this.renderOb = drawItem this.totalHeight = totalHeight this.blockStartHTML = blockStartHTML this.blockEndHTML = blockEndHTML this.getID = getID this.forceOpeningOfAncestorFolders = forceOpeningOfAncestorFolders}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/10ba7e2a5c2d92957e2e2af83e2170a8ccca3aea/ftiens4.js/clean/trunk/cacti/include/treeview/ftiens4.js
this.initialize = initializeItem this.createIndex = createEntryIndex
this.initialize = initializeItem this.createIndex = createEntryIndex
function Item(itemDescription, itemLink, target) // Constructor { // constant data this.desc = itemDescription this.link = itemLink this.id = -1 //initialized in initalize() this.navObj = 0 //initialized in render() this.iconImg = 0 //initialized in render() this.iconSrc = ICONPATH + "ftv2doc.gif" this.isRendered = 0 this.isLastNode = false this.level = 0 this.leftSideCoded = "" this.nChildren = 0 this.target = target this.parentObj = null this.maySelect=true this.prependHTML = "" // methods this.initialize = initializeItem this.createIndex = createEntryIndex this.escondeBlock = escondeBlock this.esconde = escondeBlock this.folderMstr = folderMstr this.renderOb = drawItem this.totalHeight = totalHeight this.blockStartHTML = blockStartHTML this.blockEndHTML = blockEndHTML this.getID = getID this.forceOpeningOfAncestorFolders = forceOpeningOfAncestorFolders}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/10ba7e2a5c2d92957e2e2af83e2170a8ccca3aea/ftiens4.js/clean/trunk/cacti/include/treeview/ftiens4.js
this.folderMstr = folderMstr this.renderOb = drawItem this.totalHeight = totalHeight
this.folderMstr = folderMstr this.renderOb = drawItem this.totalHeight = totalHeight
function Item(itemDescription, itemLink, target) // Constructor { // constant data this.desc = itemDescription this.link = itemLink this.id = -1 //initialized in initalize() this.navObj = 0 //initialized in render() this.iconImg = 0 //initialized in render() this.iconSrc = ICONPATH + "ftv2doc.gif" this.isRendered = 0 this.isLastNode = false this.level = 0 this.leftSideCoded = "" this.nChildren = 0 this.target = target this.parentObj = null this.maySelect=true this.prependHTML = "" // methods this.initialize = initializeItem this.createIndex = createEntryIndex this.escondeBlock = escondeBlock this.esconde = escondeBlock this.folderMstr = folderMstr this.renderOb = drawItem this.totalHeight = totalHeight this.blockStartHTML = blockStartHTML this.blockEndHTML = blockEndHTML this.getID = getID this.forceOpeningOfAncestorFolders = forceOpeningOfAncestorFolders}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/10ba7e2a5c2d92957e2e2af83e2170a8ccca3aea/ftiens4.js/clean/trunk/cacti/include/treeview/ftiens4.js
if (e.originalTarget.tagName == "IMG") {
if (targetName == "img") {
function izOnMouseClick(e){ if (e.which == nsIPrefBranchObj.getIntPref("triggerbutton")){ if (haveZoomed){ e.preventDefault(); e.stopPropagation(); } else { // contextmenu on mousedown if (contextDisabled) { document.popupNode = e.originalTarget; izContext.showPopup(izContext.ownerDocument.documentElement, e.clientX, e.clientY, "context", "bottomleft", "topleft"); } } cancelScrollZoom(); gPanelContainer().removeEventListener("click",izOnMouseClick,true); } if (mousedown){ // Invoke varios mouse function when mouse is over an image only if (e.originalTarget.tagName == "IMG") { switch(e.which){ // Middle mouse button pressed while right button down, reset image case nsIPrefBranchObj.getIntPref("imageresetbutton"): e.preventDefault(); e.stopPropagation(); haveZoomed = true; var oizImage = new izImage(e.originalTarget); oizImage.setZoom(100); reportStatus(oizImage); break; // Left mouse button pressed while right button down, fit image to screen case nsIPrefBranchObj.getIntPref("imagefitbutton"): e.preventDefault(); e.stopPropagation(); haveZoomed = true; var oizImage = new izImage(e.originalTarget); oizImage.fit(nsIPrefBranchObj.getBoolPref("autocenter")); reportStatus(oizImage); break; } } else { gPanelContainer().removeEventListener("click",izOnMouseClick,true); } }}
4558 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4558/19910fb9609514aac4dbb1e795e4f5a3c662f6b6/overlay.js/clean/source/chrome/content/overlay.js
(mousedown) &&
function izOnMouseDown(e){ if ( (e.originalTarget.tagName == "IMG") && ( (e.which == nsIPrefBranchObj.getIntPref("imageresetbutton")) || (e.which == nsIPrefBranchObj.getIntPref("imagefitbutton")) || (e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) ) ) { e.preventDefault(); e.stopPropagation(); } // prepare for the mouse functions on a right click when user option is true if ((e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) && (nsIPrefBranchObj.getBoolPref("usescroll"))) { if ((e.originalTarget.tagName == "IMG") || (nsIPrefBranchObj.getIntPref("scrollZoomMode") != 2)) { if (nsIPrefBranchObj.getIntPref("scrollZoomMode") == 2) { currentImage = e.originalTarget; } if (navigator.platform != "Win32" && navigator.platform != "OS/2") { addEventListener("popupshowing", disableContextMenu, true); } haveZoomed = false; gPanelContainer().addEventListener("DOMMouseScroll",ScrollImage,true); gPanelContainer().addEventListener("mouseup",izOnMouseUp,true); gPanelContainer().addEventListener("click",izOnMouseClick,true); gPanelContainer().addEventListener("mouseout", izOnMouseOut, true); currentURL = window._content.document.location; mousedown = true; } }}
4558 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4558/a7a987151acad5fe4d2e4b33d1a75749d901f2f7/overlay.js/clean/source/chrome/content/overlay.js
(e.originalTarget.tagName == "IMG") &&
(targetName == "img") &&
function izOnMouseDown(e){ if ( (e.originalTarget.tagName == "IMG") && (mousedown) && ( (e.which == nsIPrefBranchObj.getIntPref("imageresetbutton")) || (e.which == nsIPrefBranchObj.getIntPref("imagefitbutton")) || (e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) ) ) { e.preventDefault(); e.stopPropagation(); } // prepare for the mouse functions on a right click when user option is true if ((e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) && (nsIPrefBranchObj.getBoolPref("usescroll"))) { if ((e.originalTarget.tagName == "IMG") || (nsIPrefBranchObj.getIntPref("scrollZoomMode") != 2)) { if (nsIPrefBranchObj.getIntPref("scrollZoomMode") == 2) { currentImage = e.originalTarget; } if (navigator.platform != "Win32" && navigator.platform != "OS/2") { addEventListener("popupshowing", disableContextMenu, true); } haveZoomed = false; gPanelContainer().addEventListener("DOMMouseScroll",ScrollImage,true); gPanelContainer().addEventListener("mouseup",izOnMouseUp,true); gPanelContainer().addEventListener("click",izOnMouseClick,true); gPanelContainer().addEventListener("mouseout", izOnMouseOut, true); currentURL = window._content.document.location; mousedown = true; } }}
4558 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4558/19910fb9609514aac4dbb1e795e4f5a3c662f6b6/overlay.js/clean/source/chrome/content/overlay.js
if ((e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) && (nsIPrefBranchObj.getBoolPref("usescroll")))
if ((e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) && (nsIPrefBranchObj.getBoolPref("usescroll")) && !(targetName == "embed" || targetName == "object"))
function izOnMouseDown(e){ if ( (e.originalTarget.tagName == "IMG") && (mousedown) && ( (e.which == nsIPrefBranchObj.getIntPref("imageresetbutton")) || (e.which == nsIPrefBranchObj.getIntPref("imagefitbutton")) || (e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) ) ) { e.preventDefault(); e.stopPropagation(); } // prepare for the mouse functions on a right click when user option is true if ((e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) && (nsIPrefBranchObj.getBoolPref("usescroll"))) { if ((e.originalTarget.tagName == "IMG") || (nsIPrefBranchObj.getIntPref("scrollZoomMode") != 2)) { if (nsIPrefBranchObj.getIntPref("scrollZoomMode") == 2) { currentImage = e.originalTarget; } if (navigator.platform != "Win32" && navigator.platform != "OS/2") { addEventListener("popupshowing", disableContextMenu, true); } haveZoomed = false; gPanelContainer().addEventListener("DOMMouseScroll",ScrollImage,true); gPanelContainer().addEventListener("mouseup",izOnMouseUp,true); gPanelContainer().addEventListener("click",izOnMouseClick,true); gPanelContainer().addEventListener("mouseout", izOnMouseOut, true); currentURL = window._content.document.location; mousedown = true; } }}
4558 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4558/19910fb9609514aac4dbb1e795e4f5a3c662f6b6/overlay.js/clean/source/chrome/content/overlay.js
if ((e.originalTarget.tagName == "IMG") || (nsIPrefBranchObj.getIntPref("scrollZoomMode") != 2))
if ((targetName == "img") || (nsIPrefBranchObj.getIntPref("scrollZoomMode") != 2))
function izOnMouseDown(e){ if ( (e.originalTarget.tagName == "IMG") && (mousedown) && ( (e.which == nsIPrefBranchObj.getIntPref("imageresetbutton")) || (e.which == nsIPrefBranchObj.getIntPref("imagefitbutton")) || (e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) ) ) { e.preventDefault(); e.stopPropagation(); } // prepare for the mouse functions on a right click when user option is true if ((e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) && (nsIPrefBranchObj.getBoolPref("usescroll"))) { if ((e.originalTarget.tagName == "IMG") || (nsIPrefBranchObj.getIntPref("scrollZoomMode") != 2)) { if (nsIPrefBranchObj.getIntPref("scrollZoomMode") == 2) { currentImage = e.originalTarget; } if (navigator.platform != "Win32" && navigator.platform != "OS/2") { addEventListener("popupshowing", disableContextMenu, true); } haveZoomed = false; gPanelContainer().addEventListener("DOMMouseScroll",ScrollImage,true); gPanelContainer().addEventListener("mouseup",izOnMouseUp,true); gPanelContainer().addEventListener("click",izOnMouseClick,true); gPanelContainer().addEventListener("mouseout", izOnMouseOut, true); currentURL = window._content.document.location; mousedown = true; } }}
4558 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4558/19910fb9609514aac4dbb1e795e4f5a3c662f6b6/overlay.js/clean/source/chrome/content/overlay.js
if ( (e.originalTarget.tagName == "IMG") && ( (e.which == nsIPrefBranchObj.getIntPref("imageresetbutton")) || (e.which == nsIPrefBranchObj.getIntPref("imagefitbutton")) || (e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) ) ) { e.preventDefault(); e.stopPropagation(); }
function izOnMouseDown(e){ // prepare for the mouse functions on a right click when user option is true if ((e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) && (nsIPrefBranchObj.getBoolPref("usescroll"))) { if ((e.originalTarget.tagName == "IMG") || (nsIPrefBranchObj.getIntPref("scrollZoomMode") != 2)) { if (nsIPrefBranchObj.getIntPref("scrollZoomMode") == 2) { currentImage = e.originalTarget; } if (navigator.platform != "Win32" && navigator.platform != "OS/2") { addEventListener("popupshowing", disableContextMenu, true); } haveZoomed = false; gPanelContainer().addEventListener("DOMMouseScroll",ScrollImage,true); gPanelContainer().addEventListener("mouseup",izOnMouseUp,true); gPanelContainer().addEventListener("click",izOnMouseClick,true); gPanelContainer().addEventListener("mouseout", izOnMouseOut, true); currentURL = window._content.document.location; mousedown = true; } }}
4558 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4558/e489e354b1213409655801966c81d316ac463134/overlay.js/buggy/source/chrome/content/overlay.js
if ((e.originalTarget.tagName.toUpperCase() == "HTML") || (e.originalTarget.tagName == "xul:browser")){
if ((e.originalTarget.tagName.toLowerCase() == "html") || (e.originalTarget.tagName.toLowerCase() == "xul:browser")){
function izOnMouseOut(e) { if ((e.originalTarget.tagName.toUpperCase() == "HTML") || (e.originalTarget.tagName == "xul:browser")){ cancelScrollZoom(); }}
4558 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4558/19910fb9609514aac4dbb1e795e4f5a3c662f6b6/overlay.js/clean/source/chrome/content/overlay.js
for (var i in obj) { t += document.js_dump(obj[i], name +'.'+i);
var hold = new Array(); for (var i in obj) hold[hold.length] = i; hold = hold.sort(); for (var i = 0; i < hold.length; i++) { var n = hold[i]; t += document.js_dump(obj[n], name +'.'+n);
document.js_dump = function (obj, name) { var t = ''; if (! name) { name = '[obj]'; t = 'Dump:\n' } if (typeof(obj) != 'object') return name+'='+obj+'\n'; for (var i in obj) { t += document.js_dump(obj[i], name +'.'+i); } return t;}
5443 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5443/075c87d7e596ff9093a32e27ab10d55e69e0175d/yaml_load.js/buggy/lib/CGI/Ex/yaml_load.js
this.db.owner = this;
function jsAC(input, db) { var ac = this; this.input = input; this.db = db; this.db.owner = this; this.input.onkeydown = function (event) { return ac.onkeydown(this, event); }; this.input.onkeyup = function (event) { ac.onkeyup(this, event) }; this.input.onblur = function () { ac.hidePopup() }; this.popup = document.createElement('div'); this.popup.id = 'autocomplete'; this.popup.owner = this;};
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/91f666b522995f2f9233e717c7ecfbeb36714425/autocomplete.js/clean/misc/autocomplete.js
removeStyleClass(currentRow, "current");
currentRow.removeStyleClass("current");
function jumpToLine(sourceId, line){ var script = scripts[sourceId]; if (line <= 0 || !script) return; var file = files[script.file]; if (!file) return; if (currentFile != script.file) loadFile(script.file, true); if (currentRow) removeStyleClass(currentRow, "current"); if (!file.element) return; if (line > file.element.firstChild.childNodes.length) return; currentRow = file.element.firstChild.childNodes.item(line - 1); if (!currentRow) return; addStyleClass(currentRow, "current"); var sourcesDiv = document.getElementById("sources"); var sourcesDocument = document.getElementById("sources").contentDocument; var parent = sourcesDocument.body; var offset = totalOffsetTop(currentRow, parent); if (offset < (parent.scrollTop + 20) || offset > (parent.scrollTop + sourcesDiv.clientHeight - 20)) parent.scrollTop = totalOffsetTop(currentRow, parent) - (sourcesDiv.clientHeight / 2) + 10;}
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(currentRow, "current");
currentRow.addStyleClass("current");
function jumpToLine(sourceId, line){ var script = scripts[sourceId]; if (line <= 0 || !script) return; var file = files[script.file]; if (!file) return; if (currentFile != script.file) loadFile(script.file, true); if (currentRow) removeStyleClass(currentRow, "current"); if (!file.element) return; if (line > file.element.firstChild.childNodes.length) return; currentRow = file.element.firstChild.childNodes.item(line - 1); if (!currentRow) return; addStyleClass(currentRow, "current"); var sourcesDiv = document.getElementById("sources"); var sourcesDocument = document.getElementById("sources").contentDocument; var parent = sourcesDocument.body; var offset = totalOffsetTop(currentRow, parent); if (offset < (parent.scrollTop + 20) || offset > (parent.scrollTop + sourcesDiv.clientHeight - 20)) parent.scrollTop = totalOffsetTop(currentRow, parent) - (sourcesDiv.clientHeight / 2) + 10;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/c6fb57961d884bd88831658bfe27448abb9cbe1c/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/railties/html/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/railties/html/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/railties/html/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/railties/html/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/railties/html/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/buggy/railties/html/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
K: function(x) {return x}
K: function(x) { return x }
K: function(x) {return x}
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
if(!event.keyCode==Event.KEY_ESC) return;
if(event.keyCode!=Event.KEY_ESC) return;
keyPress: function(event) { if(!event.keyCode==Event.KEY_ESC) return; this.finishDrag(event, false); Event.stop(event); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/92c30244fa7c786c0241221cdb41edddc9df5baa/dragdrop.js/buggy/src/dragdrop.js
LOG.error(e); if (e instanceof TypeError) { throw e; } this.commandError(e.message);
this.handleCommandError(e);
this.kickoffNextCommandExecution = function() { var command; if (starting_up == true) { command = this.firstCommand(); starting_up = false; } else { command = this.nextCommand(); } if (!command) return TEST_FINISHED; // Make the current row blue this.commandStarted(command); LOG.debug("Executing: |" + command.command + " | " + command.target + " | " + command.value + " |"); var result; try { var handler = this.commandFactory.getCommandHandler(command.command); if(handler == null) { throw new Error("Unknown command: '" + command.command + "'"); } command.target = selenium.preprocessParameter(command.target); command.value = selenium.preprocessParameter(command.value); result = handler.execute(selenium, command); } catch (e) { LOG.error(e); // TODO: only throw typed errors from commands so that we can perform better error handling // to differentiate between expected command errors and unexpected javascript errors. if (e instanceof TypeError) { // Not a command error. throw e; } this.commandError(e.message); return TEST_FINISHED; } // Record the result so that we can continue the execution using window.setTimeout() this.lastCommandResult = result; if (result.processState == SELENIUM_PROCESS_WAIT) { this.waitForCondition = function() { return selenium.browserbot.isNewPageLoaded(); }; } if (this.waitForCondition) { this.pollUntilConditionIsTrue(); } else { // Continue processing this.continueCommandExecutionWithDelay(); } // Test is not finished. return TEST_CONTINUE; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/8204ef0e684c368119f602100144e47b160a21e4/selenium-executionloop.js/buggy/code/javascript/selenium-executionloop.js
LOG.error(e); if (e instanceof TypeError) { throw e; } this.commandError(e.message);
this.handleCommandError(e);
this.kickoffNextCommandExecution = function() { var command; if (starting_up == true) { command = this.firstCommand(); starting_up = false; } else { command = this.nextCommand(); } if (!command) return TEST_FINISHED; // Make the current row blue this.commandStarted(command); LOG.debug("Executing: |" + command.command + " | " + command.target + " | " + command.value + " |"); var result; try { var handler = this.commandFactory.getCommandHandler(command.command); if(handler == null) { throw new Error("Unknown command: '" + command.command + "'"); } command.target = selenium.preprocessParameter(command.target); command.value = selenium.preprocessParameter(command.value); result = handler.execute(selenium, command); } catch (e) { LOG.error(e); // TODO: only throw typed errors from commands so that we can perform better error handling // to differentiate between expected command errors and unexpected javascript errors. if (e instanceof TypeError) { // Not a command error. throw e; } this.commandError(e.message); return TEST_FINISHED; } // Record the result so that we can continue the execution using window.setTimeout() this.lastCommandResult = result; if (result.processState == SELENIUM_PROCESS_WAIT) { this.waitForCondition = function() { return selenium.browserbot.isNewPageLoaded(); }; } if (this.waitForCondition) { this.pollUntilConditionIsTrue(); } else { // Continue processing this.continueCommandExecutionWithDelay(); } // Test is not finished. return TEST_CONTINUE; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/39b01a6737325d783eaf2dbc5a138c33adb4c379/selenium-executionloop.js/buggy/code/javascript/selenium-executionloop.js
LOG.error(e);
this.kickoffNextCommandExecution = function() { var command; if (starting_up == true) { command = this.firstCommand(); starting_up = false; } else { command = this.nextCommand(); } if (!command) return TEST_FINISHED; // Make the current row blue this.commandStarted(command); var result; try { var handler = this.commandFactory.getCommandHandler(command.command); if(handler == null) { throw new Error("Unknown command"); } result = handler.execute(selenium, command); } catch (e) { // TODO: only throw typed errors from commands so that we can perform better error handling // to differentiate between expected command errors and unexpected javascript errors. if (e instanceof TypeError) { // Not a command error. throw e; } this.commandError(e.message); return TEST_FINISHED; } // Record the result so that we can continue the execution using window.setTimeout() this.lastCommandResult = result; if (result.processState == SELENIUM_PROCESS_WAIT) { executionContext.waitForPageLoad(this,selenium); } else { // Continue processing this.continueCommandExecutionWithDelay(); } // Test is not finished. return TEST_CONTINUE; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/206618ad911a34b103c562be4c5fe12b255d9234/selenium-executionloop.js/clean/code/javascript/selenium-executionloop.js
LOG.error(e);
this.kickoffNextCommandExecution = function() { var command; if (starting_up == true) { command = this.firstCommand(); starting_up = false; } else { command = this.nextCommand(); } if (!command) return TEST_FINISHED; // Make the current row blue this.commandStarted(command); var result; try { var handler = this.commandFactory.getCommandHandler(command.command); if(handler == null) { throw new Error("Unknown command"); } result = handler.execute(selenium, command); } catch (e) { // TODO: only throw typed errors from commands so that we can perform better error handling // to differentiate between expected command errors and unexpected javascript errors. if (e instanceof TypeError) { // Not a command error. throw e; } this.commandError(e.message); return TEST_FINISHED; } // Record the result so that we can continue the execution using window.setTimeout() this.lastCommandResult = result; if (result.processState == SELENIUM_PROCESS_WAIT) { executionContext.waitForPageLoad(this,selenium); } else { // Continue processing this.continueCommandExecutionWithDelay(); } // Test is not finished. return TEST_CONTINUE; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/7234564e1d39cfe9defd5bae65af3eeee2fe7720/selenium-executionloop.js/buggy/code/javascript/selenium-executionloop.js
throw new Error("Unknown command");
throw new Error("Unknown command: '" + command.command + "'");
this.kickoffNextCommandExecution = function() { var command; if (starting_up == true) { command = this.firstCommand(); starting_up = false; } else { command = this.nextCommand(); } if (!command) return TEST_FINISHED; // Make the current row blue this.commandStarted(command); LOG.debug("Executing: |" + command.command + " | " + command.target + " | " + command.value + " |"); var result; try { var handler = this.commandFactory.getCommandHandler(command.command); if(handler == null) { throw new Error("Unknown command"); } result = handler.execute(selenium, command); } catch (e) { LOG.error(e); // TODO: only throw typed errors from commands so that we can perform better error handling // to differentiate between expected command errors and unexpected javascript errors. if (e instanceof TypeError) { // Not a command error. throw e; } this.commandError(e.message); return TEST_FINISHED; } // Record the result so that we can continue the execution using window.setTimeout() this.lastCommandResult = result; if (result.processState == SELENIUM_PROCESS_WAIT) { executionContext.waitForPageLoad(this,selenium); } else { // Continue processing this.continueCommandExecutionWithDelay(); } // Test is not finished. return TEST_CONTINUE; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/2bd978b38b5ad13301837ff357bbfa9974d6b04d/selenium-executionloop.js/clean/code/javascript/selenium-executionloop.js
throw new Error("Unknown command");
throw new Error("Unknown command: '" + command.command + "'");
this.kickoffNextCommandExecution = function() { var command; if (starting_up == true) { command = this.firstCommand(); starting_up = false; } else { command = this.nextCommand(); } if (!command) return TEST_FINISHED; // Make the current row blue this.commandStarted(command); LOG.debug("Executing: |" + command.command + " | " + command.target + " | " + command.value + " |"); var result; try { var handler = this.commandFactory.getCommandHandler(command.command); if(handler == null) { throw new Error("Unknown command"); } result = handler.execute(selenium, command); } catch (e) { LOG.error(e); // TODO: only throw typed errors from commands so that we can perform better error handling // to differentiate between expected command errors and unexpected javascript errors. if (e instanceof TypeError) { // Not a command error. throw e; } this.commandError(e.message); return TEST_FINISHED; } // Record the result so that we can continue the execution using window.setTimeout() this.lastCommandResult = result; if (result.processState == SELENIUM_PROCESS_WAIT) { executionContext.waitForPageLoad(this,selenium); } else { // Continue processing this.continueCommandExecutionWithDelay(); } // Test is not finished. return TEST_CONTINUE; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/21ef9f54e709009da0732f5cb859a711e2443a4b/selenium-executionloop.js/clean/code/javascript/selenium-executionloop.js
return document.frames['myiframe'];
return frames['myiframe'];
function KonquerorIFrameExecutionContext() { this.loadFrame = function() { return document.getElementById('myiframe'); }; this.open = function(target,frame) { frame.src = target; }; this.getContentWindow = function(frame) { return document.frames['myiframe']; }; this.waitForPageLoad = function(testloop,selenium) { // Since we're waiting for page to reload, we can't continue command execution // directly, we need use a page load listener. // TODO there is a potential race condition by attaching a load listener after // the command has completed execution. selenium.callOnNextPageLoad(function() {eval("testLoop.continueCommandExecutionWithDelay()");}); };}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/d37d4b80feee636ddcefc43715dc989856b6a454/selenium-executioncontext.js/buggy/code/javascript/selenium-executioncontext.js
function KonquerorIFrameExecutionContext() { this.loadFrame = function() { return document.getElementById('myiframe'); }; this.open = function(target,frame) { frame.src = "about:blank"; frame.src = target; }; this.getContentWindow = function(frame) { return frames['myiframe']; }; this.waitForPageLoad = function(testloop,selenium) { // Since we're waiting for page to reload, we can't continue command execution // directly, we need use a page load listener. // TODO there is a potential race condition by attaching a load listener after // the command has completed execution. selenium.callOnNextPageLoad(function() {eval("testLoop.continueCommandExecutionWithDelay()");}); };}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ac4efccf701bb88b2f2dabb39561d143db47f4f4/selenium-executioncontext.js/buggy/code/javascript/selenium-executioncontext.js
function KonquerorIFrameExecutionContext() { this.loadFrame = function() { return document.getElementById('myiframe'); }; this.open = function(target,frame) { frame.src = "about:blank"; frame.src = target; }; this.getContentWindow = function(frame) { return frames['myiframe']; }; this.waitForPageLoad = function(testloop,selenium) { // Since we're waiting for page to reload, we can't continue command execution // directly, we need use a page load listener. // TODO there is a potential race condition by attaching a load listener after // the command has completed execution. selenium.callOnNextPageLoad(function() {eval("testLoop.continueCommandExecutionWithDelay()");}); };}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/0ef8059ea5239941a969400fc6871b71f8b4125d/selenium-executioncontext.js/clean/code/javascript/selenium-executioncontext.js
return document.frames['myiframe'];
return frames['myiframe'];
function KonquerorIFrameExecutionContext() { this.loadFrame = function() { return document.getElementById('myiframe'); }; this.open = function(target,frame) { frame.src = target; }; this.getContentWindow = function(frame) { return document.frames['myiframe']; }; this.waitForPageLoad = function(testloop,selenium) { // Since we're waiting for page to reload, we can't continue command execution // directly, we need use a page load listener. // TODO there is a potential race condition by attaching a load listener after // the command has completed execution. selenium.callOnNextPageLoad(function() {eval("testLoop.continueCommandExecutionWithDelay()");}); };}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/042fdcdd45dcb7908c8704f8f1f41df6dd5f6091/selenium-executioncontext.js/clean/code/javascript/selenium-executioncontext.js
KonquerorPageBot = function(pageWindow) {
var KonquerorPageBot = function(pageWindow) {
KonquerorPageBot = function(pageWindow) { PageBot.call(this, pageWindow);};
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
}
},
last: function() { return this[this.length - 1]; }
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/railties/html/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/railties/html/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/railties/html/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/railties/html/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/railties/html/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
}
},
last: function() { return this[this.length - 1]; }
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js