rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
this.restore = function() { var restore = $(this.restoreId); var label = "SessionClass.restore: "; debug.print(label + restore + " " + restore.hasChildNodes()); //alert(label + restore + " " + restore.hasChildNodes()); if (null == restore) { debug.print(label + "null restore"); this.tabs.refresh(); return; } // handle session uri cookie var uri = restore.getAttribute('uri'); if (null != uri) { this.syncDisabled = false; setCookie(gSessionUriCookie, uri); debug.print(label + "set session cookie = " + uri); } else { debug.print(label + "missing session uri!"); this.syncDisabled = true; } // handle exposed tab var activeTab = restore.getAttribute('active-tab'); this.tabs.refresh(activeTab); if (restore.hasChildNodes()) { var children = restore.childNodes; debug.print(label + "children = " + children); var queries = null; var query = null; var source = null; // first div is the buffers var buffers = children[0]; debug.print(label + "buffers = " + buffers); // handle rows and cols (global) this.buffers.setRows(buffers.getAttribute('rows')); this.buffers.setCols(buffers.getAttribute('cols')); queries = buffers.childNodes; debug.print(label + "queries = " + queries); debug.print(label + "restoring buffers " + queries.length); for (var i = 0; i < queries.length; i++) { //debug.print(label + "restoring " + i + " " + queries[i]); query = queries[i].firstChild.nodeValue; debug.print(label + "restoring " + i + " " + query); // handle content-source (per buffer) source = queries[i].getAttribute('content-source'); debug.print(label + "restoring " + i + " source = " + query); this.buffers.add(query, source); } // reactivate active buffer var active = buffers.getAttribute('active'); debug.print(label + "buffers active = " + active); this.buffers.activate(active); // second div is the history var history = children[1]; queries = history.childNodes; debug.print(label + "restoring history " + queries.length); // restore in reverse order for (var i = queries.length; i > 0; i--) { query = queries[ i - 1 ].firstChild.nodeValue; debug.print(label + "restoring " + i + " " + query); this.history.add(query); } } }
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/9c5f02369bb30e42ba4bb68262eabcbd532d7b22/session.js/buggy/session.js
debug.print(label + "restoring " + i + " " + query);
this.restore = function() { var restore = $(this.restoreId); var label = "SessionClass.restore: "; debug.print(label + restore + " " + restore.hasChildNodes()); //alert(label + restore + " " + restore.hasChildNodes()); if (null == restore) { debug.print(label + "null restore"); this.tabs.refresh(); return; } // handle session uri cookie var uri = restore.getAttribute('uri'); if (null != uri) { this.syncDisabled = false; setCookie(gSessionUriCookie, uri); debug.print(label + "set session cookie = " + uri); } else { debug.print(label + "missing session uri!"); this.syncDisabled = true; } // handle exposed tab var activeTab = restore.getAttribute('active-tab'); this.tabs.refresh(activeTab); if (restore.hasChildNodes()) { var children = restore.childNodes; debug.print(label + "children = " + children); var queries = null; var query = null; var source = null; // first div is the buffers var buffers = children[0]; debug.print(label + "buffers = " + buffers); // handle rows and cols (global) this.buffers.setRows(buffers.getAttribute('rows')); this.buffers.setCols(buffers.getAttribute('cols')); queries = buffers.childNodes; debug.print(label + "queries = " + queries); debug.print(label + "restoring buffers " + queries.length); for (var i = 0; i < queries.length; i++) { //debug.print(label + "restoring " + i + " " + queries[i]); query = queries[i].firstChild.nodeValue; debug.print(label + "restoring " + i + " " + query); // handle content-source (per buffer) source = queries[i].getAttribute('content-source'); debug.print(label + "restoring " + i + " source = " + query); this.buffers.add(query, source); } // reactivate active buffer var active = buffers.getAttribute('active'); debug.print(label + "buffers active = " + active); this.buffers.activate(active); // second div is the history var history = children[1]; queries = history.childNodes; debug.print(label + "restoring history " + queries.length); // restore in reverse order for (var i = queries.length; i > 0; i--) { query = queries[ i - 1 ].firstChild.nodeValue; debug.print(label + "restoring " + i + " " + query); this.history.add(query); } } }
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/9c5f02369bb30e42ba4bb68262eabcbd532d7b22/session.js/buggy/session.js
debug.print(label + "restoring " + i + " source = " + query);
debug.print(label + "restoring " + i + " source = " + source);
this.restore = function() { var restore = $(this.restoreId); var label = "SessionClass.restore: "; debug.print(label + restore + " " + restore.hasChildNodes()); //alert(label + restore + " " + restore.hasChildNodes()); if (null == restore) { debug.print(label + "null restore"); this.tabs.refresh(); return; } // handle session uri cookie var uri = restore.getAttribute('uri'); if (null != uri) { this.syncDisabled = false; setCookie(gSessionUriCookie, uri); debug.print(label + "set session cookie = " + uri); } else { debug.print(label + "missing session uri!"); this.syncDisabled = true; } // handle exposed tab var activeTab = restore.getAttribute('active-tab'); this.tabs.refresh(activeTab); if (restore.hasChildNodes()) { var children = restore.childNodes; debug.print(label + "children = " + children); var queries = null; var query = null; var source = null; // first div is the buffers var buffers = children[0]; debug.print(label + "buffers = " + buffers); // handle rows and cols (global) this.buffers.setRows(buffers.getAttribute('rows')); this.buffers.setCols(buffers.getAttribute('cols')); queries = buffers.childNodes; debug.print(label + "queries = " + queries); debug.print(label + "restoring buffers " + queries.length); for (var i = 0; i < queries.length; i++) { //debug.print(label + "restoring " + i + " " + queries[i]); query = queries[i].firstChild.nodeValue; debug.print(label + "restoring " + i + " " + query); // handle content-source (per buffer) source = queries[i].getAttribute('content-source'); debug.print(label + "restoring " + i + " source = " + query); this.buffers.add(query, source); } // reactivate active buffer var active = buffers.getAttribute('active'); debug.print(label + "buffers active = " + active); this.buffers.activate(active); // second div is the history var history = children[1]; queries = history.childNodes; debug.print(label + "restoring history " + queries.length); // restore in reverse order for (var i = queries.length; i > 0; i--) { query = queries[ i - 1 ].firstChild.nodeValue; debug.print(label + "restoring " + i + " " + query); this.history.add(query); } } }
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/9c5f02369bb30e42ba4bb68262eabcbd532d7b22/session.js/buggy/session.js
debug.print(label + "restoring " + i + " " + query);
this.restore = function() { var restore = $(this.restoreId); var label = "SessionClass.restore: "; debug.print(label + restore + " " + restore.hasChildNodes()); //alert(label + restore + " " + restore.hasChildNodes()); if (null == restore) { debug.print(label + "null restore"); this.tabs.refresh(); return; } // handle session uri cookie var uri = restore.getAttribute('uri'); if (null != uri) { this.syncDisabled = false; setCookie(gSessionUriCookie, uri); debug.print(label + "set session cookie = " + uri); } else { debug.print(label + "missing session uri!"); this.syncDisabled = true; } // handle exposed tab var activeTab = restore.getAttribute('active-tab'); this.tabs.refresh(activeTab); if (restore.hasChildNodes()) { var children = restore.childNodes; debug.print(label + "children = " + children); var queries = null; var query = null; var source = null; // first div is the buffers var buffers = children[0]; debug.print(label + "buffers = " + buffers); // handle rows and cols (global) this.buffers.setRows(buffers.getAttribute('rows')); this.buffers.setCols(buffers.getAttribute('cols')); queries = buffers.childNodes; debug.print(label + "queries = " + queries); debug.print(label + "restoring buffers " + queries.length); for (var i = 0; i < queries.length; i++) { //debug.print(label + "restoring " + i + " " + queries[i]); query = queries[i].firstChild.nodeValue; debug.print(label + "restoring " + i + " " + query); // handle content-source (per buffer) source = queries[i].getAttribute('content-source'); debug.print(label + "restoring " + i + " source = " + query); this.buffers.add(query, source); } // reactivate active buffer var active = buffers.getAttribute('active'); debug.print(label + "buffers active = " + active); this.buffers.activate(active); // second div is the history var history = children[1]; queries = history.childNodes; debug.print(label + "restoring history " + queries.length); // restore in reverse order for (var i = queries.length; i > 0; i--) { query = queries[ i - 1 ].firstChild.nodeValue; debug.print(label + "restoring " + i + " " + query); this.history.add(query); } } }
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/9c5f02369bb30e42ba4bb68262eabcbd532d7b22/session.js/buggy/session.js
query = queries[i].firstChild.nodeValue;
debug.print(label + "restoring " + i + queries[i]); query = queries[i].hasChildNodes() ? queries[i].firstChild.nodeValue : null;
this.restore = function() { var restore = $(this.restoreId); var label = "SessionClass.restore: "; debug.print(label + restore + " " + restore.hasChildNodes()); //alert(label + restore + " " + restore.hasChildNodes()); if (null == restore) { debug.print(label + "null restore"); this.tabs.refresh(); return; } // handle session uri cookie var uri = restore.getAttribute('uri'); if (null != uri) { this.syncDisabled = false; setCookie(gSessionUriCookie, uri); debug.print(label + "set session cookie = " + uri); } else { debug.print(label + "missing session uri!"); this.syncDisabled = true; } // handle exposed tab var activeTab = restore.getAttribute('active-tab'); this.tabs.refresh(activeTab); if (restore.hasChildNodes()) { var children = restore.childNodes; debug.print(label + "children = " + children); var queries = null; var query = null; var source = null; // first div is the buffers var buffers = children[0]; debug.print(label + "buffers = " + buffers); // handle rows and cols (global) this.buffers.setRows(buffers.getAttribute('rows')); this.buffers.setCols(buffers.getAttribute('cols')); queries = buffers.childNodes; debug.print(label + "queries = " + queries); debug.print(label + "restoring buffers " + queries.length); for (var i = 0; i < queries.length; i++) { query = queries[i].firstChild.nodeValue; //debug.print(label + "restoring " + i + " " + query); // handle content-source (per buffer) source = queries[i].getAttribute('content-source'); debug.print(label + "restoring " + i + " source = " + source); this.buffers.add(query, source); } // reactivate active buffer var active = buffers.getAttribute('active'); debug.print(label + "buffers active = " + active); this.buffers.activate(active); // second div is the history var history = children[1]; queries = history.childNodes; debug.print(label + "restoring history " + queries.length); // restore in reverse order for (var i = queries.length; i > 0; i--) { query = queries[ i - 1 ].firstChild.nodeValue; //debug.print(label + "restoring " + i + " " + query); this.history.add(query); } } }
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/fa73b32cceb4f0083ba3aeb2e77c3b68663bf56d/session.js/clean/session.js
this._handleCommandError(e); this._testComplete(); return;
if (!this._handleCommandError(e)) { this._testComplete(); } else { this.continueTest(); }
resume: function() { /** * Select the next command and continue the test. */ LOG.debug("currentTest.resume() - actually execute"); try { selenium.browserbot.runScheduledPollers(); this._executeCurrentCommand(); this.continueTestWhenConditionIsTrue(); } catch (e) { this._handleCommandError(e); this._testComplete(); return; } },
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/afa54887f887b5863f6af88f1b5293c9af5683a3/selenium-executionloop.js/clean/code/javascript/core/scripts/selenium-executionloop.js
this.waitForConditionStart = new Date().getTime();
this.resume = function() { try { this.executeCurrentCommand(); this.continueTestWhenConditionIsTrue(); } catch (e) { this.handleCommandError(e); this.testComplete(); return; } };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ee8f57a55845d6b1bd383c79ecd25cc8e6bc6cc0/selenium-executionloop.js/buggy/code/javascript/selenium-executionloop.js
selenium.browserbot.runScheduledPollers();
selenium.browserbot.runScheduledPollers();
resume : function() { LOG.debug("currentTest.resume() - actually execute"); try { selenium.browserbot.runScheduledPollers(); this._executeCurrentCommand(); this.waitForConditionStart = new Date().getTime(); this.continueTestWhenConditionIsTrue(); } catch (e) { this._handleCommandError(e); this.testComplete(); return; } },
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/9f0deb5295b4ec961520ad50b8faee8d91ce008a/selenium-executionloop.js/clean/code/javascript/core/scripts/selenium-executionloop.js
this.testComplete();
this._testComplete();
resume : function() { LOG.debug("currentTest.resume() - actually execute"); try { selenium.browserbot.runScheduledPollers(); this._executeCurrentCommand(); this.waitForConditionStart = new Date().getTime(); this.continueTestWhenConditionIsTrue(); } catch (e) { this._handleCommandError(e); this.testComplete(); return; } },
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/9f0deb5295b4ec961520ad50b8faee8d91ce008a/selenium-executionloop.js/clean/code/javascript/core/scripts/selenium-executionloop.js
pauseOnNextStatement = false; steppingOut = false; steppingOver = false; steppingStack = 0;
function resume(){ if (currentRow) { removeStyleClass(currentRow, "current"); currentRow = null; } if (currentStack) { var stackframeTable = document.getElementById("stackframeTable"); stackframeTable.innerHTML = ""; // clear the content currentStack = null; } DebuggerDocument.resume();}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/98c1cf6f6c32738969ddb4ace85168e572624ea4/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
removeStyleClass(currentRow, "current");
currentRow.removeStyleClass("current");
function resume(){ if (currentRow) { removeStyleClass(currentRow, "current"); currentRow = null; } var stackframeTable = document.getElementById("stackframeTable"); stackframeTable.innerHTML = ""; // clear the content var variablesTable = document.getElementById("variablesTable"); variablesTable.innerHTML = ""; // clear the content currentStack = null; currentCallFrame = null; pauseOnNextStatement = false; pausedWhileLeavingFrame = false; steppingOut = false; steppingOver = false; steppingStack = 0; DebuggerDocument.resume();}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/c6fb57961d884bd88831658bfe27448abb9cbe1c/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
pausedWhileLeavingFrame = false;
function resume(){ if (currentRow) { removeStyleClass(currentRow, "current"); currentRow = null; } var stackframeTable = document.getElementById("stackframeTable"); stackframeTable.innerHTML = ""; // clear the content var variablesTable = document.getElementById("variablesTable"); variablesTable.innerHTML = ""; // clear the content currentStack = null; currentCallFrame = null; pauseOnNextStatement = false; steppingOut = false; steppingOver = false; steppingStack = 0; DebuggerDocument.resume();}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/9fb9252f156a927179fe79054bbbd11f65d18b9f/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
if (currentStack) { var stackframeTable = document.getElementById("stackframeTable"); stackframeTable.innerHTML = ""; currentStack = null; }
var stackframeTable = document.getElementById("stackframeTable"); stackframeTable.innerHTML = ""; var variablesTable = document.getElementById("variablesTable"); variablesTable.innerHTML = ""; currentStack = null; currentCallFrame = null;
function resume(){ if (currentRow) { removeStyleClass(currentRow, "current"); currentRow = null; } if (currentStack) { var stackframeTable = document.getElementById("stackframeTable"); stackframeTable.innerHTML = ""; // clear the content currentStack = null; } pauseOnNextStatement = false; steppingOut = false; steppingOver = false; steppingStack = 0; DebuggerDocument.resume();}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/af542254968d221333567cb32405e710016a9b93/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos)) };
var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos, options.pulses)) };
var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos)) };
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/c85222180b4b9b8d71c6c32414387b29de9f4273/effects.js/buggy/src/effects.js
map.centerAndZoom(new GPoint(-4.218750, 54.724620), 12);
map.centerAndZoom(new GPoint(-4.218750, 34.724620), 16);
function revert() { if (!map) return true; show_recent_places(); map.closeInfoWindow() map.resetCenterScreen() map.centerAndZoom(new GPoint(-4.218750, 54.724620), 12); return false;}
4679 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4679/e8e473e28658da9d9dcefa4b4ef3e61db39f326f/pop.js/clean/docs/js/pop.js
new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
reverteffect: function(element, top_offset, left_offset) { new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4}); },
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
Draggable._revertCache[element] = new Effect.Move(element, { x: -left_offset, y: -top_offset, duration: dur, queue: {scope:'_draggable', position:'end'} });
new Effect.Move(element, { x: -left_offset, y: -top_offset, duration: dur, queue: {scope:'_draggable', position:'end'} });
reverteffect: function(element, top_offset, left_offset) { var dur = Math.sqrt(Math.abs(top_offset^2)+Math.abs(left_offset^2))*0.02; Draggable._revertCache[element] = new Effect.Move(element, { x: -left_offset, y: -top_offset, duration: dur, queue: {scope:'_draggable', position:'end'} }); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/4d928369043aea712d094cb4d97db2674c85c8ac/dragdrop.js/buggy/src/dragdrop.js
new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
reverteffect: function(element, top_offset, left_offset) { new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4}); },
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
reverteffect: function(element, top_offset, left_offset) { new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4}); },
2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
reverteffect: function(element, top_offset, left_offset) { new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4}); },
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
reverteffect: function(element, top_offset, left_offset) { new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4}); },
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
element._revert = new Effect.Move(element, { x: -left_offset, y: -top_offset, duration: dur});
Draggable._revertCache[element] = new Effect.Move(element, { x: -left_offset, y: -top_offset, duration: dur});
reverteffect: function(element, top_offset, left_offset) { var dur = Math.sqrt(Math.abs(top_offset^2)+Math.abs(left_offset^2))*0.02; element._revert = new Effect.Move(element, { x: -left_offset, y: -top_offset, duration: dur}); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/bd1ac4786a539a5d509de64f60a003cc15cce8c9/dragdrop.js/clean/src/dragdrop.js
new Effect.Move(element, { x: -left_offset, y: -top_offset, duration: dur});
new Effect.Move(element, { x: -left_offset, y: -top_offset, duration: dur, queue: {scope:'_draggable', position:'end'} });
reverteffect: function(element, top_offset, left_offset) { var dur = Math.sqrt(Math.abs(top_offset^2)+Math.abs(left_offset^2))*0.02; Draggable._revertCache[element] = new Effect.Move(element, { x: -left_offset, y: -top_offset, duration: dur}); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/c31fdc38f767373d22b3dd5a5072aa4962ca5b65/dragdrop.js/clean/src/dragdrop.js
new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
reverteffect: function(element, top_offset, left_offset) { new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4}); },
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
reverteffect: function(element, top_offset, left_offset) { new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4}); },
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
var dur = Math.sqrt(Math.abs(top_offset^2)+Math.abs(left_offset^2))*0.02; new Effect.MoveBy(element, -top_offset, -left_offset, {duration:dur});
reverteffect: function(element, top_offset, left_offset) { new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0.4}); },
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/dragdrop.js/clean/public/javascripts/dragdrop.js
new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
reverteffect: function(element, top_offset, left_offset) { new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4}); },
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
reverteffect: function(element, top_offset, left_offset) { new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4}); },
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
reverteffect: function(element, top_offset, left_offset) { new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4}); },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
new Effect.MoveBy(element, -top_offset, -left_offset, {duration:dur});
element._revert = new Effect.MoveBy(element, -top_offset, -left_offset, {duration:dur});
reverteffect: function(element, top_offset, left_offset) { var dur = Math.sqrt(Math.abs(top_offset^2)+Math.abs(left_offset^2))*0.02; new Effect.MoveBy(element, -top_offset, -left_offset, {duration:dur}); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/08ca862091194b85b405f2c8d24c8c00908204ef/dragdrop.js/buggy/src/dragdrop.js
new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
reverteffect: function(element, top_offset, left_offset) { new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4}); },
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
new Effect.MoveBy(element, -top_offset, -left_offset, {duration:0.4});
reverteffect: function(element, top_offset, left_offset) { new Effect2.MoveBy(element, -top_offset, -left_offset, {duration:0.4}); },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/0ffcceffac52cc4ed373eb9db27d6c776b5d96b7/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
return new Array(0, 0, v);
if(v > 0) return new Array(0, 0, v); return new Array(0, 255, 0);
function rgb_string_to_hsv(rgb_str){ // Expected input is on form "#rrggbb" var r = hex_to_int(rgb_str.substring(1, 3)); var g = hex_to_int(rgb_str.substring(3, 5)); var b = hex_to_int(rgb_str.substring(5, 7)); var min, max, delta; var h, s, v; min = Math.min(r, g, b); max = Math.max(r, g, b); delta = max - min; v = max; if (max > 0 && delta > 0) { s = Math.round(255.0 * delta / max); } else { return new Array(0, 0, v); } if (r == max) { h = 1.0 * (g - b) / delta; } else if (g == max) { h = 2 + 1.0 * (b - r) / delta; } else { h = 4 + 1.0 * (r - g) / delta; } h = h * 60.0; if (h < 0) h += 360.0; return new Array(Math.round(h * 255.0 / 360.0), s, v);}
2059 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2059/0729a18ff50464c95f3ce7221365af9bebdcb9b3/ColorSelector.js/clean/server/modules/tags/javascript_support/scripts/ColorSelector.js
var rgb = this.match(/\d{1,3}/g); if (!rgb || rgb.length < 3) return false; if (rgb[3] && rgb[3] == 0) return 'transparent';
if (this.length < 3) return false; if (this[3] && this[3] == 0) return 'transparent';
rgbToHex: function(array){ var rgb = this.match(/\d{1,3}/g); if (!rgb || rgb.length < 3) return false; if (rgb[3] && rgb[3] == 0) return 'transparent'; var hex = []; for (var i = 0; i < 3; i++){ var bit = (rgb[i]-0).toString(16); hex.push(bit.length == 1 ? '0'+bit : bit); } return array ? hex : '#'+hex.join(''); },
5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/fcc80ca504adb31cd63f24e4b73ce9e400a788bc/String.js/buggy/Native/String.js
var bit = (rgb[i]-0).toString(16);
var bit = (this[i]-0).toString(16);
rgbToHex: function(array){ var rgb = this.match(/\d{1,3}/g); if (!rgb || rgb.length < 3) return false; if (rgb[3] && rgb[3] == 0) return 'transparent'; var hex = []; for (var i = 0; i < 3; i++){ var bit = (rgb[i]-0).toString(16); hex.push(bit.length == 1 ? '0'+bit : bit); } return array ? hex : '#'+hex.join(''); },
5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/fcc80ca504adb31cd63f24e4b73ce9e400a788bc/String.js/buggy/Native/String.js
var rgb = this.match(/\d{1,3}/g); if (!rgb || rgb.length < 3) return false; if (rgb[3] && rgb[3] == 0) return 'transparent';
if (this.length < 3) return false; if (this[3] && this[3] == 0) return 'transparent';
rgbToHex: function(array){ var rgb = this.match(/\d{1,3}/g); if (!rgb || rgb.length < 3) return false; if (rgb[3] && rgb[3] == 0) return 'transparent'; var hex = []; for (var i = 0; i < 3; i++){ var bit = (rgb[i]-0).toString(16); hex.push(bit.length == 1 ? '0'+bit : bit); } return array ? hex : '#'+hex.join(''); },
6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/fcc80ca504adb31cd63f24e4b73ce9e400a788bc/String.js/buggy/Native/String.js
var bit = (rgb[i]-0).toString(16);
var bit = (this[i]-0).toString(16);
rgbToHex: function(array){ var rgb = this.match(/\d{1,3}/g); if (!rgb || rgb.length < 3) return false; if (rgb[3] && rgb[3] == 0) return 'transparent'; var hex = []; for (var i = 0; i < 3; i++){ var bit = (rgb[i]-0).toString(16); hex.push(bit.length == 1 ? '0'+bit : bit); } return array ? hex : '#'+hex.join(''); },
6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/fcc80ca504adb31cd63f24e4b73ce9e400a788bc/String.js/buggy/Native/String.js
Rico.Color.RGBtoHSB = function(r, g, b) {
OpenLayers.Rico.Color.RGBtoHSB = function(r, g, b) {
Rico.Color.RGBtoHSB = function(r, g, b) { var hue; var saturation; var brightness; var cmax = (r > g) ? r : g; if (b > cmax) cmax = b; var cmin = (r < g) ? r : g; if (b < cmin) cmin = b; brightness = cmax / 255.0; if (cmax != 0) saturation = (cmax - cmin)/cmax; else saturation = 0; if (saturation == 0) hue = 0; else { var redc = (cmax - r)/(cmax - cmin); var greenc = (cmax - g)/(cmax - cmin); var bluec = (cmax - b)/(cmax - cmin); if (r == cmax) hue = bluec - greenc; else if (g == cmax) hue = 2.0 + redc - bluec; else hue = 4.0 + greenc - redc; hue = hue / 6.0; if (hue < 0) hue = hue + 1.0; } return { h : hue, s : saturation, b : brightness };}
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/112978ac3d807e4a8b7e412ef2f585650c0506d8/Color.js/buggy/lib/Rico/Color.js
Rico.Color.RGBtoHSB = function(r, g, b) {
OpenLayers.Rico.Color.RGBtoHSB = function(r, g, b) {
Rico.Color.RGBtoHSB = function(r, g, b) { var hue; var saturation; var brightness; var cmax = (r > g) ? r : g; if (b > cmax) cmax = b; var cmin = (r < g) ? r : g; if (b < cmin) cmin = b; brightness = cmax / 255.0; if (cmax != 0) saturation = (cmax - cmin)/cmax; else saturation = 0; if (saturation == 0) hue = 0; else { var redc = (cmax - r)/(cmax - cmin); var greenc = (cmax - g)/(cmax - cmin); var bluec = (cmax - b)/(cmax - cmin); if (r == cmax) hue = bluec - greenc; else if (g == cmax) hue = 2.0 + redc - bluec; else hue = 4.0 + greenc - redc; hue = hue / 6.0; if (hue < 0) hue = hue + 1.0; } return { h : hue, s : saturation, b : brightness };}
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/112978ac3d807e4a8b7e412ef2f585650c0506d8/Color.js/buggy/lib/Rico/Color.js
s = delta / (l < 0.5 ? (2 * l) : (2 - 2 * l));
s = delta / (l < 0.5 ? (2 * l) : (2 - 2 * l));
fb.RGBToHSL = function (rgb) { var min, max, delta, h, s, l; var r = rgb[0], g = rgb[1], b = rgb[2]; min = Math.min(r, Math.min(g, b)); max = Math.max(r, Math.max(g, b)); delta = max - min; l = (min + max) / 2; s = 0; if (l > 0 && l < 1) { s = delta / (l < 0.5 ? (2 * l) : (2 - 2 * l)); } h = 0; if (delta > 0) { if (max == r && max != g) h += (g - b) / delta; if (max == g && max != b) h += (2 + (b - r) / delta); if (max == b && max != r) h += (4 + (r - g) / delta); h /= 6; } return [h, s, l]; }
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/49f6f3bf71daf78f75c731db626a40f2284838b2/farbtastic.js/buggy/misc/farbtastic/farbtastic.js
if (max == r && max != g) h += (g - b) / delta; if (max == g && max != b) h += (2 + (b - r) / delta); if (max == b && max != r) h += (4 + (r - g) / delta); h /= 6;
if (max == r && max != g) h += (g - b) / delta; if (max == g && max != b) h += (2 + (b - r) / delta); if (max == b && max != r) h += (4 + (r - g) / delta); h /= 6;
fb.RGBToHSL = function (rgb) { var min, max, delta, h, s, l; var r = rgb[0], g = rgb[1], b = rgb[2]; min = Math.min(r, Math.min(g, b)); max = Math.max(r, Math.max(g, b)); delta = max - min; l = (min + max) / 2; s = 0; if (l > 0 && l < 1) { s = delta / (l < 0.5 ? (2 * l) : (2 - 2 * l)); } h = 0; if (delta > 0) { if (max == r && max != g) h += (g - b) / delta; if (max == g && max != b) h += (2 + (b - r) / delta); if (max == b && max != r) h += (4 + (r - g) / delta); h /= 6; } return [h, s, l]; }
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/49f6f3bf71daf78f75c731db626a40f2284838b2/farbtastic.js/buggy/misc/farbtastic/farbtastic.js
script=script.replace(/^\s*(.*?)\s*$/, "$1");
script=f_core.Trim(script);
run: function() { try { var bundles=classLoader._bundles; for(;;) { var loads=this._loads; if (loads.length>0) { var bundleName=loads.shift(); // alert("Load bundle "+bundleName); if (bundles[bundleName]) { continue; } var url=f_env.ComputeJavaScriptURI(bundleName); f_core.Debug("f_asyncClassLoader", "Load script '"+bundleName+"' url='"+url+"'."); var interactive=this; var doc=this._htmlNode.ownerDocument; var script=doc.createElement("SCRIPT"); script.type=f_httpRequest.JAVASCRIPT_MIME_TYPE; script.src=url; script.defer=false; script.charset="UTF-8"; if (f_core.IsInternetExplorer()) { script.onreadystatechange=function() { switch(script.readyState) { case "loaded": case "interactive": case "complete": break; default: // alert("State "+script.readyState); f_core.Debug("f_asyncClassLoader", "Script '"+url+"' state="+script.readyState); return; } script.onreadystatechange=null; f_core.Debug("f_asyncClassLoader", "Script '"+url+"' loaded."); try { interactive.run(); } catch (x) { f_core.Error("f_asyncClassLoader", "Run async script throws exception.", x); } }; } else { script.onload=function() { // alert("URL "+url+" loaded !"); f_core.Debug("f_asyncClassLoader", "Script '"+url+"' loaded."); script.onload=null; try { interactive.run(); } catch (x) { f_core.Error("f_asyncClassLoader", "Run async script throws exception.", x); } }; } doc.body.appendChild(script); return; } if (this._scripts.length>0) { var script=this._scripts.shift(); // alert("Eval script: "+script); script=script.replace(/^\s*(.*?)\s*$/, "$1"); // Pour eviter un anti-virus plutot indelicat ! if (script.indexOf("<!--")==0) { var v=script.indexOf("//-->"); if (v>0) { f_core.Debug("f_asyncClassLoader", "Simplify script '"+script+"'."); script=script.substring(v+5); } } f_core.Debug("f_asyncClassLoader", "Eval script '"+script+"'."); if (script.length>0) { try { eval(script); } catch (x) { f_core.Error("f_asyncClassLoader", "Eval throws exception; script='"+script+"'.", x); } } continue; } f_core.Debug("f_asyncClassLoader", "End of scripts evaluation."); // alert("Fin !"); classLoader._interactiveMode=undefined; classLoader._postLoad(this); return; } } catch (x) { f_core.Error("f_asyncClassLoader", "Async script loading exception.", x); } }
4326 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4326/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/f_asyncClassLoader.js/buggy/org.rcfaces.renderkit.html/src/org/rcfaces/renderkit/html/internal/javascript/f_asyncClassLoader.js
f_core.Debug("f_asyncClassLoader", "Simplify script '"+script+"'.");
var newScript=script.substring(5, v); newScript=f_core.Trim(newScript); f_core.Debug("f_asyncClassLoader", "Simplify script '"+script+"' newScript='"+newScript+"'.");
run: function() { try { var bundles=classLoader._bundles; for(;;) { var loads=this._loads; if (loads.length>0) { var bundleName=loads.shift(); // alert("Load bundle "+bundleName); if (bundles[bundleName]) { continue; } var url=f_env.ComputeJavaScriptURI(bundleName); f_core.Debug("f_asyncClassLoader", "Load script '"+bundleName+"' url='"+url+"'."); var interactive=this; var doc=this._htmlNode.ownerDocument; var script=doc.createElement("SCRIPT"); script.type=f_httpRequest.JAVASCRIPT_MIME_TYPE; script.src=url; script.defer=false; script.charset="UTF-8"; if (f_core.IsInternetExplorer()) { script.onreadystatechange=function() { switch(script.readyState) { case "loaded": case "interactive": case "complete": break; default: // alert("State "+script.readyState); f_core.Debug("f_asyncClassLoader", "Script '"+url+"' state="+script.readyState); return; } script.onreadystatechange=null; f_core.Debug("f_asyncClassLoader", "Script '"+url+"' loaded."); try { interactive.run(); } catch (x) { f_core.Error("f_asyncClassLoader", "Run async script throws exception.", x); } }; } else { script.onload=function() { // alert("URL "+url+" loaded !"); f_core.Debug("f_asyncClassLoader", "Script '"+url+"' loaded."); script.onload=null; try { interactive.run(); } catch (x) { f_core.Error("f_asyncClassLoader", "Run async script throws exception.", x); } }; } doc.body.appendChild(script); return; } if (this._scripts.length>0) { var script=this._scripts.shift(); // alert("Eval script: "+script); script=script.replace(/^\s*(.*?)\s*$/, "$1"); // Pour eviter un anti-virus plutot indelicat ! if (script.indexOf("<!--")==0) { var v=script.indexOf("//-->"); if (v>0) { f_core.Debug("f_asyncClassLoader", "Simplify script '"+script+"'."); script=script.substring(v+5); } } f_core.Debug("f_asyncClassLoader", "Eval script '"+script+"'."); if (script.length>0) { try { eval(script); } catch (x) { f_core.Error("f_asyncClassLoader", "Eval throws exception; script='"+script+"'.", x); } } continue; } f_core.Debug("f_asyncClassLoader", "End of scripts evaluation."); // alert("Fin !"); classLoader._interactiveMode=undefined; classLoader._postLoad(this); return; } } catch (x) { f_core.Error("f_asyncClassLoader", "Async script loading exception.", x); } }
4326 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4326/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/f_asyncClassLoader.js/buggy/org.rcfaces.renderkit.html/src/org/rcfaces/renderkit/html/internal/javascript/f_asyncClassLoader.js
script=script.substring(v+5);
script=newScript;
run: function() { try { var bundles=classLoader._bundles; for(;;) { var loads=this._loads; if (loads.length>0) { var bundleName=loads.shift(); // alert("Load bundle "+bundleName); if (bundles[bundleName]) { continue; } var url=f_env.ComputeJavaScriptURI(bundleName); f_core.Debug("f_asyncClassLoader", "Load script '"+bundleName+"' url='"+url+"'."); var interactive=this; var doc=this._htmlNode.ownerDocument; var script=doc.createElement("SCRIPT"); script.type=f_httpRequest.JAVASCRIPT_MIME_TYPE; script.src=url; script.defer=false; script.charset="UTF-8"; if (f_core.IsInternetExplorer()) { script.onreadystatechange=function() { switch(script.readyState) { case "loaded": case "interactive": case "complete": break; default: // alert("State "+script.readyState); f_core.Debug("f_asyncClassLoader", "Script '"+url+"' state="+script.readyState); return; } script.onreadystatechange=null; f_core.Debug("f_asyncClassLoader", "Script '"+url+"' loaded."); try { interactive.run(); } catch (x) { f_core.Error("f_asyncClassLoader", "Run async script throws exception.", x); } }; } else { script.onload=function() { // alert("URL "+url+" loaded !"); f_core.Debug("f_asyncClassLoader", "Script '"+url+"' loaded."); script.onload=null; try { interactive.run(); } catch (x) { f_core.Error("f_asyncClassLoader", "Run async script throws exception.", x); } }; } doc.body.appendChild(script); return; } if (this._scripts.length>0) { var script=this._scripts.shift(); // alert("Eval script: "+script); script=script.replace(/^\s*(.*?)\s*$/, "$1"); // Pour eviter un anti-virus plutot indelicat ! if (script.indexOf("<!--")==0) { var v=script.indexOf("//-->"); if (v>0) { f_core.Debug("f_asyncClassLoader", "Simplify script '"+script+"'."); script=script.substring(v+5); } } f_core.Debug("f_asyncClassLoader", "Eval script '"+script+"'."); if (script.length>0) { try { eval(script); } catch (x) { f_core.Error("f_asyncClassLoader", "Eval throws exception; script='"+script+"'.", x); } } continue; } f_core.Debug("f_asyncClassLoader", "End of scripts evaluation."); // alert("Fin !"); classLoader._interactiveMode=undefined; classLoader._postLoad(this); return; } } catch (x) { f_core.Error("f_asyncClassLoader", "Async script loading exception.", x); } }
4326 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4326/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/f_asyncClassLoader.js/buggy/org.rcfaces.renderkit.html/src/org/rcfaces/renderkit/html/internal/javascript/f_asyncClassLoader.js
repaint();
this.repaint();
function run() { while (killme != null) { try {Thread.sleep(100);} catch (e){} repaint(); } killme = null;}
9191 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9191/394383a65dd802c3dde5b8a2f99b406cd7527b4f/NervousText.js/clean/examples/NervousText.js
function runMenu(strURL){ location.href=strURL;
function runMenu(strURL) { if (strURL.charAt(0) == '%') window.open(strURL.substr(1)); else location.href = strURL;
function runMenu(strURL){ location.href=strURL;}
3489 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3489/f6a8c7ae74d4ac02e1cbd8ad6e426d17ff68c0fd/menu_script.js/buggy/Documentation/Scripts/menu_script.js
this.htmlTestSuite.runNextTestInSuite();
this.getTestSuite().runNextTestInSuite();
runNextTest: function () { if (!this.runAllTests) { return; } this.htmlTestSuite.runNextTestInSuite(); },
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
getTestFrame().src = testLink.href;
getExecutionContext().open(testLink.href, getTestFrame());
function runNextTest() { if (!runAllTests) return; suiteTable = getIframeDocument(getSuiteFrame()).getElementsByTagName("table")[0]; // Do not change the row color of the first row if(currentTestRow > 0) { // Make the previous row green or red depending if the test passed or failed if(testFailed) setCellColor(suiteTable.rows, currentTestRow, 0, failColor); else setCellColor(suiteTable.rows, currentTestRow, 0, passColor); // Set the results from the previous test run setResultsData(suiteTable, currentTestRow); } currentTestRow++; // If we are done with all of the tests, set the title bar as pass or fail if(currentTestRow >= suiteTable.rows.length) { if(suiteFailed) setCellColor(suiteTable.rows, 0, 0, failColor); else setCellColor(suiteTable.rows, 0, 0, passColor); // If this is an automated run (i.e., build script), then submit // the test results by posting to a form if (isAutomatedRun()) postTestResults(suiteFailed, suiteTable); } else { // Make the current row blue setCellColor(suiteTable.rows, currentTestRow, 0, workingColor); testLink = suiteTable.rows[currentTestRow].cells[0].getElementsByTagName("a")[0]; testLink.focus(); addLoadListener(getTestFrame(), startTest); getTestFrame().src = testLink.href; }}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/d37d4b80feee636ddcefc43715dc989856b6a454/selenium-fitrunner.js/clean/code/javascript/selenium-fitrunner.js
getTestFrame().src = testLink.href;
getExecutionContext().open(testLink.href, getTestFrame());
function runNextTest() { if (!runAllTests) return; suiteTable = getIframeDocument(getSuiteFrame()).getElementsByTagName("table")[0]; // Do not change the row color of the first row if(currentTestRow > 0) { // Make the previous row green or red depending if the test passed or failed if(testFailed) setCellColor(suiteTable.rows, currentTestRow, 0, failColor); else setCellColor(suiteTable.rows, currentTestRow, 0, passColor); // Set the results from the previous test run setResultsData(suiteTable, currentTestRow); } currentTestRow++; // If we are done with all of the tests, set the title bar as pass or fail if(currentTestRow >= suiteTable.rows.length) { if(suiteFailed) setCellColor(suiteTable.rows, 0, 0, failColor); else setCellColor(suiteTable.rows, 0, 0, passColor); // If this is an automated run (i.e., build script), then submit // the test results by posting to a form if (isAutomatedRun()) postTestResults(suiteFailed, suiteTable); } else { // Make the current row blue setCellColor(suiteTable.rows, currentTestRow, 0, workingColor); testLink = suiteTable.rows[currentTestRow].cells[0].getElementsByTagName("a")[0]; testLink.focus(); addLoadListener(getTestFrame(), startTest); getTestFrame().src = testLink.href; }}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/042fdcdd45dcb7908c8704f8f1f41df6dd5f6091/selenium-fitrunner.js/clean/code/javascript/selenium-fitrunner.js
testFrame.src = "about:blank"; testFrame.src = testLink.href;
browserbot.setIFrameLocation(testFrame, testLink.href);
function runNextTest() { if (!runAllTests) return; suiteTable = getIframeDocument(getSuiteFrame()).getElementsByTagName("table")[0]; // Do not change the row color of the first row if(currentTestRow > 0) { // Make the previous row green or red depending if the test passed or failed if(testFailed) setCellColor(suiteTable.rows, currentTestRow, 0, failColor); else setCellColor(suiteTable.rows, currentTestRow, 0, passColor); // Set the results from the previous test run setResultsData(suiteTable, currentTestRow); } currentTestRow++; // If we are done with all of the tests, set the title bar as pass or fail if(currentTestRow >= suiteTable.rows.length) { if(suiteFailed) setCellColor(suiteTable.rows, 0, 0, failColor); else setCellColor(suiteTable.rows, 0, 0, passColor); // If this is an automated run (i.e., build script), then submit // the test results by posting to a form if (isAutomatedRun()) postTestResults(suiteFailed, suiteTable); } else { // Make the current row blue setCellColor(suiteTable.rows, currentTestRow, 0, workingColor); testLink = suiteTable.rows[currentTestRow].cells[0].getElementsByTagName("a")[0]; testLink.focus(); var testFrame = getTestFrame(); addLoadListener(testFrame, startTest); // Window doesn't fire onload event when setting src to the current value, // so we set it to blank first. testFrame.src = "about:blank"; testFrame.src = testLink.href; }}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/c91529e19ecc266252b6564fdbc3ab5839a96ae4/selenium-fitrunner.js/clean/code/javascript/selenium-fitrunner.js
testSuiteComplete();
isTestSuiteComplete();
function runNextTest() { if (!runAllTests) return; suiteTable = getIframeDocument(getSuiteFrame()).getElementsByTagName("table")[0]; updateSuiteWithResultOfPreviousTest(); currentRowInSuite++; // If we are done with all of the tests, set the title bar as pass or fail if (currentRowInSuite >= suiteTable.rows.length) { testSuiteComplete(); } else { startCurrentTestCase(); }}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/0310a5cc1f4cefa5a905d20a0377865784ae9511/selenium-testrunner.js/clean/code/javascript/core/scripts/selenium-testrunner.js
testFrame.src = "about:blank"; testFrame.src = testLink.href;
browserbot.setIFrameLocation(testFrame, testLink.href);
function runNextTest() { if (!runAllTests) return; suiteTable = getIframeDocument(getSuiteFrame()).getElementsByTagName("table")[0]; // Do not change the row color of the first row if(currentTestRow > 0) { // Make the previous row green or red depending if the test passed or failed if(testFailed) setCellColor(suiteTable.rows, currentTestRow, 0, failColor); else setCellColor(suiteTable.rows, currentTestRow, 0, passColor); // Set the results from the previous test run setResultsData(suiteTable, currentTestRow); } currentTestRow++; // If we are done with all of the tests, set the title bar as pass or fail if(currentTestRow >= suiteTable.rows.length) { if(suiteFailed) setCellColor(suiteTable.rows, 0, 0, failColor); else setCellColor(suiteTable.rows, 0, 0, passColor); // If this is an automated run (i.e., build script), then submit // the test results by posting to a form if (isAutomatedRun()) postTestResults(suiteFailed, suiteTable); } else { // Make the current row blue setCellColor(suiteTable.rows, currentTestRow, 0, workingColor); testLink = suiteTable.rows[currentTestRow].cells[0].getElementsByTagName("a")[0]; testLink.focus(); var testFrame = getTestFrame(); addLoadListener(testFrame, startTest); // Window doesn't fire onload event when setting src to the current value, // so we set it to blank first. testFrame.src = "about:blank"; testFrame.src = testLink.href; }}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/a0d9a6c348948025b720f561c086e0a791ee7f68/selenium-fitrunner.js/clean/code/javascript/selenium-fitrunner.js
} else {
} else {
runNextTestInSuite: function() { this._updateSuiteWithResultOfPreviousTest(); this.currentRowInSuite++; // If we are done with all of the tests, set the title bar as pass or fail if (this.currentRowInSuite >= this.suiteRows.length) { this._onTestSuiteComplete(); } else { this._startCurrentTestCase(); } }
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
function() {var func = this, args = new Array(arguments.length);
function() { var func = this, args = new Array(arguments.length);
Function.prototype.runsAfterSCW = function() {var func = this, args = new Array(arguments.length); for (var i=0;i<args.length;++i) {args[i] = arguments[i];} return function() {// concat/join the two argument arrays for (var i=0;i<arguments.length;++i) {args[args.length] = arguments[i];} return (args.shift()==scwTriggerEle) ?func.apply(this, args):null; } };
3685 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3685/b89706561d807feae7791db0e20e011b722cc3cd/scw.js/buggy/webapps/gridsphere/javascript/scw.js
for (var i=0;i<args.length;++i) {args[i] = arguments[i];}
for (var i = 0; i < args.length; ++i) { args[i] = arguments[i]; }
Function.prototype.runsAfterSCW = function() {var func = this, args = new Array(arguments.length); for (var i=0;i<args.length;++i) {args[i] = arguments[i];} return function() {// concat/join the two argument arrays for (var i=0;i<arguments.length;++i) {args[args.length] = arguments[i];} return (args.shift()==scwTriggerEle) ?func.apply(this, args):null; } };
3685 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3685/b89706561d807feae7791db0e20e011b722cc3cd/scw.js/buggy/webapps/gridsphere/javascript/scw.js
return function() { for (var i=0;i<arguments.length;++i) {args[args.length] = arguments[i];}
return function() { for (var i = 0; i < arguments.length; ++i) { args[args.length] = arguments[i]; }
Function.prototype.runsAfterSCW = function() {var func = this, args = new Array(arguments.length); for (var i=0;i<args.length;++i) {args[i] = arguments[i];} return function() {// concat/join the two argument arrays for (var i=0;i<arguments.length;++i) {args[args.length] = arguments[i];} return (args.shift()==scwTriggerEle) ?func.apply(this, args):null; } };
3685 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3685/b89706561d807feae7791db0e20e011b722cc3cd/scw.js/buggy/webapps/gridsphere/javascript/scw.js
return (args.shift()==scwTriggerEle) ?func.apply(this, args):null; } };
return (args.shift() == scwTriggerEle) ? func.apply(this, args) : null; } };
Function.prototype.runsAfterSCW = function() {var func = this, args = new Array(arguments.length); for (var i=0;i<args.length;++i) {args[i] = arguments[i];} return function() {// concat/join the two argument arrays for (var i=0;i<arguments.length;++i) {args[args.length] = arguments[i];} return (args.shift()==scwTriggerEle) ?func.apply(this, args):null; } };
3685 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3685/b89706561d807feae7791db0e20e011b722cc3cd/scw.js/buggy/webapps/gridsphere/javascript/scw.js
debugMode = runOptions.getDebugMode();
debugMode = runOptions.isDebugMode();
function runSeleniumTest() { runOptions = new SeleneseRunnerOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else if ($('myiframe') != null) { var myiframe = $('myiframe'); if (myiframe) { testAppWindow = myiframe.contentWindow; } } else { proxyInjectionMode = true; testAppWindow = window; } selenium = Selenium.createForWindow(testAppWindow); if (!debugMode) { debugMode = runOptions.getDebugMode(); } if (proxyInjectionMode) { LOG.log = logToRc; selenium.browserbot._modifyWindow(testAppWindow); } else if (debugMode) { LOG.logHook = logToRc; } window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); currentTest = new SeleneseRunner(commandFactory); if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = runOptions.getContinue(); if (doContinue != null) postResult = "OK"; currentTest.start();}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/b4f4dbda1d65695e493cea717d209c6b7296fe9d/selenium-seleneserunner.js/buggy/code/javascript/core/scripts/selenium-seleneserunner.js
} else {
} else if ($('myiframe') != null) {
function runSeleniumTest() { runOptions = new RunOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else { testAppWindow = $('myiframe').contentWindow; } if (testAppWindow == null) { proxyInjectionMode = true; testAppWindow = window; } else { proxyInjectionMode = false; } selenium = Selenium.createForWindow(testAppWindow); if (!debugMode) { debugMode = runOptions.getDebugMode(); } if (proxyInjectionMode) { LOG.log = logToRc; } else if (debugMode) { LOG.logHook = logToRc; } window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); currentTest = new SeleneseRunner(commandFactory); if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = runOptions.getContinue(); if (doContinue != null) postResult = "OK"; currentTest.start();}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/37b69a783252967f3b2dcca5b5c09a93dabc051e/selenium-seleneserunner.js/clean/code/javascript/core/scripts/selenium-seleneserunner.js
runOptions = new SeleneseRunnerOptions();
runOptions = new RemoteRunnerOptions();
function runSeleniumTest() { runOptions = new SeleneseRunnerOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else if ($('myiframe') != null) { var myiframe = $('myiframe'); if (myiframe) { testAppWindow = myiframe.contentWindow; } } else { proxyInjectionMode = true; testAppWindow = window; } selenium = Selenium.createForWindow(testAppWindow, proxyInjectionMode); if (!debugMode) { debugMode = runOptions.isDebugMode(); } if (proxyInjectionMode) { LOG.log = logToRc; selenium.browserbot._modifyWindow(testAppWindow); } else if (debugMode) { LOG.logHook = logToRc; } window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); currentTest = new SeleneseRunner(commandFactory); if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = runOptions.getContinue(); if (doContinue != null) postResult = "OK"; currentTest.start();}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/221e405153e4944ac36a523560cbc57de7ae219b/selenium-remoterunner.js/buggy/code/javascript/core/scripts/selenium-remoterunner.js
currentTest = new SeleneseRunner(commandFactory);
currentTest = new RemoteRunner(commandFactory);
function runSeleniumTest() { runOptions = new SeleneseRunnerOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else if ($('myiframe') != null) { var myiframe = $('myiframe'); if (myiframe) { testAppWindow = myiframe.contentWindow; } } else { proxyInjectionMode = true; testAppWindow = window; } selenium = Selenium.createForWindow(testAppWindow, proxyInjectionMode); if (!debugMode) { debugMode = runOptions.isDebugMode(); } if (proxyInjectionMode) { LOG.log = logToRc; selenium.browserbot._modifyWindow(testAppWindow); } else if (debugMode) { LOG.logHook = logToRc; } window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); currentTest = new SeleneseRunner(commandFactory); if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = runOptions.getContinue(); if (doContinue != null) postResult = "OK"; currentTest.start();}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/221e405153e4944ac36a523560cbc57de7ae219b/selenium-remoterunner.js/buggy/code/javascript/core/scripts/selenium-remoterunner.js
testAppWindow = $('myiframe').contentWindow;
var myiframe = $('myiframe'); if (myiframe) { testAppWindow = myiframe.contentWindow; }
function runSeleniumTest() { runOptions = new SeleneseRunnerOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else if ($('myiframe') != null) { testAppWindow = $('myiframe').contentWindow; } else { proxyInjectionMode = true; testAppWindow = window; } selenium = Selenium.createForWindow(testAppWindow); if (!debugMode) { debugMode = runOptions.getDebugMode(); } if (proxyInjectionMode) { LOG.log = logToRc; selenium.browserbot._modifyWindow(testAppWindow); } else if (debugMode) { LOG.logHook = logToRc; } window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); currentTest = new SeleneseRunner(commandFactory); if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = runOptions.getContinue(); if (doContinue != null) postResult = "OK"; currentTest.start();}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/6b32d4473042dd3ce0221125e374973cf2add0c5/selenium-seleneserunner.js/clean/code/javascript/core/scripts/selenium-seleneserunner.js
debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; }
function runTest() { debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; } var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LOG.logHook = logToRc; } selenium = Selenium.createForFrame(testAppFrame); restoreSeleniumState(); window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); testLoop = new TestLoop(commandFactory); testLoop.nextCommand = nextCommand; testLoop.commandStarted = commandStarted; testLoop.commandComplete = commandComplete; testLoop.commandError = commandError; testLoop.requiresCallBack = true; testLoop.testComplete = function() { window.status = "Selenium Tests Complete, for this Test" // Continue checking for new results testLoop.continueTest(); postResult = "START"; }; if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = getQueryVariable("continue"); if (doContinue != null) postResult = "OK"; testLoop.start();}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/7ebf87a2fe8ffd5432e90f188d638e142fda0b85/selenium-seleneserunner.js/buggy/code/javascript/core/scripts/selenium-seleneserunner.js
proxyInjectionMode = true;
function runTest() { debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; } var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LOG.logHook = logToRc; } selenium = Selenium.createForFrame(testAppFrame); restoreSeleniumState(); window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); testLoop = new TestLoop(commandFactory); testLoop.nextCommand = nextCommand; testLoop.commandStarted = commandStarted; testLoop.commandComplete = commandComplete; testLoop.commandError = commandError; testLoop.requiresCallBack = true; testLoop.testComplete = function() { window.status = "Selenium Tests Complete, for this Test" // Continue checking for new results testLoop.continueTest(); postResult = "START"; }; if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = getQueryVariable("continue"); if (doContinue != null) postResult = "OK"; testLoop.start();}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/7ebf87a2fe8ffd5432e90f188d638e142fda0b85/selenium-seleneserunner.js/buggy/code/javascript/core/scripts/selenium-seleneserunner.js
proxyInjectionMode = false;
function runTest() { debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; } var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LOG.logHook = logToRc; } selenium = Selenium.createForFrame(testAppFrame); restoreSeleniumState(); window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); testLoop = new TestLoop(commandFactory); testLoop.nextCommand = nextCommand; testLoop.commandStarted = commandStarted; testLoop.commandComplete = commandComplete; testLoop.commandError = commandError; testLoop.requiresCallBack = true; testLoop.testComplete = function() { window.status = "Selenium Tests Complete, for this Test" // Continue checking for new results testLoop.continueTest(); postResult = "START"; }; if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = getQueryVariable("continue"); if (doContinue != null) postResult = "OK"; testLoop.start();}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/7ebf87a2fe8ffd5432e90f188d638e142fda0b85/selenium-seleneserunner.js/buggy/code/javascript/core/scripts/selenium-seleneserunner.js
if (debugMode=="false") { debugMode = false; }
function runTest() { debugMode = getQueryVariable("debugMode"); var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LOG.logHook = logToRc; } selenium = Selenium.createForFrame(testAppFrame); window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); testLoop = new TestLoop(commandFactory); testLoop.nextCommand = nextCommand; testLoop.commandStarted = commandStarted; testLoop.commandComplete = commandComplete; testLoop.commandError = commandError; testLoop.requiresCallBack = true; testLoop.testComplete = function() { window.status = "Selenium Tests Complete, for this Test" // Continue checking for new results testLoop.continueTest(); postResult = "START"; }; if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = getQueryVariable("continue"); if (doContinue != null) postResult = "OK"; testLoop.start();}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/51fb5a13839d7fc295e7d1698d8e3a9e5ed9f939/selenium-seleneserunner.js/clean/code/javascript/core/scripts/selenium-seleneserunner.js
function runTest() { var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LOG.logHook = logToRc; } selenium = Selenium.createForFrame(testAppFrame); //sendToRC("hi world", "logLevel=" + "lsdkjfdsfk"); window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); testLoop = new TestLoop(commandFactory); testLoop.nextCommand = nextCommand; testLoop.commandStarted = commandStarted; testLoop.commandComplete = commandComplete; testLoop.commandError = commandError; testLoop.requiresCallBack = true; testLoop.testComplete = function() { window.status = "Selenium Tests Complete, for this Test" // Continue checking for new results testLoop.continueTest(); postResult = "START"; }; if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = getQueryVariable("continue"); if (doContinue != null) postResult = "OK"; testLoop.start();}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/cd4ca8e4a183901b5fae2aff5175fe5707855627/selenium-seleneserunner.js/buggy/code/javascript/core/scripts/selenium-seleneserunner.js
restoreSeleniumState();
function runTest() { debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; } var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LOG.logHook = logToRc; } selenium = Selenium.createForFrame(testAppFrame); restoreSeleniumState(); window.selenium = selenium; commandFactory = new CommandHandlerFactory(); commandFactory.registerAll(selenium); testLoop = new TestLoop(commandFactory); testLoop.nextCommand = nextCommand; testLoop.commandStarted = commandStarted; testLoop.commandComplete = commandComplete; testLoop.commandError = commandError; testLoop.requiresCallBack = true; testLoop.testComplete = function() { window.status = "Selenium Tests Complete, for this Test" // Continue checking for new results testLoop.continueTest(); postResult = "START"; }; if (document.getElementById("commandList") != null) { document.getElementById("commandList").appendChild(cmd4); document.getElementById("commandList").appendChild(cmd3); document.getElementById("commandList").appendChild(cmd2); document.getElementById("commandList").appendChild(cmd1); } var doContinue = getQueryVariable("continue"); if (doContinue != null) postResult = "OK"; testLoop.start();}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/a45590122265044fcacdd946fda9f4d780897b18/selenium-seleneserunner.js/clean/code/javascript/core/scripts/selenium-seleneserunner.js
SafariPageBot = function(pageWindow) {
var SafariPageBot = function(pageWindow) {
SafariPageBot = function(pageWindow) { PageBot.call(this, pageWindow);};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/10e591b5be05718f2e4d76628c0765675e463e1b/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
return str.replace( /\\/g, '\\\\').replace( /\'/g, '\\\'' ).replace( /\"/g, '\\\"' ).replace( /^/, '"' ).replace( /$/, '"' );
return str.replace( /\\/g, '\\\\').replace( /\'/g, '\\\'' ).replace( /\"/g, '\\\"' ).replace( /^/, '"' ).replace( /$/, '"' ).replace( /\ option\ /g, '" option "' );
function sanitize_input( str ){ return str.replace( /\\/g, '\\\\').replace( /\'/g, '\\\'' ).replace( /\"/g, '\\\"' ).replace( /^/, '"' ).replace( /$/, '"' );}
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/eedd4e6bfbc5cb2f05597e5cb5aa8eae3a1c97fa/vlm.js/buggy/share/http/js/vlm.js
DEFINE('CFLAGS_' + SAPI + '_OBJ', '$(CFLAGS_' + SAPI + ')');
function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } ADD_SOURCES("sapi/" + sapiname, file_list, sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# SAPI " + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine(makefiletarget + ": $(BUILD_DIR)\\" + makefiletarget); MFO.WriteLine("\t@echo SAPI " + sapiname + " build complete"); MFO.WriteLine("$(BUILD_DIR)\\" + makefiletarget + ": $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB)"); if (makefiletarget.match(new RegExp("\\.dll$"))) { ldflags = "/dll $(LDFLAGS)"; } else { ldflags = "$(LDFLAGS)"; } MFO.WriteLine("\t$(LD) /nologo /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LDFLAGS_" + SAPI + ") $(LIBS_" + SAPI + ")"); ADD_FLAG("SAPI_TARGETS", makefiletarget); MFO.WriteBlankLines(1);}
631 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/631/4ffdb4253ab15b6d52c0250223861c0c9da1cbc8/confutils.js/clean/win32/build/confutils.js
STDOUT.WriteLine("Enabling sapi/" + sapiname);
STDOUT.WriteLine("Enabling SAPI " + configure_module_dirname);
function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } ADD_SOURCES("sapi/" + sapiname, file_list, sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# SAPI " + sapiname); MFO.WriteBlankLines(1); /* generate a .res file containing version information */ resname = generate_version_info_resource(makefiletarget, "sapi/" + sapiname); MFO.WriteLine(makefiletarget + ": $(BUILD_DIR)\\" + makefiletarget); MFO.WriteLine("\t@echo SAPI " + sapiname + " build complete"); MFO.WriteLine("$(BUILD_DIR)\\" + makefiletarget + ": $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(BUILD_DIR)\\" + resname); if (makefiletarget.match(new RegExp("\\.dll$"))) { ldflags = "/dll $(LDFLAGS)"; } else { ldflags = "$(LDFLAGS)"; } MFO.WriteLine("\t$(LD) /nologo /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LDFLAGS_" + SAPI + ") $(LIBS_" + SAPI + ") $(BUILD_DIR)\\" + resname); DEFINE('CFLAGS_' + SAPI + '_OBJ', '$(CFLAGS_' + SAPI + ')'); ADD_FLAG("SAPI_TARGETS", makefiletarget); MFO.WriteBlankLines(1);}
631 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/631/a5cf8362603d1f0a40ce1e0ccbf326a28e741777/confutils.js/clean/win32/build/confutils.js
ADD_SOURCES("sapi/" + sapiname, file_list, sapiname);
ADD_SOURCES(configure_module_dirname, file_list, sapiname);
function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } ADD_SOURCES("sapi/" + sapiname, file_list, sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# SAPI " + sapiname); MFO.WriteBlankLines(1); /* generate a .res file containing version information */ resname = generate_version_info_resource(makefiletarget, "sapi/" + sapiname); MFO.WriteLine(makefiletarget + ": $(BUILD_DIR)\\" + makefiletarget); MFO.WriteLine("\t@echo SAPI " + sapiname + " build complete"); MFO.WriteLine("$(BUILD_DIR)\\" + makefiletarget + ": $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(BUILD_DIR)\\" + resname); if (makefiletarget.match(new RegExp("\\.dll$"))) { ldflags = "/dll $(LDFLAGS)"; } else { ldflags = "$(LDFLAGS)"; } MFO.WriteLine("\t$(LD) /nologo /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LDFLAGS_" + SAPI + ") $(LIBS_" + SAPI + ") $(BUILD_DIR)\\" + resname); DEFINE('CFLAGS_' + SAPI + '_OBJ', '$(CFLAGS_' + SAPI + ')'); ADD_FLAG("SAPI_TARGETS", makefiletarget); MFO.WriteBlankLines(1);}
631 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/631/a5cf8362603d1f0a40ce1e0ccbf326a28e741777/confutils.js/clean/win32/build/confutils.js
resname = generate_version_info_resource(makefiletarget, "sapi/" + sapiname);
resname = generate_version_info_resource(makefiletarget, configure_module_dirname);
function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } ADD_SOURCES("sapi/" + sapiname, file_list, sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# SAPI " + sapiname); MFO.WriteBlankLines(1); /* generate a .res file containing version information */ resname = generate_version_info_resource(makefiletarget, "sapi/" + sapiname); MFO.WriteLine(makefiletarget + ": $(BUILD_DIR)\\" + makefiletarget); MFO.WriteLine("\t@echo SAPI " + sapiname + " build complete"); MFO.WriteLine("$(BUILD_DIR)\\" + makefiletarget + ": $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(BUILD_DIR)\\" + resname); if (makefiletarget.match(new RegExp("\\.dll$"))) { ldflags = "/dll $(LDFLAGS)"; } else { ldflags = "$(LDFLAGS)"; } MFO.WriteLine("\t$(LD) /nologo /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LDFLAGS_" + SAPI + ") $(LIBS_" + SAPI + ") $(BUILD_DIR)\\" + resname); DEFINE('CFLAGS_' + SAPI + '_OBJ', '$(CFLAGS_' + SAPI + ')'); ADD_FLAG("SAPI_TARGETS", makefiletarget); MFO.WriteBlankLines(1);}
631 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/631/a5cf8362603d1f0a40ce1e0ccbf326a28e741777/confutils.js/clean/win32/build/confutils.js
MFO.WriteLine("\t@echo SAPI " + sapiname + " build complete");
MFO.WriteLine("\t@echo SAPI " + configure_module_dirname + "/" + sapiname + " build complete");
function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } ADD_SOURCES("sapi/" + sapiname, file_list, sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# SAPI " + sapiname); MFO.WriteBlankLines(1); /* generate a .res file containing version information */ resname = generate_version_info_resource(makefiletarget, "sapi/" + sapiname); MFO.WriteLine(makefiletarget + ": $(BUILD_DIR)\\" + makefiletarget); MFO.WriteLine("\t@echo SAPI " + sapiname + " build complete"); MFO.WriteLine("$(BUILD_DIR)\\" + makefiletarget + ": $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(BUILD_DIR)\\" + resname); if (makefiletarget.match(new RegExp("\\.dll$"))) { ldflags = "/dll $(LDFLAGS)"; } else { ldflags = "$(LDFLAGS)"; } MFO.WriteLine("\t$(LD) /nologo /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LDFLAGS_" + SAPI + ") $(LIBS_" + SAPI + ") $(BUILD_DIR)\\" + resname); DEFINE('CFLAGS_' + SAPI + '_OBJ', '$(CFLAGS_' + SAPI + ')'); ADD_FLAG("SAPI_TARGETS", makefiletarget); MFO.WriteBlankLines(1);}
631 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/631/a5cf8362603d1f0a40ce1e0ccbf326a28e741777/confutils.js/clean/win32/build/confutils.js
if(PHP_VCI = "yes" || PHP_VCO == "yes") { ldflags += " /PGD:$(BUILD_DIR)\\"+makefiletarget+".pgd"; }
function SAPI(sapiname, file_list, makefiletarget, cflags, obj_dir){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; var ld; if (typeof(obj_dir) == "undefined") { sapiname_for_printing = configure_module_dirname; } else { sapiname_for_printing = configure_module_dirname + " (via " + obj_dir + ")"; } STDOUT.WriteLine("Enabling SAPI " + sapiname_for_printing); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } ADD_SOURCES(configure_module_dirname, file_list, sapiname, obj_dir); MFO.WriteBlankLines(1); MFO.WriteLine("# SAPI " + sapiname); MFO.WriteBlankLines(1); /* generate a .res file containing version information */ resname = generate_version_info_resource(makefiletarget, configure_module_dirname); MFO.WriteLine(makefiletarget + ": $(BUILD_DIR)\\" + makefiletarget); MFO.WriteLine("\t@echo SAPI " + sapiname_for_printing + " build complete"); MFO.WriteLine("$(BUILD_DIR)\\" + makefiletarget + ": $(DEPS_" + SAPI + ") $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(BUILD_DIR)\\" + resname); if (makefiletarget.match(new RegExp("\\.dll$"))) { ldflags = "/dll $(LDFLAGS)"; } else if (makefiletarget.match(new RegExp("\\.lib$"))) { ldflags = "$(LDFLAGS)"; ld = "$(MAKE_LIB)"; } else { ldflags = "$(LDFLAGS)"; } if(PHP_VCI = "yes" || PHP_VCO == "yes") { ldflags += " /PGD:$(BUILD_DIR)\\"+makefiletarget+".pgd"; } if (ld) { MFO.WriteLine("\t" + ld + " /nologo /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LDFLAGS_" + SAPI + ") $(LIBS_" + SAPI + ") $(BUILD_DIR)\\" + resname); } else { ld = "@$(CC)"; MFO.WriteLine("\t" + ld + " /nologo " + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LIBS_" + SAPI + ") $(BUILD_DIR)\\" + resname + " /link /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(LDFLAGS_" + SAPI + ")"); } DEFINE('CFLAGS_' + SAPI + '_OBJ', '$(CFLAGS_' + SAPI + ')'); if (configure_module_dirname.match("pecl")) { ADD_FLAG("PECL_TARGETS", makefiletarget); } else { ADD_FLAG("SAPI_TARGETS", makefiletarget); } MFO.WriteBlankLines(1);}
631 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/631/41912f30766ae713b416e0efa8bd11de668a465b/confutils.js/buggy/win32/build/confutils.js
if(PHP_VCI = "yes" || PHP_VCO == "yes") { ldflags += " /PGD:$(BUILD_DIR)\\"+makefiletarget+".pgd"; }
function SAPI(sapiname, file_list, makefiletarget, cflags, obj_dir){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; var ld; if (typeof(obj_dir) == "undefined") { sapiname_for_printing = configure_module_dirname; } else { sapiname_for_printing = configure_module_dirname + " (via " + obj_dir + ")"; } STDOUT.WriteLine("Enabling SAPI " + sapiname_for_printing); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } ADD_SOURCES(configure_module_dirname, file_list, sapiname, obj_dir); MFO.WriteBlankLines(1); MFO.WriteLine("# SAPI " + sapiname); MFO.WriteBlankLines(1); /* generate a .res file containing version information */ resname = generate_version_info_resource(makefiletarget, configure_module_dirname); MFO.WriteLine(makefiletarget + ": $(BUILD_DIR)\\" + makefiletarget); MFO.WriteLine("\t@echo SAPI " + sapiname_for_printing + " build complete"); MFO.WriteLine("$(BUILD_DIR)\\" + makefiletarget + ": $(DEPS_" + SAPI + ") $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(BUILD_DIR)\\" + resname); if (makefiletarget.match(new RegExp("\\.dll$"))) { ldflags = "/dll $(LDFLAGS)"; } else if (makefiletarget.match(new RegExp("\\.lib$"))) { ldflags = "$(LDFLAGS)"; ld = "$(MAKE_LIB)"; } else { ldflags = "$(LDFLAGS)"; } if(PHP_VCI = "yes" || PHP_VCO == "yes") { ldflags += " /PGD:$(BUILD_DIR)\\"+makefiletarget+".pgd"; } if (ld) { MFO.WriteLine("\t" + ld + " /nologo /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LDFLAGS_" + SAPI + ") $(LIBS_" + SAPI + ") $(BUILD_DIR)\\" + resname); } else { ld = "@$(CC)"; MFO.WriteLine("\t" + ld + " /nologo " + " $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(LIBS_" + SAPI + ") $(BUILD_DIR)\\" + resname + " /link /out:$(BUILD_DIR)\\" + makefiletarget + " " + ldflags + " $(LDFLAGS_" + SAPI + ")"); } DEFINE('CFLAGS_' + SAPI + '_OBJ', '$(CFLAGS_' + SAPI + ')'); if (configure_module_dirname.match("pecl")) { ADD_FLAG("PECL_TARGETS", makefiletarget); } else { ADD_FLAG("SAPI_TARGETS", makefiletarget); } MFO.WriteBlankLines(1);}
631 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/631/fedc06d290bb5c1a8d6fa19ec7f15b20b53129e7/confutils.js/clean/win32/build/confutils.js
function satFinder()
function satFinder(transponder)
function satFinder(){ NewWindow("/satFinder", "satfind", "170", "150", "no");}
6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/038f1308c193a2ea44e58f2e9307742cef009daa/index.js/clean/tuxbox/enigma/data/htdocs/index.js
NewWindow("/satFinder", "satfind", "170", "150", "no");
NewWindow("/satFinder?" + transponder, "satfind", "170", "150", "no");
function satFinder(){ NewWindow("/satFinder", "satfind", "170", "150", "no");}
6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/038f1308c193a2ea44e58f2e9307742cef009daa/index.js/clean/tuxbox/enigma/data/htdocs/index.js
this.branch.deleteBranch("formats");
save: function(options, prop_name) { if (prop_name) { this.setCharPref(prop_name, options[prop_name]); } else { var name; for (name in options) { this.setCharPref(name, options[name]); } } }
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/8c6bee0659653d06eef565a6c6695a89c3ae02d0/options.js/buggy/src/content/options.js
var configStream = getWriteStream(getScriptFile("config.xml"));
var configStream = getWriteStream(this.configFile);
this.save = function() { var doc = document.implementation.createDocument("", "UserScriptConfig", null); for (var i = 0, scriptObj = null; (scriptObj = this.scripts[i]); i++) { var scriptNode = doc.createElement("Script"); for (var j = 0; j < scriptObj.includes.length; j++) { var includeNode = doc.createElement("Include"); includeNode.appendChild(doc.createTextNode(scriptObj.includes[j])); scriptNode.appendChild(doc.createTextNode("\n\t\t")); scriptNode.appendChild(includeNode); } for (var j = 0; j < scriptObj.excludes.length; j++) { var excludeNode = doc.createElement("Exclude"); excludeNode.appendChild(doc.createTextNode(scriptObj.excludes[j])); scriptNode.appendChild(doc.createTextNode("\n\t\t")); scriptNode.appendChild(excludeNode); } scriptNode.appendChild(doc.createTextNode("\n\t")); scriptNode.setAttribute("filename", scriptObj.filename); scriptNode.setAttribute("name", scriptObj.name); scriptNode.setAttribute("namespace", scriptObj.namespace); scriptNode.setAttribute("description", scriptObj.description); scriptNode.setAttribute("enabled", scriptObj.enabled); doc.firstChild.appendChild(doc.createTextNode("\n\t")); doc.firstChild.appendChild(scriptNode); } doc.firstChild.appendChild(doc.createTextNode("\n")) var configStream = getWriteStream(getScriptFile("config.xml")); new XMLSerializer().serializeToStream(doc, configStream, "utf-8"); configStream.close(); }
2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/fec534de049cc4effd22b41bf1cfa71367d36fa3/config.js/buggy/src/content/config.js
function save(filename,options) { // wyona way this.p.onload = this._responseXML; this.p.options = options; var WyonaRequest = BX_xml.doc.createElement("request"); WyonaRequest.setAttribute("type","checkin"); var dataEle = BX_xml.doc.createElement("data"); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); this.p.open("POST",filename); // BX_show_xml(WyonaRequest); this.p.send(calculateMarkup(WyonaRequest,true)); }
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/e99f8cf2737750971082ca2e1c69d4f5dde4c59a/lenya.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/td/lenya.js
BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID);
function save(filename,options) { // wyona way this.p.onload = this._responseXML; this.p.options = options; var WyonaRequest = BX_xml.doc.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.doc.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); this.p.open("POST",filename); // BX_show_xml(WyonaRequest); this.p.send(calculateMarkup(WyonaRequest,true)); }
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/9720c4384f395933fec0cc778f2d0d7272b2dec4/lenya.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/td/lenya.js
dataEle.setAttribute("id",BX_DocumentID);
function save(filename,options) { // wyona way this.p.onload = this._responseXML; this.p.options = options; var WyonaRequest = BX_xml.doc.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.doc.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); this.p.open("POST",filename); // BX_show_xml(WyonaRequest); this.p.send(calculateMarkup(WyonaRequest,true)); }
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/9720c4384f395933fec0cc778f2d0d7272b2dec4/lenya.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/td/lenya.js
function save(filename,options) { // wyona way this.p.onload = this._responseXML; this.p.options = options; var WyonaRequest = BX_xml.doc.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); var dataEle = BX_xml.doc.createElement("data"); dataEle.setAttribute("id",BX_DocumentID); dataEle.setAttribute("type","xml"); dataEle.appendChild(BX_getResultXML().firstChild); WyonaRequest.appendChild(dataEle); this.p.open("POST",filename); // BX_show_xml(WyonaRequest); this.p.send(calculateMarkup(WyonaRequest,true)); }
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/9720c4384f395933fec0cc778f2d0d7272b2dec4/lenya.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/td/lenya.js
mimetype: "text/plain",
mimetype: "text/html",
function saveAttachment(obj, formid, noanim){var bindArgs = { url: "/exec/editattachments/" + obj, content: {ajax: "1"}, method: "POST", mimetype: "text/plain", error: function(type, errObj){ }, load: function(type, data, evt){ // handle successful response here var d = document.getElementById("popup_contents"); alert(data); if(!d) return; else d.innerHTML = data.toString(); } }; if(formid) { var form = document.getElementById(formid); if(form) bindArgs.formNode = form; } // dispatch the request var requestObj = dojo.io.bind(bindArgs); }
1857 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1857/f801f4f8888931bce574e0a66463dfd057fde540/menulayer.js/buggy/static/javascripts/menulayer.js
alert(data);
function saveAttachment(obj, formid, noanim){var bindArgs = { url: "/exec/editattachments/" + obj, content: {ajax: "1"}, method: "POST", mimetype: "text/plain", error: function(type, errObj){ }, load: function(type, data, evt){ // handle successful response here var d = document.getElementById("popup_contents"); alert(data); if(!d) return; else d.innerHTML = data.toString(); } }; if(formid) { var form = document.getElementById(formid); if(form) bindArgs.formNode = form; } // dispatch the request var requestObj = dojo.io.bind(bindArgs); }
1857 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1857/f801f4f8888931bce574e0a66463dfd057fde540/menulayer.js/buggy/static/javascripts/menulayer.js
var body = editor.query(' var actionIndex = editor.query('
var body = editor.query('. var actionIndex = editor.query('.
function saveBreakpointOnLine(lineNum){ var file = files[currentFile]; var breakpoint = file.breakpoints[lineNum]; row = file.element.firstChild.childNodes.item(lineNum - 1); var editor = breakpoint.editor; var body = editor.query('//div[@class="condition"]').innerText; var actionIndex = editor.query('//select[@class="editorDropdown"]').selectedIndex; if (body.length == 0) breakpoint.value = "break"; else if (body.indexOf("return") != -1) breakpoint.value = "__drosera_breakpoint_conditional_func = function() {" + body + "}; __drosera_breakpoint_conditional_func();"; else breakpoint.value = "__drosera_breakpoint_conditional_func = function() { return((" + body + ")); }; __drosera_breakpoint_conditional_func();";}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/f3853fed8fa994cfa6fd50d5433ca2d638f7955e/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
debug("saveBuffersRecoveryPoint: start");
debug.print("saveBuffersRecoveryPoint: start");
function saveBuffersRecoveryPoint() { debug("saveBuffersRecoveryPoint: start"); var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML); if (! buffersNode) { debug("saveBuffersRecoveryPoint: null buffersNode"); return; } setCookie(g_cq_buffers_cookie, buffersNode.innerHTML); debug("saveBuffersRecoveryPoint: " + getCookie(g_cq_buffers_cookie));}
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML);
debug.print("saveBuffersRecoveryPoint: " + buffersNode); debug.print("saveBuffersRecoveryPoint: " + buffersNode.innerHTML);
function saveBuffersRecoveryPoint() { debug("saveBuffersRecoveryPoint: start"); var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML); if (! buffersNode) { debug("saveBuffersRecoveryPoint: null buffersNode"); return; } setCookie(g_cq_buffers_cookie, buffersNode.innerHTML); debug("saveBuffersRecoveryPoint: " + getCookie(g_cq_buffers_cookie));}
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
debug("saveBuffersRecoveryPoint: null buffersNode");
debug.print("saveBuffersRecoveryPoint: null buffersNode");
function saveBuffersRecoveryPoint() { debug("saveBuffersRecoveryPoint: start"); var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML); if (! buffersNode) { debug("saveBuffersRecoveryPoint: null buffersNode"); return; } setCookie(g_cq_buffers_cookie, buffersNode.innerHTML); debug("saveBuffersRecoveryPoint: " + getCookie(g_cq_buffers_cookie));}
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
debug("saveBuffersRecoveryPoint: " + getCookie(g_cq_buffers_cookie));
debug.print("saveBuffersRecoveryPoint: " + getCookie(g_cq_buffers_cookie));
function saveBuffersRecoveryPoint() { debug("saveBuffersRecoveryPoint: start"); var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML); if (! buffersNode) { debug("saveBuffersRecoveryPoint: null buffersNode"); return; } setCookie(g_cq_buffers_cookie, buffersNode.innerHTML); debug("saveBuffersRecoveryPoint: " + getCookie(g_cq_buffers_cookie));}
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
this.view.syncModel();
function saveNewTestCase() { if (this.testManager.saveAsNew(this.testCase)) { //document.getElementById("filename").value = this.testCase.filename; updateTitle(); }}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/8559b7c3e1067cd32f5489bd7a35360a222901a0/selenium-ide.js/clean/src/content/selenium-ide.js
var w = SeleniumIDE.getRecorderWindow(); if (w != null) { w.setOptions(options); }
SeleniumIDE.Loader.getEditors().forEach(function(editor) { editor.setOptions(options); });
function saveOptions() { var options = this.options; var name; for (name in options) { var e = document.getElementById(name); if (e != null) { options[name] = e.checked != undefined ? e.checked.toString() : e.value; } } var w = SeleniumIDE.getRecorderWindow(); if (w != null) { w.setOptions(options); } optionsManager.save(options); return true;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ce42355024b29d6c2ea8e9d354e7952605826f4f/optionsDialog.js/clean/src/content/optionsDialog.js
function saveOptions() { var options = this.options; var name; for (name in options) { var e = document.getElementById(name); if (e != null) { options[name] = e.checked != undefined ? e.checked.toString() : e.value; } } var w = SeleniumIDE.getRecorderWindow(); if (w != null) { w.setOptions(options); } optionsManager.save(options); return true;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/8c6bee0659653d06eef565a6c6695a89c3ae02d0/optionsDialog.js/clean/src/content/optionsDialog.js
submitform('saveorder');
function saveorder( n ) { checkAll_button( n ); submitform('saveorder');}
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/4d6608f1b9e40027a4d0e09bed742f852c8ff0ca/mambojavascript.js/buggy/includes/js/mambojavascript.js
submitform('saveorder');
function saveorder( n ) { checkAll_button( n ); submitform('saveorder');}
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/4d6608f1b9e40027a4d0e09bed742f852c8ff0ca/joomla.javascript.js/clean/includes/js/joomla.javascript.js
debug("saveQueryHistory: " + i);
function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (listItems && listItems[0]) { debug("saveQueryHistory: checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { debug("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); newItem.appendChild(document.createTextNode(query)); // onclick, copy to current textarea newItem.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip newItem.title = "Click here to copy this query into the current buffer."; // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/acaf2f3cc32a6781b1b116b2d37f39fc2d4472e2/cq.js/clean/cq.js
function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query);
function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ": " + query.substr(0, 16));
function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (listItems && listItems[0]) { debug("saveQueryHistory: checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { //debug("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); newItem.appendChild(document.createTextNode(query)); // onclick, copy to current textarea newItem.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip newItem.title = "Click here to copy this query into the current buffer."; // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
if (listItems && listItems[0]) { debug("saveQueryHistory: checking " + listItems.length);
if (checkFlag && listItems && listItems[0]) { debug.print("saveQueryHistory: dup-checking " + listItems.length);
function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var listItems = listNode.childNodes; var normalizedQuery = normalize(query); if (query == null || query == "") { return; } if (listItems && listItems[0]) { debug("saveQueryHistory: checking " + listItems.length); for (var i = 0; i < listItems.length; i++) { //debug("saveQueryHistory: " + i); if (normalize(listItems[i].childNodes[0].nodeValue) == normalizedQuery) { // we want to remove a node and then break listNode.removeChild(listItems[i]); debug("saveQueryHistory: " + i + " matched!"); if (g_cq_history_limit != null && g_cq_history_limit > 0) break; } if (g_cq_history_limit != null && i > g_cq_history_limit) listNode.removeChild(listItems[i]); } } var newItem = document.createElement("li"); newItem.appendChild(document.createTextNode(query)); // onclick, copy to current textarea newItem.onclick = function() { var buf = getBuffer(); buf.value = this.childNodes[0].nodeValue; // don't refresh buffer list //refreshBufferList(g_cq_buffer_current, "saveQueryHistory"); } // tool-tip newItem.title = "Click here to copy this query into the current buffer."; // delete widget var deleteLink = document.createElement("span"); deleteLink.className = "query-delete"; deleteLink.onclick = function() { if (confirm("Are you sure you want to delete this history item?")) { this.parentNode.parentNode.removeChild(this.parentNode); } // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, this.parentNode.parentNode.innerHTML); }; // tool-tip deleteLink.title = "Click here to delete this query from your history."; deleteLink.appendChild(document.createTextNode(" (x) ")); newItem.appendChild(deleteLink); // spacing: css padding, margin don't seem to work with ol newItem.appendChild(document.createElement("hr")); // it's nice to have the most-recent at the top... if (listItems && listItems[0] && (!appendFlag)) { listNode.insertBefore(newItem, listItems[0]); } else { listNode.appendChild(newItem); } // finally, update the saved-queries cookie // this approach won't work: cookies get too big //setCookie(g_cq_history_cookie, listNode.innerHTML);} // saveQueryHistory
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js