rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 13
136k
| meta
stringlengths 132
347
|
---|---|---|---|
{ | Object.extend({ | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
} | }, this.options.ajaxOptions) | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
{ | Object.extend({ | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
} | }, this.options.ajaxOptions) | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
{ | Object.extend({ | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
} | }, this.options.ajaxOptions) | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
{ | Object.extend({ | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
} | }, this.options.ajaxOptions) | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
{ | Object.extend({ | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/railties/html/javascripts/controls.js |
} | }, this.options.ajaxOptions) | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/railties/html/javascripts/controls.js |
{ | Object.extend({ | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
} | }, this.options.ajaxOptions) | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
{ | Object.extend({ | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
} | }, this.options.ajaxOptions) | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
{ | Object.extend({ | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
} | }, this.options.ajaxOptions) | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js |
{ | Object.extend({ | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
} | }, this.options.ajaxOptions) | loadExternalText: function() { new Ajax.Request( this.options.loadTextURL, { asynchronous: true, onComplete: this.onLoadedExternalText.bind(this) } ); }, | 107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
file.source = file.source.replace(/\r\n|\r/, "\n"); | function loadFile(fileIndex, manageNavLists){ var file = files[fileIndex]; if (!file) return; if (currentFile != -1 && files[currentFile] && files[currentFile].element) files[currentFile].element.style.display = "none"; if (!file.loaded) { file.source = file.source.replace(/\r\n|\r/, "\n"); // normalize line endings var sourcesDocument = document.getElementById("sources").contentDocument; var sourcesDiv = sourcesDocument.body; var sourceDiv = sourcesDocument.createElement("div"); sourceDiv.id = "file" + fileIndex; sourcesDiv.appendChild(sourceDiv); file.element = sourceDiv; var table = sourcesDocument.createElement("table"); sourceDiv.appendChild(table); var lines = syntaxHighlight(file.source).split("\n"); for( var i = 0; i < lines.length; i++ ) { var tr = sourcesDocument.createElement("tr"); var td = sourcesDocument.createElement("td"); td.className = "gutter"; td.title = (i + 1); td.addEventListener("click", addBreakPoint, true); td.addEventListener("mousedown", moveBreakPoint, true); tr.appendChild(td); td = sourcesDocument.createElement("td"); td.className = "source"; td.innerHTML = (lines[i].length ? lines[i] : " "); tr.appendChild(td); table.appendChild(tr); } file.loaded = true; } file.element.style.display = null; document.getElementById("filesPopupButtonContent").innerText = (file.url ? file.url : "(unknown script)"); var filesSelect = document.getElementById("files"); for (var i = 0; i < filesSelect.childNodes.length; i++) { if (filesSelect.childNodes[i].value == fileIndex) { filesSelect.selectedIndex = i; break; } } if (manageNavLists) { nextFiles = new Array(); if (currentFile != -1) previousFiles.push(currentFile); } document.getElementById("navFileLeftButton").disabled = (previousFiles.length == 0); document.getElementById("navFileRightButton").disabled = (nextFiles.length == 0); currentFile = fileIndex;} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/8be225243033923a5ffc0a35c881d10a75651403/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js |
|
var lines = syntaxHighlight(file.source).split("\n"); | var normalizedSource = file.source.replace(/\r\n|\r/, "\n"); var lines = syntaxHighlight(normalizedSource).split("\n"); | function loadFile(fileIndex, manageNavLists){ var file = files[fileIndex]; if (!file) return; if (currentFile != -1 && files[currentFile] && files[currentFile].element) files[currentFile].element.style.display = "none"; if (!file.loaded) { file.source = file.source.replace(/\r\n|\r/, "\n"); // normalize line endings var sourcesDocument = document.getElementById("sources").contentDocument; var sourcesDiv = sourcesDocument.body; var sourceDiv = sourcesDocument.createElement("div"); sourceDiv.id = "file" + fileIndex; sourcesDiv.appendChild(sourceDiv); file.element = sourceDiv; var table = sourcesDocument.createElement("table"); sourceDiv.appendChild(table); var lines = syntaxHighlight(file.source).split("\n"); for( var i = 0; i < lines.length; i++ ) { var tr = sourcesDocument.createElement("tr"); var td = sourcesDocument.createElement("td"); td.className = "gutter"; td.title = (i + 1); td.addEventListener("click", addBreakPoint, true); td.addEventListener("mousedown", moveBreakPoint, true); tr.appendChild(td); td = sourcesDocument.createElement("td"); td.className = "source"; td.innerHTML = (lines[i].length ? lines[i] : " "); tr.appendChild(td); table.appendChild(tr); } file.loaded = true; } file.element.style.display = null; document.getElementById("filesPopupButtonContent").innerText = (file.url ? file.url : "(unknown script)"); var filesSelect = document.getElementById("files"); for (var i = 0; i < filesSelect.childNodes.length; i++) { if (filesSelect.childNodes[i].value == fileIndex) { filesSelect.selectedIndex = i; break; } } if (manageNavLists) { nextFiles = new Array(); if (currentFile != -1) previousFiles.push(currentFile); } document.getElementById("navFileLeftButton").disabled = (previousFiles.length == 0); document.getElementById("navFileRightButton").disabled = (nextFiles.length == 0); currentFile = fileIndex;} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/8be225243033923a5ffc0a35c881d10a75651403/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js |
file.lines = file.source.split(/[\n\r]/); | file.source = file.source.replace(/\r\n|\r/, "\n"); | function loadFile(fileIndex, manageNavLists){ var file = files[fileIndex]; if (!file) return; if (currentFile != -1 && files[currentFile] && files[currentFile].element) files[currentFile].element.style.display = "none"; if (!file.loaded) { file.lines = file.source.split(/[\n\r]/); var sourcesDocument = document.getElementById("sources").contentDocument; var sourcesDiv = sourcesDocument.body; var sourceDiv = sourcesDocument.createElement("div"); sourceDiv.id = "file" + fileIndex; sourcesDiv.appendChild(sourceDiv); file.element = sourceDiv; var table = sourcesDocument.createElement("table"); sourceDiv.appendChild(table); var lines = syntaxHighlight(file.source).split(/[\n\r]/); for( var i = 0; i < lines.length; i++ ) { var tr = sourcesDocument.createElement("tr"); var td = sourcesDocument.createElement("td"); td.className = "gutter"; td.title = (i + 1); td.addEventListener("click", addBreakPoint, true); td.addEventListener("mousedown", moveBreakPoint, true); tr.appendChild(td); td = sourcesDocument.createElement("td"); td.className = "source"; td.innerHTML = lines[i]; tr.appendChild(td); table.appendChild(tr); } file.loaded = true; } file.element.style.display = null; document.getElementById("filesPopupButtonContent").innerText = (file.url ? file.url : "(unknown script)"); var filesSelect = document.getElementById("files"); for (var i = 0; i < filesSelect.childNodes.length; i++) { if (filesSelect.childNodes[i].value == fileIndex) { filesSelect.selectedIndex = i; break; } } if (manageNavLists) { nextFiles = new Array(); if (currentFile != -1) previousFiles.push(currentFile); } document.getElementById("navFileLeftButton").disabled = (previousFiles.length == 0); document.getElementById("navFileRightButton").disabled = (nextFiles.length == 0); currentFile = fileIndex;} | 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 lines = syntaxHighlight(file.source).split(/[\n\r]/); | var lines = syntaxHighlight(file.source).split("\n"); | function loadFile(fileIndex, manageNavLists){ var file = files[fileIndex]; if (!file) return; if (currentFile != -1 && files[currentFile] && files[currentFile].element) files[currentFile].element.style.display = "none"; if (!file.loaded) { file.lines = file.source.split(/[\n\r]/); var sourcesDocument = document.getElementById("sources").contentDocument; var sourcesDiv = sourcesDocument.body; var sourceDiv = sourcesDocument.createElement("div"); sourceDiv.id = "file" + fileIndex; sourcesDiv.appendChild(sourceDiv); file.element = sourceDiv; var table = sourcesDocument.createElement("table"); sourceDiv.appendChild(table); var lines = syntaxHighlight(file.source).split(/[\n\r]/); for( var i = 0; i < lines.length; i++ ) { var tr = sourcesDocument.createElement("tr"); var td = sourcesDocument.createElement("td"); td.className = "gutter"; td.title = (i + 1); td.addEventListener("click", addBreakPoint, true); td.addEventListener("mousedown", moveBreakPoint, true); tr.appendChild(td); td = sourcesDocument.createElement("td"); td.className = "source"; td.innerHTML = lines[i]; tr.appendChild(td); table.appendChild(tr); } file.loaded = true; } file.element.style.display = null; document.getElementById("filesPopupButtonContent").innerText = (file.url ? file.url : "(unknown script)"); var filesSelect = document.getElementById("files"); for (var i = 0; i < filesSelect.childNodes.length; i++) { if (filesSelect.childNodes[i].value == fileIndex) { filesSelect.selectedIndex = i; break; } } if (manageNavLists) { nextFiles = new Array(); if (currentFile != -1) previousFiles.push(currentFile); } document.getElementById("navFileLeftButton").disabled = (previousFiles.length == 0); document.getElementById("navFileRightButton").disabled = (nextFiles.length == 0); currentFile = fileIndex;} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/98c1cf6f6c32738969ddb4ace85168e572624ea4/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js |
td.innerHTML = lines[i]; | td.innerHTML = (lines[i].length ? lines[i] : " "); | function loadFile(fileIndex, manageNavLists){ var file = files[fileIndex]; if (!file) return; if (currentFile != -1 && files[currentFile] && files[currentFile].element) files[currentFile].element.style.display = "none"; if (!file.loaded) { file.lines = file.source.split(/[\n\r]/); var sourcesDocument = document.getElementById("sources").contentDocument; var sourcesDiv = sourcesDocument.body; var sourceDiv = sourcesDocument.createElement("div"); sourceDiv.id = "file" + fileIndex; sourcesDiv.appendChild(sourceDiv); file.element = sourceDiv; var table = sourcesDocument.createElement("table"); sourceDiv.appendChild(table); var lines = syntaxHighlight(file.source).split(/[\n\r]/); for( var i = 0; i < lines.length; i++ ) { var tr = sourcesDocument.createElement("tr"); var td = sourcesDocument.createElement("td"); td.className = "gutter"; td.title = (i + 1); td.addEventListener("click", addBreakPoint, true); td.addEventListener("mousedown", moveBreakPoint, true); tr.appendChild(td); td = sourcesDocument.createElement("td"); td.className = "source"; td.innerHTML = lines[i]; tr.appendChild(td); table.appendChild(tr); } file.loaded = true; } file.element.style.display = null; document.getElementById("filesPopupButtonContent").innerText = (file.url ? file.url : "(unknown script)"); var filesSelect = document.getElementById("files"); for (var i = 0; i < filesSelect.childNodes.length; i++) { if (filesSelect.childNodes[i].value == fileIndex) { filesSelect.selectedIndex = i; break; } } if (manageNavLists) { nextFiles = new Array(); if (currentFile != -1) previousFiles.push(currentFile); } document.getElementById("navFileLeftButton").disabled = (previousFiles.length == 0); document.getElementById("navFileRightButton").disabled = (nextFiles.length == 0); currentFile = fileIndex;} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/98c1cf6f6c32738969ddb4ace85168e572624ea4/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js |
td.addEventListener("click", addBreakPoint, true); | td.addEventListener("click", breakpointAction, true); td.addEventListener("dblclick", toggleBreakpointEditor, true); | function loadFile(fileIndex, manageNavLists){ var file = files[fileIndex]; if (!file) return; if (currentFile != -1 && files[currentFile] && files[currentFile].element) files[currentFile].element.style.display = "none"; if (!file.loaded) { var sourcesDocument = document.getElementById("sources").contentDocument; var sourcesDiv = sourcesDocument.body; var sourceDiv = sourcesDocument.createElement("div"); sourceDiv.id = "file" + fileIndex; sourcesDiv.appendChild(sourceDiv); file.element = sourceDiv; var table = sourcesDocument.createElement("table"); sourceDiv.appendChild(table); var normalizedSource = file.source.replace(/\r\n|\r/, "\n"); // normalize line endings var lines = syntaxHighlight(normalizedSource).split("\n"); for( var i = 0; i < lines.length; i++ ) { var tr = sourcesDocument.createElement("tr"); var td = sourcesDocument.createElement("td"); td.className = "gutter"; td.title = (i + 1); td.addEventListener("click", addBreakPoint, true); td.addEventListener("mousedown", moveBreakPoint, true); tr.appendChild(td); td = sourcesDocument.createElement("td"); td.className = "source"; td.innerHTML = (lines[i].length ? lines[i] : " "); tr.appendChild(td); table.appendChild(tr); } file.loaded = true; } file.element.style.display = null; document.getElementById("filesPopupButtonContent").innerText = (file.url ? file.url : "(unknown script)"); var filesSelect = document.getElementById("files"); for (var i = 0; i < filesSelect.childNodes.length; i++) { if (filesSelect.childNodes[i].value == fileIndex) { filesSelect.selectedIndex = i; break; } } if (manageNavLists) { nextFiles = new Array(); if (currentFile != -1) previousFiles.push(currentFile); } document.getElementById("navFileLeftButton").disabled = (previousFiles.length == 0); document.getElementById("navFileRightButton").disabled = (nextFiles.length == 0); currentFile = fileIndex;} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/75f7b1c539a192b149c18bc6570c80690c5510b0/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js |
td.addEventListener("mousedown", moveBreakPoint, true); | function loadFile(fileIndex, manageNavLists){ var file = files[fileIndex]; if (!file) return; if (currentFile != -1 && files[currentFile] && files[currentFile].element) files[currentFile].element.style.display = "none"; if (!file.loaded) { file.lines = file.source.split(/[\n\r]/); var sourcesDocument = document.getElementById("sources").contentDocument; var sourcesDiv = sourcesDocument.body; var sourceDiv = sourcesDocument.createElement("div"); sourceDiv.id = "file" + fileIndex; sourcesDiv.appendChild(sourceDiv); file.element = sourceDiv; var table = sourcesDocument.createElement("table"); sourceDiv.appendChild(table); var lines = syntaxHighlight(file.source).split(/[\n\r]/); for( var i = 0; i < lines.length; i++ ) { var tr = sourcesDocument.createElement("tr"); var td = sourcesDocument.createElement("td"); td.className = "gutter"; td.title = (i + 1); td.addEventListener("click", addBreakPoint, true); tr.appendChild(td); td = sourcesDocument.createElement("td"); td.className = "source"; td.innerHTML = lines[i]; tr.appendChild(td); table.appendChild(tr); } file.loaded = true; } file.element.style.display = null; document.getElementById("filesPopupButtonContent").innerText = (file.url ? file.url : "(unknown script)"); var filesSelect = document.getElementById("files"); for (var i = 0; i < filesSelect.childNodes.length; i++) { if (filesSelect.childNodes[i].value == fileIndex) { filesSelect.selectedIndex = i; break; } } if (manageNavLists) { nextFiles = new Array(); if (currentFile != -1) previousFiles.push(currentFile); } document.getElementById("navFileLeftButton").disabled = (previousFiles.length == 0); document.getElementById("navFileRightButton").disabled = (nextFiles.length == 0); currentFile = fileIndex;} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/cec985fe3422ae25641cb2f2142ea53984dd44cc/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js |
|
var lines = syntaxHighlight(normalizedSource).split("\n"); | var lines = syntaxHighlight(normalizedSource, file).split("\n"); | function loadFile(fileIndex, manageNavLists){ var file = files[fileIndex]; if (!file) return; if (currentFile != -1 && files[currentFile] && files[currentFile].element) files[currentFile].element.style.display = "none"; if (!file.loaded) { var sourcesDocument = document.getElementById("sources").contentDocument; var sourcesDiv = sourcesDocument.body; var sourceDiv = sourcesDocument.createElement("div"); sourceDiv.id = "file" + fileIndex; sourcesDiv.appendChild(sourceDiv); file.element = sourceDiv; var table = sourcesDocument.createElement("table"); sourceDiv.appendChild(table); var normalizedSource = file.source.replace(/\r\n|\r/, "\n"); // normalize line endings var lines = syntaxHighlight(normalizedSource).split("\n"); for( var i = 0; i < lines.length; i++ ) { var tr = sourcesDocument.createElement("tr"); var td = sourcesDocument.createElement("td"); td.className = "gutter"; td.title = (i + 1); td.addEventListener("click", breakpointAction, true); td.addEventListener("dblclick", function() { toggleBreakpointEditorOnLine(event.target.title); }, true); td.addEventListener("mousedown", moveBreakPoint, true); tr.appendChild(td); td = sourcesDocument.createElement("td"); td.className = "source"; td.innerHTML = (lines[i].length ? lines[i] : " "); tr.appendChild(td); table.appendChild(tr); } file.loaded = true; } file.element.style.display = null; document.getElementById("filesPopupButtonContent").innerText = (file.url ? file.url : "(unknown script)"); var filesSelect = document.getElementById("files"); for (var i = 0; i < filesSelect.childNodes.length; i++) { if (filesSelect.childNodes[i].value == fileIndex) { filesSelect.selectedIndex = i; break; } } if (manageNavLists) { nextFiles = new Array(); if (currentFile != -1) previousFiles.push(currentFile); } document.getElementById("navFileLeftButton").disabled = (previousFiles.length == 0); document.getElementById("navFileRightButton").disabled = (nextFiles.length == 0); currentFile = fileIndex;} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/c56884e5a43fe74269eaf5418680045527c971e3/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js |
function loadFile(fileIndex, manageNavLists){ var file = files[fileIndex]; if (!file) return; if (currentFile != -1 && files[currentFile] && files[currentFile].element) files[currentFile].element.style.display = "none"; if (!file.loaded) { var sourcesDocument = document.getElementById("sources").contentDocument; var sourcesDiv = sourcesDocument.body; var sourceDiv = sourcesDocument.createElement("div"); sourceDiv.id = "file" + fileIndex; sourcesDiv.appendChild(sourceDiv); file.element = sourceDiv; var table = sourcesDocument.createElement("table"); sourceDiv.appendChild(table); var normalizedSource = file.source.replace(/\r\n|\r/, "\n"); // normalize line endings var lines = syntaxHighlight(normalizedSource).split("\n"); for( var i = 0; i < lines.length; i++ ) { var tr = sourcesDocument.createElement("tr"); var td = sourcesDocument.createElement("td"); td.className = "gutter"; td.title = (i + 1); td.addEventListener("click", breakpointAction, true); td.addEventListener("dblclick", function() { toggleBreakpointEditorOnLine(event.target.title); }, true); td.addEventListener("mousedown", moveBreakPoint, true); tr.appendChild(td); td = sourcesDocument.createElement("td"); td.className = "source"; td.innerHTML = (lines[i].length ? lines[i] : " "); tr.appendChild(td); table.appendChild(tr); } file.loaded = true; } file.element.style.display = null; document.getElementById("filesPopupButtonContent").innerText = (file.url ? file.url : "(unknown script)"); var filesSelect = document.getElementById("files"); for (var i = 0; i < filesSelect.childNodes.length; i++) { if (filesSelect.childNodes[i].value == fileIndex) { filesSelect.selectedIndex = i; break; } } if (manageNavLists) { nextFiles = new Array(); if (currentFile != -1) previousFiles.push(currentFile); } document.getElementById("navFileLeftButton").disabled = (previousFiles.length == 0); document.getElementById("navFileRightButton").disabled = (nextFiles.length == 0); currentFile = fileIndex;} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/c56884e5a43fe74269eaf5418680045527c971e3/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js |
||
if (file.functionNames.length > 0) { var functionSelect = document.getElementById("functions"); var functionOption = document.createElement("option"); document.getElementById("functionNamesPopup").style.display = "inline"; switchFunction(0, true); functionSelect.removeChildren(); functionOption.value = null; functionOption.text = "< no selected symbol >"; functionSelect.appendChild(functionOption); for (var i = 0; i < file.functionNames.length; i++) { functionOption = document.createElement("option"); functionOption.value = fileIndex + "-" + (i+1); functionOption.text = file.functionNames[i] + "()"; functionSelect.appendChild(functionOption); } } else document.getElementById("functionNamesPopup").style.display = "none"; | function loadFile(fileIndex, manageNavLists){ var file = files[fileIndex]; if (!file) return; if (currentFile != -1 && files[currentFile] && files[currentFile].element) files[currentFile].element.style.display = "none"; if (!file.loaded) { var sourcesDocument = document.getElementById("sources").contentDocument; var sourcesDiv = sourcesDocument.body; var sourceDiv = sourcesDocument.createElement("div"); sourceDiv.id = "file" + fileIndex; sourcesDiv.appendChild(sourceDiv); file.element = sourceDiv; var table = sourcesDocument.createElement("table"); sourceDiv.appendChild(table); var normalizedSource = file.source.replace(/\r\n|\r/, "\n"); // normalize line endings var lines = syntaxHighlight(normalizedSource).split("\n"); for( var i = 0; i < lines.length; i++ ) { var tr = sourcesDocument.createElement("tr"); var td = sourcesDocument.createElement("td"); td.className = "gutter"; td.title = (i + 1); td.addEventListener("click", breakpointAction, true); td.addEventListener("dblclick", function() { toggleBreakpointEditorOnLine(event.target.title); }, true); td.addEventListener("mousedown", moveBreakPoint, true); tr.appendChild(td); td = sourcesDocument.createElement("td"); td.className = "source"; td.innerHTML = (lines[i].length ? lines[i] : " "); tr.appendChild(td); table.appendChild(tr); } file.loaded = true; } file.element.style.display = null; document.getElementById("filesPopupButtonContent").innerText = (file.url ? file.url : "(unknown script)"); var filesSelect = document.getElementById("files"); for (var i = 0; i < filesSelect.childNodes.length; i++) { if (filesSelect.childNodes[i].value == fileIndex) { filesSelect.selectedIndex = i; break; } } if (manageNavLists) { nextFiles = new Array(); if (currentFile != -1) previousFiles.push(currentFile); } document.getElementById("navFileLeftButton").disabled = (previousFiles.length == 0); document.getElementById("navFileRightButton").disabled = (nextFiles.length == 0); currentFile = fileIndex;} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/c56884e5a43fe74269eaf5418680045527c971e3/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js |
|
function loadFile(fileIndex, manageNavLists){ var file = files[fileIndex]; if (!file) return; if (currentFile != -1 && files[currentFile] && files[currentFile].element) files[currentFile].element.style.display = "none"; if (!file.loaded) { var sourcesDocument = document.getElementById("sources").contentDocument; var sourcesDiv = sourcesDocument.body; var sourceDiv = sourcesDocument.createElement("div"); sourceDiv.id = "file" + fileIndex; sourcesDiv.appendChild(sourceDiv); file.element = sourceDiv; var table = sourcesDocument.createElement("table"); sourceDiv.appendChild(table); var normalizedSource = file.source.replace(/\r\n|\r/, "\n"); // normalize line endings var lines = syntaxHighlight(normalizedSource).split("\n"); for( var i = 0; i < lines.length; i++ ) { var tr = sourcesDocument.createElement("tr"); var td = sourcesDocument.createElement("td"); td.className = "gutter"; td.title = (i + 1); td.addEventListener("click", addBreakPoint, true); td.addEventListener("mousedown", moveBreakPoint, true); tr.appendChild(td); td = sourcesDocument.createElement("td"); td.className = "source"; td.innerHTML = (lines[i].length ? lines[i] : " "); tr.appendChild(td); table.appendChild(tr); } file.loaded = true; } file.element.style.display = null; document.getElementById("filesPopupButtonContent").innerText = (file.url ? file.url : "(unknown script)"); var filesSelect = document.getElementById("files"); for (var i = 0; i < filesSelect.childNodes.length; i++) { if (filesSelect.childNodes[i].value == fileIndex) { filesSelect.selectedIndex = i; break; } } if (manageNavLists) { nextFiles = new Array(); if (currentFile != -1) previousFiles.push(currentFile); } document.getElementById("navFileLeftButton").disabled = (previousFiles.length == 0); document.getElementById("navFileRightButton").disabled = (nextFiles.length == 0); currentFile = fileIndex;} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/4a711a57393ecf8acab910e9285ee831da207239/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js |
||
file.element.style.display = null; | file.element.style.removeProperty("display"); | function loadFile(fileIndex, manageNavLists){ var file = files[fileIndex]; if (!file) return; if (currentFile != -1 && files[currentFile] && files[currentFile].element) files[currentFile].element.style.display = "none"; if (!file.loaded) { var sourcesDocument = document.getElementById("sources").contentDocument; var sourcesDiv = sourcesDocument.body; var sourceDiv = sourcesDocument.createElement("div"); sourceDiv.id = "file" + fileIndex; sourcesDiv.appendChild(sourceDiv); file.element = sourceDiv; var table = sourcesDocument.createElement("table"); sourceDiv.appendChild(table); var normalizedSource = file.source.replace(/\r\n|\r/, "\n"); // normalize line endings var lines = syntaxHighlight(normalizedSource, file).split("\n"); for( var i = 0; i < lines.length; i++ ) { var tr = sourcesDocument.createElement("tr"); var td = sourcesDocument.createElement("td"); td.className = "gutter"; td.title = (i + 1); td.addEventListener("click", breakpointAction, true); td.addEventListener("dblclick", function() { toggleBreakpointEditorOnLine(event.target.title); }, true); td.addEventListener("mousedown", moveBreakPoint, true); tr.appendChild(td); td = sourcesDocument.createElement("td"); td.className = "source"; td.innerHTML = (lines[i].length ? lines[i] : " "); tr.appendChild(td); table.appendChild(tr); } file.loaded = true; } file.element.style.display = null; document.getElementById("filesPopupButtonContent").innerText = (file.url ? file.url : "(unknown script)"); var filesSelect = document.getElementById("files"); for (var i = 0; i < filesSelect.childNodes.length; i++) { if (filesSelect.childNodes[i].value == fileIndex) { filesSelect.selectedIndex = i; break; } } // Populate the function names pop-up if (file.functionNames.length > 0) { var functionSelect = document.getElementById("functions"); var functionOption = document.createElement("option"); document.getElementById("functionNamesPopup").style.display = "inline"; switchFunction(0, true); functionSelect.removeChildren(); functionOption.value = null; functionOption.text = "< no selected symbol >"; functionSelect.appendChild(functionOption); for (var i = 0; i < file.functionNames.length; i++) { functionOption = document.createElement("option"); functionOption.value = fileIndex + "-" + (i+1); functionOption.text = file.functionNames[i] + "()"; functionSelect.appendChild(functionOption); } } else document.getElementById("functionNamesPopup").style.display = "none"; if (manageNavLists) { nextFiles = new Array(); if (currentFile != -1) previousFiles.push(currentFile); } document.getElementById("navFileLeftButton").disabled = (previousFiles.length == 0); document.getElementById("navFileRightButton").disabled = (nextFiles.length == 0); currentFile = fileIndex;} | 10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/698fe24365317fd75bda13d558b5e551b352b9c6/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js |
td.addEventListener("dblclick", toggleBreakpointEditor, true); | td.addEventListener("dblclick", function() { toggleBreakpointEditorOnLine(event.target.title); }, true); | function loadFile(fileIndex, manageNavLists){ var file = files[fileIndex]; if (!file) return; if (currentFile != -1 && files[currentFile] && files[currentFile].element) files[currentFile].element.style.display = "none"; if (!file.loaded) { var sourcesDocument = document.getElementById("sources").contentDocument; var sourcesDiv = sourcesDocument.body; var sourceDiv = sourcesDocument.createElement("div"); sourceDiv.id = "file" + fileIndex; sourcesDiv.appendChild(sourceDiv); file.element = sourceDiv; var table = sourcesDocument.createElement("table"); sourceDiv.appendChild(table); var normalizedSource = file.source.replace(/\r\n|\r/, "\n"); // normalize line endings var lines = syntaxHighlight(normalizedSource).split("\n"); for( var i = 0; i < lines.length; i++ ) { var tr = sourcesDocument.createElement("tr"); var td = sourcesDocument.createElement("td"); td.className = "gutter"; td.title = (i + 1); td.addEventListener("click", breakpointAction, true); td.addEventListener("dblclick", toggleBreakpointEditor, true); td.addEventListener("mousedown", moveBreakPoint, true); tr.appendChild(td); td = sourcesDocument.createElement("td"); td.className = "source"; td.innerHTML = (lines[i].length ? lines[i] : " "); tr.appendChild(td); table.appendChild(tr); } file.loaded = true; } file.element.style.display = null; document.getElementById("filesPopupButtonContent").innerText = (file.url ? file.url : "(unknown script)"); var filesSelect = document.getElementById("files"); for (var i = 0; i < filesSelect.childNodes.length; i++) { if (filesSelect.childNodes[i].value == fileIndex) { filesSelect.selectedIndex = i; break; } } if (manageNavLists) { nextFiles = new Array(); if (currentFile != -1) previousFiles.push(currentFile); } document.getElementById("navFileLeftButton").disabled = (previousFiles.length == 0); document.getElementById("navFileRightButton").disabled = (nextFiles.length == 0); currentFile = fileIndex;} | 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 termsOfUse = this.div.lastChild; this.div.removeChild(termsOfUse); this.pane.appendChild(termsOfUse); var poweredBy = this.div.lastChild; this.div.removeChild(poweredBy); this.pane.appendChild(poweredBy); | loadGMap:function() { //has gmaps library has been loaded? try { // create GMap, hide nav controls this.gmap = new GMap2( this.div ); this.gmap.disableDragging(); // this causes the GMap to set itself to Map's center/zoom this.moveTo(); } catch (e) { this.loadWarningMessage(); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/a1ca8ebd0865d1e3d7fb7686469cb7408c957232/Google.js/clean/lib/OpenLayers/Layer/Google.js |
|
loadGMap:function() { //has gmaps library has been loaded? try { // create GMap, hide nav controls this.gmap = new GMap2( this.div ); this.gmap.disableDragging(); // this causes the GMap to set itself to Map's center/zoom this.moveTo(); } catch (e) { this.loadWarningMessage(); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/a1ca8ebd0865d1e3d7fb7686469cb7408c957232/Google.js/clean/lib/OpenLayers/Layer/Google.js |
||
this.gmap = new GMap2(this.div); | this.gmap = new GMap2(this.div ); | loadGMap:function() { //has gmaps library has been loaded? try { // create GMap, hide nav controls this.gmap = new GMap2(this.div); // this causes the GMap to set itself to Map's center/zoom this.moveTo(); // catch pans and zooms from GMap GEvent.addListener(this.gmap, "moveend", this.catchPanZoom.bindAsEventListener(this)); // attach to the drag start and end and well set a flag so that // we dont get recursivity. this is because when we call setCenter(), // it calls moveTo() on all layers GEvent.addListener(this.gmap, "dragstart", this.dragStart.bindAsEventListener(this)); GEvent.addListener(this.gmap, "dragend", this.dragEnd.bindAsEventListener(this)); // catch pans and zooms from GMap GEvent.addListener(this.gmap, "drag", this.catchPanZoom.bindAsEventListener(this)); } catch (e) { this.loadWarningMessage(); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/f3a072b151fd0fb48097965647921f2ea0396651/Google.js/buggy/lib/OpenLayers/Layer/Google.js |
loadGMap:function() { //has gmaps library has been loaded? try { // create GMap, hide nav controls this.gmap = new GMap2(this.div); // this causes the GMap to set itself to Map's center/zoom this.moveTo(); // catch pans and zooms from GMap GEvent.addListener(this.gmap, "moveend", this.catchPanZoom.bindAsEventListener(this)); // attach to the drag start and end and well set a flag so that // we dont get recursivity. this is because when we call setCenter(), // it calls moveTo() on all layers GEvent.addListener(this.gmap, "dragstart", this.dragStart.bindAsEventListener(this)); GEvent.addListener(this.gmap, "dragend", this.dragEnd.bindAsEventListener(this)); // catch pans and zooms from GMap GEvent.addListener(this.gmap, "drag", this.catchPanZoom.bindAsEventListener(this)); } catch (e) { this.loadWarningMessage(); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/f3a072b151fd0fb48097965647921f2ea0396651/Google.js/buggy/lib/OpenLayers/Layer/Google.js |
||
var termsOfUse = this.div.lastChild; this.div.removeChild(termsOfUse); this.pane.appendChild(termsOfUse); var poweredBy = this.div.lastChild; this.div.removeChild(poweredBy); this.pane.appendChild(poweredBy); | loadGMap:function() { //has gmaps library has been loaded? try { // create GMap, hide nav controls this.gmap = new GMap2( this.div ); this.gmap.disableDragging(); // this causes the GMap to set itself to Map's center/zoom this.moveTo(); } catch (e) { this.loadWarningMessage(); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/a1ca8ebd0865d1e3d7fb7686469cb7408c957232/Google.js/clean/lib/OpenLayers/Layer/Google.js |
|
loadGMap:function() { //has gmaps library has been loaded? try { // create GMap, hide nav controls this.gmap = new GMap2( this.div ); this.gmap.disableDragging(); // this causes the GMap to set itself to Map's center/zoom this.moveTo(); } catch (e) { this.loadWarningMessage(); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/a1ca8ebd0865d1e3d7fb7686469cb7408c957232/Google.js/clean/lib/OpenLayers/Layer/Google.js |
||
this.gmap = new GMap2(this.div); | this.gmap = new GMap2(this.div ); | loadGMap:function() { //has gmaps library has been loaded? try { // create GMap, hide nav controls this.gmap = new GMap2(this.div); // this causes the GMap to set itself to Map's center/zoom this.moveTo(); // catch pans and zooms from GMap GEvent.addListener(this.gmap, "moveend", this.catchPanZoom.bindAsEventListener(this)); // attach to the drag start and end and well set a flag so that // we dont get recursivity. this is because when we call setCenter(), // it calls moveTo() on all layers GEvent.addListener(this.gmap, "dragstart", this.dragStart.bindAsEventListener(this)); GEvent.addListener(this.gmap, "dragend", this.dragEnd.bindAsEventListener(this)); // catch pans and zooms from GMap GEvent.addListener(this.gmap, "drag", this.catchPanZoom.bindAsEventListener(this)); } catch (e) { this.loadWarningMessage(); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f3a072b151fd0fb48097965647921f2ea0396651/Google.js/clean/lib/OpenLayers/Layer/Google.js |
loadGMap:function() { //has gmaps library has been loaded? try { // create GMap, hide nav controls this.gmap = new GMap2(this.div); // this causes the GMap to set itself to Map's center/zoom this.moveTo(); // catch pans and zooms from GMap GEvent.addListener(this.gmap, "moveend", this.catchPanZoom.bindAsEventListener(this)); // attach to the drag start and end and well set a flag so that // we dont get recursivity. this is because when we call setCenter(), // it calls moveTo() on all layers GEvent.addListener(this.gmap, "dragstart", this.dragStart.bindAsEventListener(this)); GEvent.addListener(this.gmap, "dragend", this.dragEnd.bindAsEventListener(this)); // catch pans and zooms from GMap GEvent.addListener(this.gmap, "drag", this.catchPanZoom.bindAsEventListener(this)); } catch (e) { this.loadWarningMessage(); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f3a072b151fd0fb48097965647921f2ea0396651/Google.js/clean/lib/OpenLayers/Layer/Google.js |
||
if(!file_loader) | if(!file_loader || isMacIE50) | function loadLayer(e, layer_name, src, properties, parent){ if(popups.length != 0 && popups[popups.length - 1].name == layer_name && properties.hide_2nd_click) { clearToPopup(parent); return retFromEvent(false); } clearToPopup(parent); if(isNav4) { var l = getObject(layer_name); if(!l) alert("Unknown layer '"+layer_name+"'."); l.name = layer_name; l.onload = layerLoadHandler; l.src = src; l.properties = properties; } else { if(!file_loader) file_loader = new FileLoader(layerLoadHandler); file_loader.layer_name = layer_name; file_loader.loadDocument(src); file_loader.properties = properties; } var pos = new properties.LayerPosition(new TriggerCoord(e, 0), 0, properties); shiftTo(layer_name, pos.x, pos.y); return retFromEvent(false);} | 2059 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2059/45c408fe44f30d512e079d41304b315f253f92a5/DynamicLoading.js/buggy/server/modules/tags/javascript_support/scripts/DynamicLoading.js |
file_loader.properties = properties; | function loadLayer(e, layer_name, src, properties, parent){ if(popups.length != 0 && popups[popups.length - 1].name == layer_name && properties.hide_2nd_click) { clearToPopup(parent); return retFromEvent(false); } clearToPopup(parent); if(isNav4) { var l = getObject(layer_name); if(!l) alert("Unknown layer '"+layer_name+"'."); l.name = layer_name; l.onload = layerLoadHandler; l.src = src; l.properties = properties; } else { if(!file_loader) file_loader = new FileLoader(layerLoadHandler); file_loader.layer_name = layer_name; file_loader.loadDocument(src); file_loader.properties = properties; } var pos = new properties.LayerPosition(new TriggerCoord(e, 0), 0, properties); shiftTo(layer_name, pos.x, pos.y); return retFromEvent(false);} | 2059 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2059/45c408fe44f30d512e079d41304b315f253f92a5/DynamicLoading.js/buggy/server/modules/tags/javascript_support/scripts/DynamicLoading.js |
|
return false; | return retFromEvent(false); | function loadLayer(e, layer_name, src, properties, parent){ clearToPopup(parent); if(isNav4) { var l = getObject(layer_name); l.onload = layerLoadHandler; l.src = src; l.properties = properties; } else { if(!file_loader) file_loader = new FileLoader(layerLoadHandler); file_loader.layer_name = layer_name; file_loader.loadDocument(src); file_loader.properties = properties; } var pos = new properties.LayerPosition(new TriggerCoord(e, 0), 0, properties); shiftTo(layer_name, pos.x, pos.y); return false;} | 2059 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2059/b697206d44b1757f3b25be0b02d80ba1a94399b3/DynamicLoading.js/buggy/server/modules/tags/javascript_support/scripts/DynamicLoading.js |
else popups.length--; | function loadLayer(e, layer_name, src, properties, parent){ if(popups.length != 0 && popups[popups.length - 1].name == layer_name && properties.hide_2nd_click) { clearToPopup(parent); return retFromEvent(false); } if(!properties.stay_put) clearToPopup(parent); if(isNav4) { var l = getObject(layer_name); if(!l) alert("Unknown layer '"+layer_name+"'."); l.name = layer_name; l.onload = layerLoadHandler; l.src = src; l.properties = properties; } else { if(!file_loader || isMacIE50) file_loader = new FileLoader(layerLoadHandler); file_loader.layer_name = layer_name; file_loader.properties = properties; file_loader.loadDocument(src); } var pos = new properties.LayerPosition(new TriggerCoord(e, 0), 0, properties); if(!properties.stay_put) shiftTo(layer_name, pos.x, pos.y); return retFromEvent(false);} | 2059 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2059/fa5c74b709ba928bb5fa74f84d999300300baa17/DynamicLoading.js/clean/server/modules/tags/javascript_support/scripts/DynamicLoading.js |
|
if (req.status == 200) { | if (req.status == 200 || req.status == undefined) { | function loadLayer(e, layer_name, src, properties, parent){ if(popups.length != 0 && popups[popups.length - 1].name == layer_name && properties.hide_2nd_click) { clearToPopup(parent); return retFromEvent(false); } if(!properties.stay_put) clearToPopup(parent); else if(popups.length) popups.length--; var pos = new properties.LayerPosition(new TriggerCoord(e, 0), 0, properties); if(!properties.stay_put) shiftTo(layer_name, pos.x, pos.y); // Dinosaur browsers if(isNav4) { var l = getObject(layer_name); if(!l) alert("Unknown layer '"+layer_name+"'."); l.name = layer_name; l.onload = layerLoadHandler; l.src = src; l.properties = properties; return retFromEvent(false); } // Modern DOM-based guys if (window.XMLHttpRequest || window.ActiveXObject) { var req; if (window.XMLHttpRequest) { // Use XMLHttpRequest which is implemented in Safari and Mozilla/Firefox req = new XMLHttpRequest(); } else { // Use ActiveX version for MSIE try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { req = false; } } } if (req) { // Define notification function req.onreadystatechange = function() { if (req.readyState == 4) if (req.status == 200) { var o = getObject(layer_name); o.innerHTML = req.responseText; boundPopup(layer_name); addPopup(layer_name, properties); captureMouseEvent(popupMove); show(layer_name); } } // Send async request req.open("GET", src, true); req.send(null); return retFromEvent(false); } else // Fallback to FileLoader ; } // Old implementation if(!file_loader || isMacIE50) file_loader = new FileLoader(layerLoadHandler); file_loader.layer_name = layer_name; file_loader.properties = properties; if (isSafari) file_loader.loadSafariDocument(src); else file_loader.loadDocument(src); return retFromEvent(false);} | 2059 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2059/1e74a74991099bf621b3bc91586736c30baf1e95/DynamicLoading.js/buggy/server/modules/tags/javascript_support/scripts/DynamicLoading.js |
if(isNav4) { | var pos = new properties.LayerPosition(new TriggerCoord(e, 0), 0, properties); if(!properties.stay_put) shiftTo(layer_name, pos.x, pos.y); if(isNav4) { | function loadLayer(e, layer_name, src, properties, parent){ if(popups.length != 0 && popups[popups.length - 1].name == layer_name && properties.hide_2nd_click) { clearToPopup(parent); return retFromEvent(false); } if(!properties.stay_put) clearToPopup(parent); else if(popups.length) popups.length--; if(isNav4) { var l = getObject(layer_name); if(!l) alert("Unknown layer '"+layer_name+"'."); l.name = layer_name; l.onload = layerLoadHandler; l.src = src; l.properties = properties; } else { if(!file_loader || isMacIE50) file_loader = new FileLoader(layerLoadHandler); file_loader.layer_name = layer_name; file_loader.properties = properties; if (isSafari) file_loader.loadSafariDocument(src); else file_loader.loadDocument(src); } var pos = new properties.LayerPosition(new TriggerCoord(e, 0), 0, properties); if(!properties.stay_put) shiftTo(layer_name, pos.x, pos.y); return retFromEvent(false);} | 2059 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2059/c51778e91161aeb8c5a34e76db280918b210e000/DynamicLoading.js/clean/server/modules/tags/javascript_support/scripts/DynamicLoading.js |
} else { if(!file_loader || isMacIE50) file_loader = new FileLoader(layerLoadHandler); file_loader.layer_name = layer_name; file_loader.properties = properties; if (isSafari) file_loader.loadSafariDocument(src); else file_loader.loadDocument(src); | return retFromEvent(false); | function loadLayer(e, layer_name, src, properties, parent){ if(popups.length != 0 && popups[popups.length - 1].name == layer_name && properties.hide_2nd_click) { clearToPopup(parent); return retFromEvent(false); } if(!properties.stay_put) clearToPopup(parent); else if(popups.length) popups.length--; if(isNav4) { var l = getObject(layer_name); if(!l) alert("Unknown layer '"+layer_name+"'."); l.name = layer_name; l.onload = layerLoadHandler; l.src = src; l.properties = properties; } else { if(!file_loader || isMacIE50) file_loader = new FileLoader(layerLoadHandler); file_loader.layer_name = layer_name; file_loader.properties = properties; if (isSafari) file_loader.loadSafariDocument(src); else file_loader.loadDocument(src); } var pos = new properties.LayerPosition(new TriggerCoord(e, 0), 0, properties); if(!properties.stay_put) shiftTo(layer_name, pos.x, pos.y); return retFromEvent(false);} | 2059 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2059/c51778e91161aeb8c5a34e76db280918b210e000/DynamicLoading.js/clean/server/modules/tags/javascript_support/scripts/DynamicLoading.js |
var pos = new properties.LayerPosition(new TriggerCoord(e, 0), 0, properties); if(!properties.stay_put) shiftTo(layer_name, pos.x, pos.y); | if (window.XMLHttpRequest || window.ActiveXObject) { var req; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else { try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { req = false; } } } if (req) { req.onreadystatechange = function() { if (req.readyState == 4) if (req.status == 200) { var o = getObject(layer_name); o.innerHTML = req.responseText; boundPopup(layer_name); addPopup(layer_name, properties); captureMouseEvent(popupMove); show(layer_name); } } req.open("GET", src, true); req.send(null); return retFromEvent(false); } else ; } if(!file_loader || isMacIE50) file_loader = new FileLoader(layerLoadHandler); file_loader.layer_name = layer_name; file_loader.properties = properties; if (isSafari) file_loader.loadSafariDocument(src); else file_loader.loadDocument(src); | function loadLayer(e, layer_name, src, properties, parent){ if(popups.length != 0 && popups[popups.length - 1].name == layer_name && properties.hide_2nd_click) { clearToPopup(parent); return retFromEvent(false); } if(!properties.stay_put) clearToPopup(parent); else if(popups.length) popups.length--; if(isNav4) { var l = getObject(layer_name); if(!l) alert("Unknown layer '"+layer_name+"'."); l.name = layer_name; l.onload = layerLoadHandler; l.src = src; l.properties = properties; } else { if(!file_loader || isMacIE50) file_loader = new FileLoader(layerLoadHandler); file_loader.layer_name = layer_name; file_loader.properties = properties; if (isSafari) file_loader.loadSafariDocument(src); else file_loader.loadDocument(src); } var pos = new properties.LayerPosition(new TriggerCoord(e, 0), 0, properties); if(!properties.stay_put) shiftTo(layer_name, pos.x, pos.y); return retFromEvent(false);} | 2059 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2059/c51778e91161aeb8c5a34e76db280918b210e000/DynamicLoading.js/clean/server/modules/tags/javascript_support/scripts/DynamicLoading.js |
else | else if(popups.length) | function loadLayer(e, layer_name, src, properties, parent){ if(popups.length != 0 && popups[popups.length - 1].name == layer_name && properties.hide_2nd_click) { clearToPopup(parent); return retFromEvent(false); } if(!properties.stay_put) clearToPopup(parent); else popups.length--; if(isNav4) { var l = getObject(layer_name); if(!l) alert("Unknown layer '"+layer_name+"'."); l.name = layer_name; l.onload = layerLoadHandler; l.src = src; l.properties = properties; } else { if(!file_loader || isMacIE50) file_loader = new FileLoader(layerLoadHandler); file_loader.layer_name = layer_name; file_loader.properties = properties; file_loader.loadDocument(src); } var pos = new properties.LayerPosition(new TriggerCoord(e, 0), 0, properties); if(!properties.stay_put) shiftTo(layer_name, pos.x, pos.y); return retFromEvent(false);} | 2059 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2059/64bfa04aa2ca4ead5f4b997597046183e9293a99/DynamicLoading.js/buggy/server/modules/tags/javascript_support/scripts/DynamicLoading.js |
if (node.nodeType == 3) { | if (node.nodeName.indexOf("/") > -1 || node.nodeName == "" || node.nodeName == "#document" || node.nodeName == "#document-fragment" || node.nodeName == "#cdata-section" || node.nodeName == "#xml-declaration" || node.nodeName == "#whitespace" || node.nodeName == "#significat-whitespace" ) { return; } if (node.nodeName == "#comment") { try { domParentNode.appendChild(dom.createComment(node.nodeValue)); } catch (ex) { } } else if (node.nodeType == 3) { | function loadNode(dom, domParentNode, node, helper) { if (node.nodeType == 3) { domParentNode.appendChild(dom.createTextNode(node.nodeValue)); } else { var domNode = dom.createElement(node.nodeName.toLowerCase()); if (!node.id) { node.id = node.uniqueID; } domParentNode.appendChild(domNode); loadAttributes(dom, domNode, node); var length = node.childNodes.length; for(var i = 0; i < length; i ++ ) { loadNode(dom, domNode, node.childNodes[i], helper); } node.attachEvent("onpropertychange", onPropertyChangeEventHandler); } } | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ba37cc7960d02bca9522f53a02b9ccc1fc2ac014/html-xpath-patched.js/buggy/code/javascript/html-xpath/html-xpath-patched.js |
if (node.nodeType == 3) { | if (node.nodeName.indexOf("/") > -1 || node.nodeName == "" || node.nodeName == "#document" || node.nodeName == "#document-fragment" || node.nodeName == "#cdata-section" || node.nodeName == "#xml-declaration" || node.nodeName == "#whitespace" || node.nodeName == "#significat-whitespace" ) { return; } if (node.nodeName == "#comment") { try { domParentNode.appendChild(dom.createComment(node.nodeValue)); } catch (ex) { } } else if (node.nodeType == 3) { | function loadNode(dom, domParentNode, node, helper) { if (node.nodeType == 3) { domParentNode.appendChild(dom.createTextNode(node.nodeValue)); } else { var domNode = dom.createElement(node.nodeName.toLowerCase()); if (!node.id) { node.id = node.uniqueID; } domParentNode.appendChild(domNode); loadAttributes(dom, domNode, node); var length = node.childNodes.length; for(var i = 0; i < length; i ++ ) { loadNode(dom, domNode, node.childNodes[i], helper); } node.attachEvent("onpropertychange", onPropertyChangeEventHandler); } } | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/98b1748ad58b776830e4f0917065fcb28aa24e99/html-xpath-patched.js/buggy/code/javascript/html-xpath/html-xpath-patched.js |
e.innerHTML = this.testManager.getFormat().format(this.testCase, OPTIONS, "Test Player"); | e.innerHTML = this.testManager.getDefaultFormat().format(this.testCase, "Test Player", false, true); | function loadPlayerTest(e) { e.innerHTML = this.testManager.getFormat().format(this.testCase, OPTIONS, "Test Player");} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/329f139376867a2fbc5f71fe5ca61e5663528e40/selenium-ide.js/clean/src/content/selenium-ide.js |
if (recorder.options.userExtensionsURL) { | if (editor.options.userExtensionsURL) { | function loadSeleniumCommands() { const subScriptLoader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader); var scope = new Object(); var actions = new Array(); var asserts = new Array(); var verifies = new Array(); subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/selenium-api.js', scope); if (recorder.options.userExtensionsURL) { try { subScriptLoader.loadSubScript(recorder.options.userExtensionsURL, scope); } catch (error) { this.editor.showAlert("Failed to load user-extensions.js!\nfile=" + recorder.options.userExtensionsURL + "\nerror=" + error); } } var waitActions = ['click', 'select', 'type', 'check', 'uncheck', 'fireEvent', 'goBack']; for (func in scope.Selenium.prototype) { //this.log.debug("func=" + func); if (func.match(/^do[A-Z]/)) { var action = func.substr(2,1).toLowerCase() + func.substr(3); actions.push(action); if (waitActions.indexOf(action) >= 0) { actions.push(action + "AndWait"); } } else if (func.match(/^assert.+/)) { asserts.push(func); verifies.push("verify" + func.substr(6)); } else if (func.match(/^get.+/)) { asserts.push("assert" + func.substr(3)); verifies.push("verify" + func.substr(3)); } } actions.push("pause"); actions.sort(); asserts.sort(); verifies.sort(); var allCommands = actions.concat(asserts, verifies); var array = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); for (var i = 0; i < allCommands.length; i++) { var string = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString); string.data = allCommands[i]; array.AppendElement(string); } var autocomplete = Components.classes["@mozilla.org/autocomplete/search;1?name=selenium-commands"].getService(Components.interfaces.nsISeleniumAutoCompleteSearch); autocomplete.setSeleniumCommands(array); } | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4a3a9cf68d815a1584afc61dc59fe1e423c410e1/treeView.js/clean/src/content/treeView.js |
subScriptLoader.loadSubScript(recorder.options.userExtensionsURL, scope); | subScriptLoader.loadSubScript(editor.options.userExtensionsURL, scope); | function loadSeleniumCommands() { const subScriptLoader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader); var scope = new Object(); var actions = new Array(); var asserts = new Array(); var verifies = new Array(); subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/selenium-api.js', scope); if (recorder.options.userExtensionsURL) { try { subScriptLoader.loadSubScript(recorder.options.userExtensionsURL, scope); } catch (error) { this.editor.showAlert("Failed to load user-extensions.js!\nfile=" + recorder.options.userExtensionsURL + "\nerror=" + error); } } var waitActions = ['click', 'select', 'type', 'check', 'uncheck', 'fireEvent', 'goBack']; for (func in scope.Selenium.prototype) { //this.log.debug("func=" + func); if (func.match(/^do[A-Z]/)) { var action = func.substr(2,1).toLowerCase() + func.substr(3); actions.push(action); if (waitActions.indexOf(action) >= 0) { actions.push(action + "AndWait"); } } else if (func.match(/^assert.+/)) { asserts.push(func); verifies.push("verify" + func.substr(6)); } else if (func.match(/^get.+/)) { asserts.push("assert" + func.substr(3)); verifies.push("verify" + func.substr(3)); } } actions.push("pause"); actions.sort(); asserts.sort(); verifies.sort(); var allCommands = actions.concat(asserts, verifies); var array = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); for (var i = 0; i < allCommands.length; i++) { var string = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString); string.data = allCommands[i]; array.AppendElement(string); } var autocomplete = Components.classes["@mozilla.org/autocomplete/search;1?name=selenium-commands"].getService(Components.interfaces.nsISeleniumAutoCompleteSearch); autocomplete.setSeleniumCommands(array); } | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4a3a9cf68d815a1584afc61dc59fe1e423c410e1/treeView.js/clean/src/content/treeView.js |
this.editor.showAlert("Failed to load user-extensions.js!\nfile=" + recorder.options.userExtensionsURL + "\nerror=" + error); | this.editor.showAlert("Failed to load user-extensions.js!\nfile=" + editor.options.userExtensionsURL + "\nerror=" + error); | function loadSeleniumCommands() { const subScriptLoader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader); var scope = new Object(); var actions = new Array(); var asserts = new Array(); var verifies = new Array(); subScriptLoader.loadSubScript('chrome://selenium-ide/content/selenium/selenium-api.js', scope); if (recorder.options.userExtensionsURL) { try { subScriptLoader.loadSubScript(recorder.options.userExtensionsURL, scope); } catch (error) { this.editor.showAlert("Failed to load user-extensions.js!\nfile=" + recorder.options.userExtensionsURL + "\nerror=" + error); } } var waitActions = ['click', 'select', 'type', 'check', 'uncheck', 'fireEvent', 'goBack']; for (func in scope.Selenium.prototype) { //this.log.debug("func=" + func); if (func.match(/^do[A-Z]/)) { var action = func.substr(2,1).toLowerCase() + func.substr(3); actions.push(action); if (waitActions.indexOf(action) >= 0) { actions.push(action + "AndWait"); } } else if (func.match(/^assert.+/)) { asserts.push(func); verifies.push("verify" + func.substr(6)); } else if (func.match(/^get.+/)) { asserts.push("assert" + func.substr(3)); verifies.push("verify" + func.substr(3)); } } actions.push("pause"); actions.sort(); asserts.sort(); verifies.sort(); var allCommands = actions.concat(asserts, verifies); var array = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); for (var i = 0; i < allCommands.length; i++) { var string = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString); string.data = allCommands[i]; array.AppendElement(string); } var autocomplete = Components.classes["@mozilla.org/autocomplete/search;1?name=selenium-commands"].getService(Components.interfaces.nsISeleniumAutoCompleteSearch); autocomplete.setSeleniumCommands(array); } | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4a3a9cf68d815a1584afc61dc59fe1e423c410e1/treeView.js/clean/src/content/treeView.js |
commands.push("assert" + r[2]); commands.push("verify" + r[2]); commands.push("store" + r[2]); commands.push("waitFor" + r[2]); | var base = r[2]; commands.push("assert" + base); commands.push("verify" + base); commands.push("store" + base); commands.push("waitFor" + base); var r2; if ((r = func.match(/^is(.*)Present$/))) { base = r[1]; commands.push("assert" + base + "NotPresent"); commands.push("verify" + base + "NotPresent"); } else { commands.push("assertNot" + base); commands.push("verifyNot" + base); } | function loadSeleniumCommands() { var commands = []; var nonWaitActions = ['open', 'selectWindow', 'chooseCancelOnNextConfirmation', 'answerOnNextPrompt', 'close', 'setContext', 'setTimeout']; for (func in this.editor.seleniumAPI.Selenium.prototype) { //this.log.debug("func=" + func); var r; if (func.match(/^do[A-Z]/)) { var action = func.substr(2,1).toLowerCase() + func.substr(3); commands.push(action); if (!action.match(/^waitFor/) && nonWaitActions.indexOf(action) < 0) { commands.push(action + "AndWait"); } } else if (func.match(/^assert.+/)) { commands.push(func); commands.push("verify" + func.substr(6)); } else if ((r = func.match(/^(get|is)(.+)$/))) { commands.push("assert" + r[2]); commands.push("verify" + r[2]); commands.push("store" + r[2]); commands.push("waitFor" + r[2]); } } commands.push("pause"); commands.sort(); var array = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); for (var i = 0; i < commands.length; i++) { var string = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString); string.data = commands[i]; array.AppendElement(string); } var autocomplete = Components.classes["@mozilla.org/autocomplete/search;1?name=selenium-commands"].getService(Components.interfaces.nsISeleniumAutoCompleteSearch); autocomplete.setSeleniumCommands(array); } | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4daf3794c192c7c4371d092dbf9b78809becd00f/treeView.js/buggy/src/content/treeView.js |
selenium.browserbot.baseUrl = testSuiteName; | selenium.browserbot.baseUrl = absolutify(testSuiteName, window.location.href); | loadSuiteFrame: function() { if (selenium == null) { var appWindow = this._getApplicationWindow(); try { appWindow.location; } catch (e) { // when reloading, we may be pointing at an old window (Perm Denied) setTimeout(fnBind(function() { this.loadSuiteFrame(); }, this), 50); return; } selenium = Selenium.createForWindow(appWindow); this._registerCommandHandlers(); } this.controlPanel.setHighlightOption(); var testSuiteName = this.controlPanel.getTestSuiteName(); var self = this; if (testSuiteName) { suiteFrame.load(testSuiteName, function() {setTimeout(fnBind(self._onloadTestSuite, self), 50)} ); selenium.browserbot.baseUrl = testSuiteName; } if (this.controlPanel.getBaseUrl()) { selenium.browserbot.baseUrl = this.controlPanel.getBaseUrl(); } }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/221e405153e4944ac36a523560cbc57de7ae219b/selenium-testrunner.js/buggy/code/javascript/core/scripts/selenium-testrunner.js |
loadSuiteFrame: function() { if (selenium == null) { var appWindow = this._getApplicationWindow(); try { appWindow.location; } catch (e) { // when reloading, we may be pointing at an old window (Perm Denied) setTimeout(fnBind(function() { this.loadSuiteFrame(); }, this), 50); return; } selenium = Selenium.createForWindow(appWindow); this._registerCommandHandlers(); } this.controlPanel.setHighlightOption(); var testSuiteName = this.controlPanel.getTestSuiteName(); var self = this; if (testSuiteName) { suiteFrame.load(testSuiteName, function() {setTimeout(fnBind(self._onloadTestSuite, self), 50)} ); selenium.browserbot.baseUrl = testSuiteName; } if (this.controlPanel.getBaseUrl()) { selenium.browserbot.baseUrl = this.controlPanel.getBaseUrl(); } }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/221e405153e4944ac36a523560cbc57de7ae219b/selenium-testrunner.js/buggy/code/javascript/core/scripts/selenium-testrunner.js |
||
suiteFrame.load(testSuiteName, fnBind(this._onloadTestSuite, this)); | suiteFrame.load(testSuiteName, setTimeout(fnBind(this._onloadTestSuite, this), 50) ); | loadSuiteFrame: function() { if (selenium == null) { var appWindow = this._getApplicationWindow(); try { appWindow.location; } catch (e) { // when reloading, we may be pointing at an old window (Perm Denied) setTimeout(fnBind(function() { this.loadSuiteFrame(); }, this), 50); return; } selenium = Selenium.createForWindow(appWindow); this._registerCommandHandlers(); } this.controlPanel.setHighlightOption(); var testSuiteName = this.controlPanel.getTestSuiteName(); if (testSuiteName) { suiteFrame.load(testSuiteName, fnBind(this._onloadTestSuite, this)); } }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4e49af997524e8e1cf0583eb35623468fc15a5c5/selenium-testrunner.js/buggy/code/javascript/core/scripts/selenium-testrunner.js |
selenium.browserbot.baseUrl = testSuiteName; } if (this.controlPanel.getBaseUrl()) { selenium.browserbot.baseUrl = this.controlPanel.getBaseUrl(); | loadSuiteFrame: function() { if (selenium == null) { var appWindow = this._getApplicationWindow(); try { appWindow.location; } catch (e) { // when reloading, we may be pointing at an old window (Perm Denied) setTimeout(fnBind(function() { this.loadSuiteFrame(); }, this), 50); return; } selenium = Selenium.createForWindow(appWindow); this._registerCommandHandlers(); } this.controlPanel.setHighlightOption(); var testSuiteName = this.controlPanel.getTestSuiteName(); var self = this; if (testSuiteName) { suiteFrame.load(testSuiteName, function() {setTimeout(fnBind(self._onloadTestSuite, self), 50)} ); } }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/eee8eb9db54254414e988389d2f3f2f744e0550d/selenium-testrunner.js/clean/code/javascript/core/scripts/selenium-testrunner.js |
|
suiteFrame.load(testSuiteName, this._onloadTestSuite.bind(this)); | suiteFrame.load(testSuiteName, fnBind(this._onloadTestSuite, this)); | loadSuiteFrame: function() { if (selenium == null) { selenium = Selenium.createForWindow(this._getApplicationWindow()); this._registerCommandHandlers(); } this.controlPanel.setHighlightOption(); var testSuiteName = this.controlPanel.getTestSuiteName(); if (testSuiteName) { suiteFrame.load(testSuiteName, this._onloadTestSuite.bind(this)); } }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/697a29d268d2448c4391184afe752f6497773118/selenium-testrunner.js/buggy/code/javascript/core/scripts/selenium-testrunner.js |
selenium = Selenium.createForWindow(this._getApplicationWindow()); | var appWindow = this._getApplicationWindow(); try { appWindow.location; } catch (e) { setTimeout(fnBind(function() { this.loadSuiteFrame(); }, this), 500); return; } selenium = Selenium.createForWindow(appWindow); | loadSuiteFrame: function() { if (selenium == null) { selenium = Selenium.createForWindow(this._getApplicationWindow()); this._registerCommandHandlers(); } this.controlPanel.setHighlightOption(); var testSuiteName = this.controlPanel.getTestSuiteName(); if (testSuiteName) { suiteFrame.load(testSuiteName, fnBind(this._onloadTestSuite, this)); } }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/5d32068cf0753d8bc81840f71780a2a1d5dd0666/selenium-testrunner.js/buggy/code/javascript/core/scripts/selenium-testrunner.js |
alert(testSuiteName); | function loadSuiteFrame(executionContext) { var testAppFrame = executionContext.loadFrame(); browserbot = new BrowserBot(testAppFrame,executionContext); selenium = new Selenium(browserbot); registerCommandHandlers(); document.getElementById("modeRun").onclick = setRunInterval; document.getElementById('modeWalk').onclick = setRunInterval; document.getElementById('modeStep').onclick = setRunInterval; document.getElementById('continueTest').onclick = continueCurrentTest; var testSuiteName = getQueryParameter("test"); if (testSuiteName) { addLoadListener(getSuiteFrame(), loadTestFrame); getSuiteFrame().src = testSuiteName; } else { loadTestFrame(); }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/6d4aa94e112defb27f106a24e430e01cc4952c66/selenium-fitrunner.js/buggy/code/javascript/selenium-fitrunner.js |
|
alert(testSuiteName); | function loadSuiteFrame(executionContext) { var testAppFrame = executionContext.loadFrame(); browserbot = new BrowserBot(testAppFrame,executionContext); selenium = new Selenium(browserbot); registerCommandHandlers(); document.getElementById("modeRun").onclick = setRunInterval; document.getElementById('modeWalk').onclick = setRunInterval; document.getElementById('modeStep').onclick = setRunInterval; document.getElementById('continueTest').onclick = continueCurrentTest; var testSuiteName = getQueryParameter("test"); if (testSuiteName) { addLoadListener(getSuiteFrame(), loadTestFrame); getSuiteFrame().src = testSuiteName; } else { loadTestFrame(); }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/82d3bd336c2d37c7bb69a10173a81168a9021b4b/selenium-fitrunner.js/buggy/code/javascript/selenium-fitrunner.js |
|
document.getElementById("modeRun").onclick = setRunInterval; document.getElementById('modeWalk').onclick = setRunInterval; document.getElementById('modeStep').onclick = setRunInterval; | function loadSuiteFrame(){ browserbot = new BrowserBot(document.getElementById('myiframe')); selenium = new Selenium(browserbot); registerCommandHandlers() testSuiteName = getQueryStringTestName(); if( testSuiteName != "" ) { addLoadListener(getSuiteFrame(), loadTestFrame); getSuiteFrame().src = testSuiteName; } else loadTestFrame();} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/fb964683f6b8a8b9685278ec658185a696675c5d/selenium-fitrunner.js/clean/javascript/selenium-fitrunner.js |
|
document.getElementById("modeRun").onclick = setRunInterval; document.getElementById('modeWalk').onclick = setRunInterval; document.getElementById('modeStep').onclick = setRunInterval; | function loadSuiteFrame(){ browserbot = new BrowserBot(document.getElementById('myiframe')); selenium = new Selenium(browserbot); registerCommandHandlers() testSuiteName = getQueryStringTestName(); if( testSuiteName != "" ) { addLoadListener(getSuiteFrame(), loadTestFrame); getSuiteFrame().src = testSuiteName; } else loadTestFrame();} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/cd39a743a89031815105f82085130d1c1edc9115/selenium-fitrunner.js/buggy/javascript/selenium-fitrunner.js |
|
testAppFrame.src = "http: | function loadSuiteFrame() { var testAppFrame = document.getElementById('myiframe'); browserbot = new BrowserBot(testAppFrame); selenium = new Selenium(browserbot); registerCommandHandlers() document.getElementById("modeRun").onclick = setRunInterval; document.getElementById('modeWalk').onclick = setRunInterval; document.getElementById('modeStep').onclick = setRunInterval; document.getElementById('continueTest').onclick = continueCurrentTest; testSuiteName = getQueryStringTestName(); if( testSuiteName != "" ) { addLoadListener(getSuiteFrame(), loadTestFrame); getSuiteFrame().src = testSuiteName; } else { loadTestFrame(); } testAppFrame.src = "http://selenium.thoughtworks.com";} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/3db67eee843da547b53ea92fd232c4e601af7d2b/selenium-fitrunner.js/buggy/code/javascript/selenium-fitrunner.js |
|
testAppFrame.src = "http: | function loadSuiteFrame() { var testAppFrame = document.getElementById('myiframe'); browserbot = new BrowserBot(testAppFrame); selenium = new Selenium(browserbot); registerCommandHandlers() document.getElementById("modeRun").onclick = setRunInterval; document.getElementById('modeWalk').onclick = setRunInterval; document.getElementById('modeStep').onclick = setRunInterval; document.getElementById('continueTest').onclick = continueCurrentTest; testSuiteName = getQueryStringTestName(); if( testSuiteName != "" ) { addLoadListener(getSuiteFrame(), loadTestFrame); getSuiteFrame().src = testSuiteName; } else { loadTestFrame(); } testAppFrame.src = "http://selenium.thoughtworks.com";} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/a4c8f1b0d68126bcb22cfdf2976bdf8e3c6be48a/selenium-fitrunner.js/buggy/code/javascript/selenium-fitrunner.js |
|
_req.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT"); | function loadSyncURL(_url) { var _req; if (window.XMLHttpRequest) { _req = new XMLHttpRequest(); _req.open("GET", _url, false); _req.send(null); } else if (window.ActiveXObject) { _req = new ActiveXObject("Microsoft.XMLHTTP"); if(_req) { _req.open("GET", _url, false); _req.send(); } } else alert("Kein Browser-Support fr XMLHttpRequest"); if (_req.readyState == 4 && _req.status == 200) return _req.responseText; else return "";} | 6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/55ab6302c12b1c45de5e34dcc75c97cb2d797046/Y_Baselib.js/buggy/tuxbox/neutrino/daemons/nhttpd/nhttpd-y/Y_Baselib.js |
|
loadTestCase: function(onloadFunction) { this.htmlTestSuite.currentRowInSuite = this.trElement.rowIndex - 1; // If the row has a stored results table, use that var resultsFromPreviousRun = this.trElement.cells[1]; if (resultsFromPreviousRun) { // this.testFrame.restoreTestCase(resultsFromPreviousRun.innerHTML); var testBody = this.testFrame.getDocument().body; testBody.innerHTML = resultsFromPreviousRun.innerHTML; testFrame.setCurrentTestCase(); if (onloadFunction) { onloadFunction(); } } else { this.testFrame.load(this.link.href, onloadFunction); } }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/0d4583cab1c3d430e4148028de3ee38ed6596330/selenium-testrunner.js/clean/code/javascript/core/scripts/selenium-testrunner.js |
||
testFrame.setCurrentTestCase(); | this.testFrame._onload(); | loadTestCase: function(onloadFunction) { this.htmlTestSuite.currentRowInSuite = this.trElement.rowIndex - 1; // If the row has a stored results table, use that var resultsFromPreviousRun = this.trElement.cells[1]; if (resultsFromPreviousRun) { // this.testFrame.restoreTestCase(resultsFromPreviousRun.innerHTML); var testBody = this.testFrame.getDocument().body; testBody.innerHTML = resultsFromPreviousRun.innerHTML; testFrame.setCurrentTestCase(); if (onloadFunction) { onloadFunction(); } } else { this.testFrame.load(this.link.href, onloadFunction); } }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/0d4583cab1c3d430e4148028de3ee38ed6596330/selenium-testrunner.js/clean/code/javascript/core/scripts/selenium-testrunner.js |
this.testFrame.load(this.link.href, onloadFunction); | this.testFrame.load(this.link.href, onloadFunction); | loadTestCase: function(onloadFunction) { this.htmlTestSuite.currentRowInSuite = this.trElement.rowIndex - 1; // If the row has a stored results table, use that var resultsFromPreviousRun = this.trElement.cells[1]; if (resultsFromPreviousRun) { // this.testFrame.restoreTestCase(resultsFromPreviousRun.innerHTML); var testBody = this.testFrame.getDocument().body; testBody.innerHTML = resultsFromPreviousRun.innerHTML; testFrame.setCurrentTestCase(); if (onloadFunction) { onloadFunction(); } } else { this.testFrame.load(this.link.href, onloadFunction); } }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4a13708832fb94f5dabb5031da6bcea0b88eeb5f/selenium-testrunner.js/clean/code/javascript/core/scripts/selenium-testrunner.js |
this.testFrame.load(this.link.href, onloadFunction); | this.testFrame.load(this.link.href, onloadFunction); | loadTestCase: function(onloadFunction) { this.htmlTestSuite.currentRowInSuite = this.trElement.rowIndex - 1; // If the row has a stored results table, use that var resultsFromPreviousRun = this.trElement.cells[1]; if (resultsFromPreviousRun) { // this.testFrame.restoreTestCase(resultsFromPreviousRun.innerHTML); var testBody = this.testFrame.getDocument().body; testBody.innerHTML = resultsFromPreviousRun.innerHTML; testFrame.setCurrentTestCase(); if (onloadFunction) { onloadFunction(); } } else { this.testFrame.load(this.link.href, onloadFunction); } }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/bdf50299ec90235355e5c177afdd0f378929ba91/selenium-testrunner.js/buggy/code/javascript/core/scripts/selenium-testrunner.js |
this.testFrame._onload(); | this.testFrame._onLoad(); | loadTestCase: function(onloadFunction) { this.htmlTestSuite.currentRowInSuite = this.trElement.rowIndex - 1; // If the row has a stored results table, use that var resultsFromPreviousRun = this.trElement.cells[1]; if (resultsFromPreviousRun) { // todo: delegate to TestFrame, e.g. // this.testFrame.restoreTestCase(resultsFromPreviousRun.innerHTML); var testBody = this.testFrame.getDocument().body; testBody.innerHTML = resultsFromPreviousRun.innerHTML; this.testFrame._onload(); if (onloadFunction) { onloadFunction(); } } else { this.testFrame.load(this.link.href, onloadFunction); } }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/b1d9c51226999faea2accee12c5d2765a6cc17f5/selenium-testrunner.js/clean/code/javascript/core/scripts/selenium-testrunner.js |
if (testCase = this.testManager.load()) { | if ((testCase = this.testManager.load()) != null) { | function loadTestCase() { log.debug("loadTestCase"); try { var testCase = null; if (testCase = this.testManager.load()) { this.setTestCase(testCase); this.view.refresh(); //document.getElementById("filename").value = this.testCase.filename; //document.title = this.testCase.filename + " - " + DEFAULT_TITLE; updateTitle(); } } catch (error) { alert(error); }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ae43ff5885225e76724cc49197a3c6f8e78c2e19/selenium-ide.js/clean/src/content/selenium-ide.js |
if (!params) { params=""; } params += "&cachehack=" + new Date().getTime(); | OpenLayers.loadURL = function(uri, params, caller, onComplete, onFailure) { if (OpenLayers.ProxyHost && uri.startsWith("http")) { uri = OpenLayers.ProxyHost + escape(uri); if (!params) { params=""; } params += "&cachehack=" + new Date().getTime(); } var success = (onComplete) ? onComplete.bind(caller) : OpenLayers.nullHandler; var failure = (onFailure) ? onFailure.bind(caller) : OpenLayers.nullHandler; // from prototype.js new Ajax.Request(uri, { method: 'get', parameters: params, onComplete: success, onFailure: failure } );}; | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c92cd6d88a59f79879c73965c26269e13afa25e3/Ajax.js/clean/lib/OpenLayers/Ajax.js |
|
if (!params) { params=""; } params += "&cachehack=" + new Date().getTime(); | OpenLayers.loadURL = function(uri, params, caller, onComplete, onFailure) { if (OpenLayers.ProxyHost && uri.startsWith("http")) { uri = OpenLayers.ProxyHost + escape(uri); if (!params) { params=""; } params += "&cachehack=" + new Date().getTime(); } var success = (onComplete) ? onComplete.bind(caller) : OpenLayers.nullHandler; var failure = (onFailure) ? onFailure.bind(caller) : OpenLayers.nullHandler; // from prototype.js new Ajax.Request(uri, { method: 'get', parameters: params, onComplete: success, onFailure: failure } );}; | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c92cd6d88a59f79879c73965c26269e13afa25e3/Ajax.js/clean/lib/OpenLayers/Ajax.js |
|
this.vemap.LoadMap(); | } catch (e) { } if (this.vemap == null) { this.loadWarningMessage(); } else { try { this.vemap.LoadMap(); } catch (e) { } | loadVEMap:function() { // create div and set to same size as map var veDiv = OpenLayers.Util.createDiv(this.name); var sz = this.map.getSize(); veDiv.style.width = sz.w; veDiv.style.height = sz.h; this.div.appendChild(veDiv); try { // create VEMap, hide nav controls this.vemap = new VEMap(this.name); this.vemap.LoadMap(); this.vemap.HideDashboard(); // catch pans and zooms from VE Map this.vemap.AttachEvent("onendcontinuouspan", this.catchPanZoom.bindAsEventListener(this)); this.vemap.AttachEvent("onendzoom", this.catchPanZoom.bindAsEventListener(this)); } catch (e) { this.loadWarningMessage(); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/500cc017781808d05c5733d52c900eb0312e3da7/VirtualEarth.js/clean/lib/OpenLayers/Layer/VirtualEarth.js |
} catch (e) { this.loadWarningMessage(); | loadVEMap:function() { // create div and set to same size as map var veDiv = OpenLayers.Util.createDiv(this.name); var sz = this.map.getSize(); veDiv.style.width = sz.w; veDiv.style.height = sz.h; this.div.appendChild(veDiv); try { // create VEMap, hide nav controls this.vemap = new VEMap(this.name); this.vemap.LoadMap(); this.vemap.HideDashboard(); // catch pans and zooms from VE Map this.vemap.AttachEvent("onendcontinuouspan", this.catchPanZoom.bindAsEventListener(this)); this.vemap.AttachEvent("onendzoom", this.catchPanZoom.bindAsEventListener(this)); } catch (e) { this.loadWarningMessage(); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/500cc017781808d05c5733d52c900eb0312e3da7/VirtualEarth.js/clean/lib/OpenLayers/Layer/VirtualEarth.js |
|
this.vemap.LoadMap(); | } catch (e) { } if (this.vemap == null) { this.loadWarningMessage(); } else { try { this.vemap.LoadMap(); } catch (e) { } | loadVEMap:function() { // create div and set to same size as map var veDiv = OpenLayers.Util.createDiv(this.name); var sz = this.map.getSize(); veDiv.style.width = sz.w; veDiv.style.height = sz.h; this.div.appendChild(veDiv); try { // create VEMap, hide nav controls this.vemap = new VEMap(this.name); this.vemap.LoadMap(); this.vemap.HideDashboard(); // catch pans and zooms from VE Map this.vemap.AttachEvent("onendcontinuouspan", this.catchPanZoom.bindAsEventListener(this)); this.vemap.AttachEvent("onendzoom", this.catchPanZoom.bindAsEventListener(this)); } catch (e) { this.loadWarningMessage(); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/500cc017781808d05c5733d52c900eb0312e3da7/VirtualEarth.js/clean/lib/OpenLayers/Layer/VirtualEarth.js |
} catch (e) { this.loadWarningMessage(); | loadVEMap:function() { // create div and set to same size as map var veDiv = OpenLayers.Util.createDiv(this.name); var sz = this.map.getSize(); veDiv.style.width = sz.w; veDiv.style.height = sz.h; this.div.appendChild(veDiv); try { // create VEMap, hide nav controls this.vemap = new VEMap(this.name); this.vemap.LoadMap(); this.vemap.HideDashboard(); // catch pans and zooms from VE Map this.vemap.AttachEvent("onendcontinuouspan", this.catchPanZoom.bindAsEventListener(this)); this.vemap.AttachEvent("onendzoom", this.catchPanZoom.bindAsEventListener(this)); } catch (e) { this.loadWarningMessage(); } }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/500cc017781808d05c5733d52c900eb0312e3da7/VirtualEarth.js/clean/lib/OpenLayers/Layer/VirtualEarth.js |
|
g_req.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT"); | function loadXMLDoc(_url, _processReqChange) { if (window.XMLHttpRequest) { g_req = new XMLHttpRequest(); g_req.onreadystatechange = _processReqChange; if(g_req.overrideMimeType) { g_req.overrideMimeType('text/xml');} g_req.open("GET", _url, true); g_req.send(null); } else if (window.ActiveXObject) { g_req = new ActiveXObject("Microsoft.XMLHTTP"); if (g_req) { g_req.onreadystatechange = _processReqChange; g_req.open("GET", _url, true); g_req.send(); } } else alert("Kein Browser-Support fr XMLHttpRequest");} | 6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/55ab6302c12b1c45de5e34dcc75c97cb2d797046/Y_Baselib.js/buggy/tuxbox/neutrino/daemons/nhttpd/nhttpd-y/Y_Baselib.js |
|
this.moveTo(); | loadYMap:function() { // create div and set to same size as map var yDiv = OpenLayers.Util.createDiv(this.name); var sz = this.map.getSize(); yDiv.style.width = sz.w; yDiv.style.height = sz.h; this.div.appendChild(yDiv); // create GMap, hide nav controls this.ymap = new YMap(this.div); this.moveTo(); // catch pans and zooms from GMap var e = new YEvent(this.ymap, "endpan", catchPanZoom, this); /** // attach to the drag start and end and well set a flag so that // we dont get recursivity. this is because the events fall through // the gmaps div and into the main layer div GEvent.addListener(this.gmap, "dragstart", this.dragStart.bindAsEventListener(this)); GEvent.addListener(this.gmap, "dragend", this.dragEnd.bindAsEventListener(this)); */ }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
|
var e = new YEvent(this.ymap, "endpan", catchPanZoom, this); | YEvent.Capture(this.ymap, EventsList.endPan, this.catchPanZoom, this); | loadYMap:function() { // create div and set to same size as map var yDiv = OpenLayers.Util.createDiv(this.name); var sz = this.map.getSize(); yDiv.style.width = sz.w; yDiv.style.height = sz.h; this.div.appendChild(yDiv); // create GMap, hide nav controls this.ymap = new YMap(this.div); this.moveTo(); // catch pans and zooms from GMap var e = new YEvent(this.ymap, "endpan", catchPanZoom, this); /** // attach to the drag start and end and well set a flag so that // we dont get recursivity. this is because the events fall through // the gmaps div and into the main layer div GEvent.addListener(this.gmap, "dragstart", this.dragStart.bindAsEventListener(this)); GEvent.addListener(this.gmap, "dragend", this.dragEnd.bindAsEventListener(this)); */ }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
/** | loadYMap:function() { // create div and set to same size as map var yDiv = OpenLayers.Util.createDiv(this.name); var sz = this.map.getSize(); yDiv.style.width = sz.w; yDiv.style.height = sz.h; this.div.appendChild(yDiv); // create GMap, hide nav controls this.ymap = new YMap(this.div); this.moveTo(); // catch pans and zooms from GMap var e = new YEvent(this.ymap, "endpan", catchPanZoom, this); /** // attach to the drag start and end and well set a flag so that // we dont get recursivity. this is because the events fall through // the gmaps div and into the main layer div GEvent.addListener(this.gmap, "dragstart", this.dragStart.bindAsEventListener(this)); GEvent.addListener(this.gmap, "dragend", this.dragEnd.bindAsEventListener(this)); */ }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
|
GEvent.addListener(this.gmap, "dragstart", this.dragStart.bindAsEventListener(this)); GEvent.addListener(this.gmap, "dragend", this.dragEnd.bindAsEventListener(this)); */ | YEvent.Capture(this.ymap, EventsList.startPan, this.dragStart, this); | loadYMap:function() { // create div and set to same size as map var yDiv = OpenLayers.Util.createDiv(this.name); var sz = this.map.getSize(); yDiv.style.width = sz.w; yDiv.style.height = sz.h; this.div.appendChild(yDiv); // create GMap, hide nav controls this.ymap = new YMap(this.div); this.moveTo(); // catch pans and zooms from GMap var e = new YEvent(this.ymap, "endpan", catchPanZoom, this); /** // attach to the drag start and end and well set a flag so that // we dont get recursivity. this is because the events fall through // the gmaps div and into the main layer div GEvent.addListener(this.gmap, "dragstart", this.dragStart.bindAsEventListener(this)); GEvent.addListener(this.gmap, "dragend", this.dragEnd.bindAsEventListener(this)); */ }, | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
this.moveTo(); | loadYMap:function() { // create div and set to same size as map var yDiv = OpenLayers.Util.createDiv(this.name); var sz = this.map.getSize(); yDiv.style.width = sz.w; yDiv.style.height = sz.h; this.div.appendChild(yDiv); // create GMap, hide nav controls this.ymap = new YMap(this.div); this.moveTo(); // catch pans and zooms from GMap var e = new YEvent(this.ymap, "endpan", catchPanZoom, this); /** // attach to the drag start and end and well set a flag so that // we dont get recursivity. this is because the events fall through // the gmaps div and into the main layer div GEvent.addListener(this.gmap, "dragstart", this.dragStart.bindAsEventListener(this)); GEvent.addListener(this.gmap, "dragend", this.dragEnd.bindAsEventListener(this)); */ }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
|
var e = new YEvent(this.ymap, "endpan", catchPanZoom, this); | YEvent.Capture(this.ymap, EventsList.endPan, this.catchPanZoom, this); | loadYMap:function() { // create div and set to same size as map var yDiv = OpenLayers.Util.createDiv(this.name); var sz = this.map.getSize(); yDiv.style.width = sz.w; yDiv.style.height = sz.h; this.div.appendChild(yDiv); // create GMap, hide nav controls this.ymap = new YMap(this.div); this.moveTo(); // catch pans and zooms from GMap var e = new YEvent(this.ymap, "endpan", catchPanZoom, this); /** // attach to the drag start and end and well set a flag so that // we dont get recursivity. this is because the events fall through // the gmaps div and into the main layer div GEvent.addListener(this.gmap, "dragstart", this.dragStart.bindAsEventListener(this)); GEvent.addListener(this.gmap, "dragend", this.dragEnd.bindAsEventListener(this)); */ }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
/** | loadYMap:function() { // create div and set to same size as map var yDiv = OpenLayers.Util.createDiv(this.name); var sz = this.map.getSize(); yDiv.style.width = sz.w; yDiv.style.height = sz.h; this.div.appendChild(yDiv); // create GMap, hide nav controls this.ymap = new YMap(this.div); this.moveTo(); // catch pans and zooms from GMap var e = new YEvent(this.ymap, "endpan", catchPanZoom, this); /** // attach to the drag start and end and well set a flag so that // we dont get recursivity. this is because the events fall through // the gmaps div and into the main layer div GEvent.addListener(this.gmap, "dragstart", this.dragStart.bindAsEventListener(this)); GEvent.addListener(this.gmap, "dragend", this.dragEnd.bindAsEventListener(this)); */ }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
|
GEvent.addListener(this.gmap, "dragstart", this.dragStart.bindAsEventListener(this)); GEvent.addListener(this.gmap, "dragend", this.dragEnd.bindAsEventListener(this)); */ | YEvent.Capture(this.ymap, EventsList.startPan, this.dragStart, this); | loadYMap:function() { // create div and set to same size as map var yDiv = OpenLayers.Util.createDiv(this.name); var sz = this.map.getSize(); yDiv.style.width = sz.w; yDiv.style.height = sz.h; this.div.appendChild(yDiv); // create GMap, hide nav controls this.ymap = new YMap(this.div); this.moveTo(); // catch pans and zooms from GMap var e = new YEvent(this.ymap, "endpan", catchPanZoom, this); /** // attach to the drag start and end and well set a flag so that // we dont get recursivity. this is because the events fall through // the gmaps div and into the main layer div GEvent.addListener(this.gmap, "dragstart", this.dragStart.bindAsEventListener(this)); GEvent.addListener(this.gmap, "dragend", this.dragEnd.bindAsEventListener(this)); */ }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/6392e9877c9cbbba83824e6512ecabb2d5e5edaa/Yahoo.js/buggy/lib/OpenLayers/Layer/Yahoo.js |
element = eval("arg." + domTraversal, inWindow); | element = eval("inWindow." + domTraversal, {inWindow: inWindow}); | PageBot.prototype.locateElementByDomTraversal = function(domTraversal, inDocument, inWindow) { var element = null; try { // hack to pass local variable to eval element = eval("arg." + domTraversal, inWindow); } catch (e) { e.isSeleniumError = true; throw e; } if (!element) { return null; } return element; }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/19cfca439e737e1ded4ec3b9399a43854af889d2/selenium-runner.js/clean/src/content/selenium-runner.js |
var threshold = this[LOG_THRESHOLD]; | var threshold = this[thresholdName]; | this.log = function(level, msg) { var threshold = this[LOG_THRESHOLD]; if (level.level >= threshold.level) { var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService); if (consoleService != null) { consoleService.logStringMessage("Selenium IDE [" + level.name + "] " + self.category + ": " + msg); } } } | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/c10f875b8009748611ac6e3663074a62a23124a5/tools.js/buggy/src/content/tools.js |
log: function(message, className) { var logWindow = this.getLogWindow(); this.logHook(message, className); if (logWindow) { if (logWindow.append) { if (this.pendingMessages.length > 0) { logWindow.append("info: Appending missed logging messages", "info"); while (this.pendingMessages.length > 0) { var msg = this.pendingMessages.shift(); logWindow.append(msg.type + ": " + msg.msg, msg.type); } logWindow.append("info: Done appending missed logging messages", "info"); } logWindow.append(className + ": " + message, className); } } else { // uncomment this to turn on background logging /* these logging messages are never flushed, which creates an enormous array of strings that never stops growing. Only turn this on if you need it for debugging! */ //this.pendingMessages.push(new LogMessage(message, className)); } }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/2926652532e34f5b463decd00e6cb0836ad65b1d/selenium-logging.js/clean/code/javascript/core/scripts/selenium-logging.js |
||
log: function(message, className) { | log: function(className, message) { | log: function(message, className) { var logWindow = this.getLogWindow(); this.logHook(message, className); if (logWindow) { if (logWindow.append) { if (this.pendingMessages.length > 0) { logWindow.append("info: Appending missed logging messages", "info"); while (this.pendingMessages.length > 0) { var msg = this.pendingMessages.shift(); logWindow.append(msg.type + ": " + msg.msg, msg.type); } logWindow.append("info: Done appending missed logging messages", "info"); } logWindow.append(className + ": " + message, className); } } else { // uncomment this to turn on background logging /* these logging messages are never flushed, which creates an enormous array of strings that never stops growing. Only turn this on if you need it for debugging! */ //this.pendingMessages.push(new LogMessage(className, message)); } }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/b77dfab7c1403071801299c7649d472275b9a3b1/selenium-logging.js/clean/code/javascript/core/scripts/selenium-logging.js |
var LOG_THRESHOLD = "WARN"; | function Log(category) { // DEBUG //var LOG_THRESHOLD = "DEBUG"; // RELEASE var LOG_THRESHOLD = "WARN"; // TODO: this variable should be configurable through option var log = this; var self = this; this.category = category; function LogLevel(level, name) { this.level = level; this.name = name; var self = this; log[name.toLowerCase()] = function(msg) { log.log(self, msg) }; } this.DEBUG = new LogLevel(1, "DEBUG"); this.INFO = new LogLevel(2, "INFO"); this.WARN = new LogLevel(3, "WARN"); this.ERROR = new LogLevel(4, "ERROR"); this.log = function(level, msg) { var threshold = this[LOG_THRESHOLD]; if (level.level >= threshold.level) { var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService); if (consoleService != null) { consoleService.logStringMessage("Selenium IDE [" + level.name + "] " + self.category + ": " + msg); } } }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/c10f875b8009748611ac6e3663074a62a23124a5/tools.js/buggy/src/content/tools.js |
|
var threshold = this[LOG_THRESHOLD]; | var threshold = this[thresholdName]; | function Log(category) { // DEBUG //var LOG_THRESHOLD = "DEBUG"; // RELEASE var LOG_THRESHOLD = "WARN"; // TODO: this variable should be configurable through option var log = this; var self = this; this.category = category; function LogLevel(level, name) { this.level = level; this.name = name; var self = this; log[name.toLowerCase()] = function(msg) { log.log(self, msg) }; } this.DEBUG = new LogLevel(1, "DEBUG"); this.INFO = new LogLevel(2, "INFO"); this.WARN = new LogLevel(3, "WARN"); this.ERROR = new LogLevel(4, "ERROR"); this.log = function(level, msg) { var threshold = this[LOG_THRESHOLD]; if (level.level >= threshold.level) { var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService); if (consoleService != null) { consoleService.logStringMessage("Selenium IDE [" + level.name + "] " + self.category + ": " + msg); } } }} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/c10f875b8009748611ac6e3663074a62a23124a5/tools.js/buggy/src/content/tools.js |
function Logger(logLevel) { | var Logger = function(logLevel) { | function Logger(logLevel) { this.level = logLevel; this.logConsole = document.getElementById('logging-console'); this.logList = document.getElementById('log-list'); this.hide();} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/e01d248d8df03fcb4a3cb00a56e4edfbdea33c4b/selenium-logging.js/clean/code/javascript/selenium-logging.js |
function Logger(logLevel) { | var Logger = function(logLevel) { | function Logger(logLevel) { this.level = logLevel; this.logConsole = document.getElementById('logging-console'); this.logList = document.getElementById('log-list'); this.hide();} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/1f99ba804c9e389705e0ca0e6929150dcd01c23b/selenium-logging.js/buggy/code/javascript/selenium-logging.js |
LOG.logHook = function(){}; | LOG.logHook = function() { }; | LOG.logHook = function(){}; | 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.logHook = function() { }; | LOG.logHook = function(){}; | LOG.logHook = function() { }; | 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 |
var LogMessage = function(msg, type) { | var LogMessage = function(type, msg) { | var LogMessage = function(msg, type) { this.type = type; this.msg = msg;} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/2926652532e34f5b463decd00e6cb0836ad65b1d/selenium-logging.js/clean/code/javascript/core/scripts/selenium-logging.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.