rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 13 136k | meta stringlengths 132 347 |
|---|---|---|---|
fragments.reverse(false).each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild); | fragments.each((function(fragment) { this.element.appendChild(fragment); | fragments.reverse(false).each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild); }).bind(this)); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
fragments.reverse(false).each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild); | fragments.each((function(fragment) { this.element.appendChild(fragment); | fragments.reverse(false).each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild); }).bind(this)); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
test("removeClass(String) - simple", function() { expect(1); var div = $("div").addClass("test").removeClass("test"), pass = true; | test("addClass(String)", function() { var div = $("div"); div.addClass("test"); var pass = true; | test("removeClass(String) - simple", function() { expect(1); var div = $("div").addClass("test").removeClass("test"), pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.indexOf("test") != -1 ) pass = false; } ok( pass, "Remove Class" );}); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js |
if ( div.get(i).className.indexOf("test") != -1 ) pass = false; | if ( div.get(i).className.indexOf("test") == -1 ) pass = false; | test("removeClass(String) - simple", function() { expect(1); var div = $("div").addClass("test").removeClass("test"), pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.indexOf("test") != -1 ) pass = false; } ok( pass, "Remove Class" );}); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js |
ok( pass, "Remove Class" ); | ok( pass, "Add Class" ); | test("removeClass(String) - simple", function() { expect(1); var div = $("div").addClass("test").removeClass("test"), pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.indexOf("test") != -1 ) pass = false; } ok( pass, "Remove Class" );}); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js |
this.element.appendChild(fragment); | this.element.parentNode.insertBefore(fragment, this.element.nextSibling); | fragments.each((function(fragment) { this.element.appendChild(fragment); }).bind(this)); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
this.element.appendChild(fragment); | this.element.parentNode.insertBefore(fragment, this.element.nextSibling); | fragments.each((function(fragment) { this.element.appendChild(fragment); }).bind(this)); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
test("removeClass(String) - add three classes and remove again", function() { | test("removeClass(String) - simple", function() { | test("removeClass(String) - add three classes and remove again", function() { expect(1); var div = $("div").addClass("test").addClass("foo").addClass("bar"); div.removeClass("test").removeClass("bar").removeClass("foo"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.match(/test|ba... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js |
var div = $("div").addClass("test").addClass("foo").addClass("bar"); div.removeClass("test").removeClass("bar").removeClass("foo"); var pass = true; | var div = $("div").addClass("test").removeClass("test"), pass = true; | test("removeClass(String) - add three classes and remove again", function() { expect(1); var div = $("div").addClass("test").addClass("foo").addClass("bar"); div.removeClass("test").removeClass("bar").removeClass("foo"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.match(/test|ba... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js |
if ( div.get(i).className.match(/test|bar|foo/) ) pass = false; | if ( div.get(i).className.indexOf("test") != -1 ) pass = false; | test("removeClass(String) - add three classes and remove again", function() { expect(1); var div = $("div").addClass("test").addClass("foo").addClass("bar"); div.removeClass("test").removeClass("bar").removeClass("foo"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.match(/test|ba... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js |
ok( pass, "Remove multiple classes" ); | ok( pass, "Remove Class" ); | test("removeClass(String) - add three classes and remove again", function() { expect(1); var div = $("div").addClass("test").addClass("foo").addClass("bar"); div.removeClass("test").removeClass("bar").removeClass("foo"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.match(/test|ba... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js |
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element.nextSibling); }).bind(this)); | this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator); | fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element.nextSibling); }).bind(this)); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element.nextSibling); }).bind(this)); | this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator); | fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element.nextSibling); }).bind(this)); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator); | this.set(this.select(function(className) { return className != classNameToRemove; }).join(' ')); | this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator); | this.set(this.select(function(className) { return className != classNameToRemove; }).join(' ')); | this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
this.set(this.select(function(className) { return className != classNameToRemove; }).join(' ')); | clause.each(function(attribute) { var value = 'element.getAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; } switch (attribute.operator) { case '=': conditions.push(value + ' == ' + attribute.value.inspec... | this.set(this.select(function(className) { return className != classNameToRemove; }).join(' ')); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
this.set(this.select(function(className) { return className != classNameToRemove; }).join(' ')); | clause.each(function(attribute) { var value = 'element.getAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; } switch (attribute.operator) { case '=': conditions.push(value + ' == ' + attribute.value.inspec... | this.set(this.select(function(className) { return className != classNameToRemove; }).join(' ')); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
clause.each(function(attribute) { var value = 'element.getAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; } switch (attribute.operator) { case '=': conditions.push(value + ' == ' + attribute.value.inspec... | return expressions.map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); }); | clause.each(function(attribute) { var value = 'element.getAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; } switch (attribute.operator) { case '=': cond... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
}).flatten(); | clause.each(function(attribute) { var value = 'element.getAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; } switch (attribute.operator) { case '=': cond... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js | |
clause.each(function(attribute) { var value = 'element.getAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; } switch (attribute.operator) { case '=': conditions.push(value + ' == ' + attribute.value.inspec... | return expressions.map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); }); | clause.each(function(attribute) { var value = 'element.getAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; } switch (attribute.operator) { case '=': cond... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
}).flatten(); | clause.each(function(attribute) { var value = 'element.getAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; } switch (attribute.operator) { case '=': cond... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js | |
(function(){ var e = "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess".split(','); for ( var i = 0; i < e.length; i++ ){ (function(){ var o = e[i]; jQuery.fn[o] = function(f){return this.bind(o, f);}; })();} })(); | jQuery.fn[o] = function(f){ return this.bind(o, f); }; | (function(){ var e = "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess".split(','); for ( var i = 0; i < e.length; i++ ){ (function(){ var o = e[i]; jQuery.fn[o] = function(f){return this.bind(o, f);}; })();}})(); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/ajax.js/clean/ajax/ajax.js |
jQuery.fn[o] = function(f){ return this.bind(o, f); }; | setTimeout(function(){ if (xml) { xml.abort(); if ( !requestDone ) onreadystatechange( "timeout" ); xml = null; } }, s.timeout); | jQuery.fn[o] = function(f){ return this.bind(o, f); }; | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/46faa03820f82e5b03e6b3d73bd9d5b194b2b310/ajax.js/buggy/src/ajax/ajax.js |
$each(this.attributes, function(attribute){ if (attribute.name != 'name') el.setProperty(attribute.name, attribute.value); }); | Garbage.elements.each(function(el){ el.removeEvents(); for (var p in Element.prototype){ HTMLElement[p] = window[p] = document[p] = el[p] = null; } el.extend = null; }); | $each(this.attributes, function(attribute){ if (attribute.name != 'name') el.setProperty(attribute.name, attribute.value); }); | 5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/af66a6919b8d36f1a1d048c31276da23a227b278/Element.js/buggy/Native/Element.js |
new $.fx.Opacity(this,o).show(); | new $.fx.Opacity(this,o,1).show(); | return a ? this.each(function(){ new $.fx.Opacity(this,o).show(); }) : this._show(); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/497bfb7909ada30e3410827808bc0c1a0d9843a7/fx.js/clean/fx/fx.js |
Garbage.elements.each(function(el){ el.removeEvents(); for (var p in Element.prototype) HTMLElement[p] = window[p] = document[p] = el[p] = null; el.extend = null; }); | this.events[type].keys.each(function(fn){ fn.apply(this, args || []); }, this); | Garbage.elements.each(function(el){ el.removeEvents(); for (var p in Element.prototype) HTMLElement[p] = window[p] = document[p] = el[p] = null; el.extend = null; }); | 5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/a2560b6edca4199bf8e5624a345f815890b122c2/Element.js/clean/Native/Element.js |
$('#first').load('data/test.html', function() { ok( $('#first').html().match(/^html text/), 'Check content after loading html' ); ok( foo == "foo", 'Check if script was evaluated after load' ); setTimeout(verifyEvaluation, 600); }); | test("serialize()", function() { expect(1); var data = $(':input').not('button').serialize(); ok( data == 'action=Test&text2=Test&radio1=on&radio2=on&check=on&=on&hidden=&foo[bar]=&name=name&=foobar&select1=&select2=3&select3=1', 'Check form serialization as query string' ); }); | $('#first').load('data/test.html', function() { ok( $('#first').html().match(/^html text/), 'Check content after loading html' ); ok( foo == "foo", 'Check if script was evaluated after load' ); setTimeout(verifyEvaluation, 600); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js |
jQuery.fn[o] = function(f){ | for ( var i = 0; i < e.length; i++ ) new function(){ var o = e[i]; jQuery.fn[o] = function(f){ | jQuery.fn[o] = function(f){ return this.bind(o, f); }; | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/cb53fc02b68ca267f9eddd8fd4f5d92ef08ae022/ajax.js/buggy/src/ajax/ajax.js |
}; | jQuery.fn[o] = function(f){ return this.bind(o, f); }; | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/cb53fc02b68ca267f9eddd8fd4f5d92ef08ae022/ajax.js/buggy/src/ajax/ajax.js | |
test("load(String, Object, Function) - check scripts", function() { expect(7); stop(); testFoo = undefined; var verifyEvaluation = function() { ok( foobar == "bar", 'Check if script src was evaluated after load' ); ok( $('#foo').html() == 'foo', 'Check if script evaluation has modified DOM'); ok( $('#ap').html() == 'ba... | $('#first').load("data/name.php", function() { ok( /^ERROR/.test($('#first').text()), 'Check if content was injected into the DOM' ); start(); | test("load(String, Object, Function) - check scripts", function() { expect(7); stop(); testFoo = undefined; var verifyEvaluation = function() { ok( foobar == "bar", 'Check if script src was evaluated after load' ); ok( $('#foo').html() == 'foo', 'Check if script evaluation has modified DOM'); ok( $('#ap').html() ... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js |
}); | test("load(String, Object, Function) - check scripts", function() { expect(7); stop(); testFoo = undefined; var verifyEvaluation = function() { ok( foobar == "bar", 'Check if script src was evaluated after load' ); ok( $('#foo').html() == 'foo', 'Check if script evaluation has modified DOM'); ok( $('#ap').html() ... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js | |
function(row) { return "<input type='button' value='Test' onclick='runTest(" + rownum + ")'/>"; }, | function(row) { return "<input type='button' value='Test' onclick='setSettings();runTest(" + rownum + ")'/>"; }, | function(row) { return "<input type='button' value='Test' onclick='runTest(" + rownum + ")'/>"; }, | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/a6659fd28de5e0d001fe9e46da6cdb9dd78104c0/testsuite.js/buggy/web/testsuite.js |
var e = ['ajaxStart','ajaxComplete','ajaxError','ajaxSuccess']; | var e = "ajaxStart.ajaxComplete.ajaxError.ajaxSuccess".split(','); | (function(){ var e = ['ajaxStart','ajaxComplete','ajaxError','ajaxSuccess']; for ( var i = 0; i < e.length; i++ ){ (function(){ var o = e[i]; $.fn[o] = function(f){return this.bind(o, f);}; })();}})(); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/ajax.js/clean/ajax/ajax.js |
this.submit(function(e){ e.preventDefault(); $(this).getForm().putForm(target, pre_cb, post_cb); return this; }); | (function(){ var e = ['ajaxStart','ajaxComplete','ajaxError','ajaxSuccess']; for ( var i = 0; i < e.length; i++ ){ (function(){ var o = e[i]; $.fn[o] = function(f){return this.bind(o, f);}; })();} })(); | this.submit(function(e){ e.preventDefault(); $(this).getForm().putForm(target, pre_cb, post_cb); return this; }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/70cab836b0d87ec1a94658411c398658780f5810/ajax.js/buggy/ajax/ajax.js |
this.each(function(value, index) { if (!(result &= (iterator || Prototype.K)(value, index))) throw $break; }); | this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; } }); | this.each(function(value, index) { if (!(result &= (iterator || Prototype.K)(value, index))) throw $break; }); | 5150 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5150/44d85be227cc8496144d82df38b82dfcc1224861/prototype.js/clean/intermine/webapp/main/resources/main/js/prototype.js |
function() {return new XMLHttpRequest()} | this.each(function(value, index) { if (!(result &= (iterator || Prototype.K)(value, index))) throw $break; }); | function() {return new XMLHttpRequest()} | 2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/9867ca01ad65827d23c0bf6cc14d8a64137e927d/prototype.js/buggy/tracks/public/javascripts/prototype.js |
z[j] = function(a,b){ if(c(a,b,"height")) h[j](); if(c(a,b,"width")) w[j](); }; | return a ? this.each(function(){ new fx.Opacity(this,o).show(); }) : this._show(); | z[j] = function(a,b){ if(c(a,b,"height")) h[j](); if(c(a,b,"width")) w[j](); }; | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f0034d64e3890553f214db0708b9a831476ea46a/fx.js/buggy/fx/fx.js |
$A(element.childNodes).each( function(child) { if(child.nodeType==3) { child.nodeValue.toArray().each( function(character) { | child.nodeValue.toArray().each( function(character) { | $A(element.childNodes).each( function(child) { if(child.nodeType==3) { child.nodeValue.toArray().each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == ' ' ? String.fromCharCode(160) : character), child); ... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/effects.js/buggy/actionpack/lib/action_view/helpers/javascripts/effects.js |
Element.remove(child); } }); | $A(element.childNodes).each( function(child) { if(child.nodeType==3) { child.nodeValue.toArray().each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == ' ' ? String.fromCharCode(160) : character), child); ... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/effects.js/buggy/actionpack/lib/action_view/helpers/javascripts/effects.js | |
test("serialize()", function() { expect(1); var data = $(':input').not('button').serialize(); ok( data == 'action=Test&text2=Test&radio1=on&radio2=on&check=on&=on&hidden=&foo[bar]=&name=name&=foobar&select1=&select2=3&select3=1', 'Check form serialization as query string' ); | test("load(String, Object, Function) - check scripts", function() { expect(7); stop(); testFoo = undefined; var verifyEvaluation = function() { ok( foobar == "bar", 'Check if script src was evaluated after load' ); ok( $('#foo').html() == 'foo', 'Check if script evaluation has modified DOM'); ok( $('#ap').html() == 'ba... | test("serialize()", function() { expect(1); var data = $(':input').not('button').serialize(); // ignore button, IE takes text content as value, not relevant for this test ok( data == 'action=Test&text2=Test&radio1=on&radio2=on&check=on&=on&hidden=&foo[bar]=&name=name&=foobar&select1=&select2=3&select3=1', 'Check form s... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js |
setTimeout(function(u) { gURLBar.value = u; handleURLBarCommand(); }, 0, url); | setTimeout(function(aTabElt) { gBrowser.selectedTab = aTabElt; }, 0, gBrowser.addTab(aUrl, aReferrer, aCharset, aPostData)); | setTimeout(function(u) { gURLBar.value = u; handleURLBarCommand(); }, 0, url); | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e1400c9125f1ce96798a8c3ff2c3e918c4b7163a/browser.js/buggy/browser/base/content/browser.js |
if (result &= (iterator || Prototype.K)(value, index)) throw _break; | if (!(result &= (iterator || Prototype.K)(value, index))) throw $break; | this.each(function(value, index) { if (result &= (iterator || Prototype.K)(value, index)) throw _break; }); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e){} | try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e) { } | $.post(strURL, arrValues, function(strHTML) { // // Update the element with the new HTML objElement.html(strHTML); // // Evaluate the scripts objElement.html(strHTML).find("script").each(function(){ try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e){} }); // // Callback handler if ... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f1c8b3ffc0d8dfd9dd2cb28c1e569d66d116cc9a/ajax.js/clean/ajax/ajax.js |
cur_dates.forEach (function (dateToAdd) { if (!dates.some(function (d) { return d.compare(dateToAdd) == 0; })) { if (aIncludeExceptions && rinfo.mExceptions) { if (!rinfo.getExceptionFor(dateToAdd, false)) dates.push(dateToAdd); } else { dates.push(dateToAdd); } } }); | dates = dates.filter(function (d) { return d.compare(dateToRemove) != 0; }); | cur_dates.forEach (function (dateToAdd) { if (!dates.some(function (d) { return d.compare(dateToAdd) == 0; })) { if (aIncludeExceptions && rinfo.mExceptions) { ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5906b996bc0c90fb48269f12e83119c5c2bcd9ff/calRecurrenceInfo.js/buggy/calendar/base/src/calRecurrenceInfo.js |
return this.domManip(arguments, false, 1, function(a){ this.parentNode.insertBefore( a, this ); | return this.domManip(arguments, true, -1, function(a){ this.insertBefore( a, this.firstChild ); | return this.domManip(arguments, false, 1, function(a){ this.parentNode.insertBefore( a, this ); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ccf9d4406296fed48aae0989f2303287f133ed9e/jquery.js/clean/src/jquery/jquery.js |
$A(element.childNodes).each( function(child) { if(child.nodeType==3) { child.nodeValue.toArray().each( function(character) { | child.nodeValue.toArray().each( function(character) { | $A(element.childNodes).each( function(child) { if(child.nodeType==3) { child.nodeValue.toArray().each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == ' ' ? String.fromCharCode(160) : character), child); ... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/effects.js/clean/railties/html/javascripts/effects.js |
Element.remove(child); } }); | $A(element.childNodes).each( function(child) { if(child.nodeType==3) { child.nodeValue.toArray().each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == ' ' ? String.fromCharCode(160) : character), child); ... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/effects.js/clean/railties/html/javascripts/effects.js | |
if (result &= (iterator || Prototype.K)(value, index)) throw _break; | if (!(result &= (iterator || Prototype.K)(value, index))) throw $break; | this.each(function(value, index) { if (result &= (iterator || Prototype.K)(value, index)) throw _break; }); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js |
jQuery.class.add(this,c); | jQuery.className.add(this,c); | return this.each(function(){ jQuery.class.add(this,c); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/0fd3648d45be72bcfe76b95715b38dd5904b47da/jquery.js/clean/jquery/jquery.js |
function() {return new XMLHttpRequest()} | this.each(function(value, index) { if (!(result &= (iterator || Prototype.K)(value, index))) throw $break; }); | function() {return new XMLHttpRequest()} | 708 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/708/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/clean/public/javascripts/prototype.js |
jQuery.prototype["do"+o] = function(){ return this.trigger(o); }; | jQuery.fn["one"+o] = function(f){ return this.bind(o, function(e){ if ( this[o+f] !== null ) return; this[o+f]++; return f.apply(this, [e]); }); }; | jQuery.prototype["do"+o] = function(){ return this.trigger(o); }; | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
return this.domManip(arguments, true, -1, function(a){ this.insertBefore( a, this.firstChild ); | return this.domManip(arguments, false, 1, function(a){ this.parentNode.insertBefore( a, this ); | return this.domManip(arguments, true, -1, function(a){ this.insertBefore( a, this.firstChild ); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/69efa31318238a1af5644da7aa5dc691dc33b376/jquery.js/clean/src/jquery/jquery.js |
if ( count++ ) return; | if ( count++ ) return true; | jQuery.fn["one"+o] = function(f){ // Attach the event listener return this.each(function(){ var count = 0; // Add the event jQuery.event.add( this, o, function(e){ // If this function has already been executed, stop if ( count++ ) return; // And execute the bound function return f.app... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/af961d58c244224c14f3bb519214485cb670c64d/event.js/buggy/src/event/event.js |
f.apply(this, arguments); | return f.apply(this, arguments); | jQuery.fn["one"+o] = function(f){ // save cloned reference to this var element = jQuery(this); var handler = function() { // unbind itself when executed element.unbind(o, handler); element = null; // apply original handler with the same arguments f.apply(this, arguments); }; return this.bind(... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/a8bafe78745247dd13e3472582df29471e50aa28/event.js/buggy/src/event/event.js |
element = null; | jQuery.fn["one"+o] = function(f){ // save cloned reference to this var element = jQuery(this); var handler = function() { // unbind itself when executed element.unbind(o, handler); // apply original handler with the same arguments f.apply(this, arguments); }; return this.bind(o, handler); }; | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/8b875055eceb720e14ddac8f6096d08b532c7b5f/event.js/buggy/src/event/event.js | |
$A(elements).each( function(element, index) { new effect(element, Object.extend(options, { delay: delay + index * speed })); }); | this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) { | $A(elements).each( function(element, index) { new effect(element, Object.extend(options, { delay: delay + index * speed })); }); | 2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/8a342036a177e27b9f776c900bbae999b6ce8e3c/effects.js/buggy/tracks/public/javascripts/effects.js |
return this.each(function(){ var count = 0; jQuery.event.add( this, o, function(e){ if ( count++ ) return true; return f.apply(this, [e]); }); }); | return this.bind(o, f, 1); | jQuery.fn["one"+o] = function(f){ // Attach the event listener return this.each(function(){ var count = 0; // Add the event jQuery.event.add( this, o, function(e){ // If this function has already been executed, stop if ( count++ ) return true; // And execute the bound function return ... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/897fbfe89c90de5f20a3eed2aeb187c625cfb43d/event.js/buggy/src/event/event.js |
$.post(strURL, arrValues, function(strHTML) { // // Update the element with the new HTML objElement.html(strHTML); // // Evaluate the scripts objElement.html(strHTML).find("script").each(function(){ try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e) { } }); // // Callback handl... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/3386923dccbb9f0e7a9518109d54bcbd0f8f863d/ajax.js/clean/ajax/ajax.js | ||
$.post(strURL, arrValues, function(strHTML) { // // Update the element with the new HTML objElement.html(strHTML); // // Evaluate the scripts objElement.html(strHTML).find("script").each(function(){ try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e) { } }); // // Callback handl... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/3386923dccbb9f0e7a9518109d54bcbd0f8f863d/ajax.js/clean/ajax/ajax.js | ||
$.post(strURL, arrValues, function(strHTML) { // // Update the element with the new HTML objElement.html(strHTML); // // Evaluate the scripts objElement.html(strHTML).find("script").each(function(){ try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e) { } }); // // Callback handl... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/3386923dccbb9f0e7a9518109d54bcbd0f8f863d/ajax.js/clean/ajax/ajax.js | ||
fn.apply(this, args || []); | fn.apply(this, args); | this.events[type].keys.each(function(fn){ fn.apply(this, args || []); }, this); | 5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/32ee0a548ddaba7c3dbdbdfd0968c0a7603caa9a/Element.js/clean/Native/Element.js |
try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e) { } | try { $.eval( this.text || this.textContent || this.innerHTML || "" ); } catch(e) { } | function(sResult) { sResult = $.httpData(sResult); // Update the element with the new HTML el.html(sResult); // Evaluate the scripts AFTER this (so you can allready modify the new HTML!) el.html(sResult).find("script").each(function(){ try { $.eval( this.text || this.textContent || this.innerHTML ); } ca... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/b52b19ac4a87f5c824b08be53ffbacc4b520711b/ajax.js/clean/ajax/ajax.js |
return this.bind(o, function(e){ | return this.each(function(){ var count = 0; jQuery.event.add( this, o, function(e){ if ( count++ ) return; | jQuery.fn["one"+o] = function(f){ // Attach the event listener return this.bind(o, function(e){ // TODO: Remove the event listener, instead of this hack // If this function has already been executed, stop if ( this[o+f] !== null ) return; // Otherwise, mark as having been executed this[o+f]... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f5f6cbc8c0b6441fb1d106749f7124659a3816f0/event.js/clean/event/event.js |
if ( this[o+f] !== null ) return; this[o+f]++; return f.apply(this, [e]); | return f.apply(this, [e]); }); | jQuery.fn["one"+o] = function(f){ // Attach the event listener return this.bind(o, function(e){ // TODO: Remove the event listener, instead of this hack // If this function has already been executed, stop if ( this[o+f] !== null ) return; // Otherwise, mark as having been executed this[o+f]... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f5f6cbc8c0b6441fb1d106749f7124659a3816f0/event.js/clean/event/event.js |
this.$$oldblock = $.getCSS(this,"display"); if ( this.$$oldblock == "none" ) this.$$oldblock = 'block'; this.style.display = 'none'; }); | $.class.add(this,c); }); | return this.each(function(){ this.$$oldblock = $.getCSS(this,"display"); if ( this.$$oldblock == "none" ) this.$$oldblock = 'block'; this.style.display = 'none'; }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/jquery.js/buggy/jquery/jquery.js |
return expressions.map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) { | return expression.strip().split(/\s+/).inject([null], function(results, expr) { | return expressions.map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); ... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
}).flatten(); | return expressions.map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); ... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js | |
return expressions.map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) { | return expression.strip().split(/\s+/).inject([null], function(results, expr) { | return expressions.map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); ... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
}).flatten(); | return expressions.map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); ... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js | |
return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { | return results.inject([], function(elements, result) { | return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); }); }); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
}); | return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); }); }); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js | |
return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { | return results.inject([], function(elements, result) { | return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); }); }); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
}); | return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); }); }); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js | |
return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); }); | return $A($(form).getElementsByTagName('*')).inject([], function(elements, child) { if (Form.Element.Serializers[child.tagName.toLowerCase()]) elements.push(Element.extend(child)); return elements; }); | return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); }); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); }); | return $A($(form).getElementsByTagName('*')).inject([], function(elements, child) { if (Form.Element.Serializers[child.tagName.toLowerCase()]) elements.push(Element.extend(child)); return elements; }); | return results.inject([], function(elements, result) { return elements.concat(selector.findElements(result || element)); }); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js |
for ( var i = 0; i < e.length; i++ ){ (function(){ var o = e[i]; jQuery.fn[o] = function(f){return this.bind(o, f);}; })();} | jQuery.ajax( "GET", url, null, function(r) { if ( callback ) callback( jQuery.httpData(r,type) ); }); | for ( var i = 0; i < e.length; i++ ){ (function(){ var o = e[i]; jQuery.fn[o] = function(f){return this.bind(o, f);}; })();} | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/ajax.js/clean/ajax/ajax.js |
ef = new fx.Opacity(this,o); | ef = new $.fx.Opacity(this,o); | return a ? this.each(function(){ ef = new fx.Opacity(this,o); ef.custom(ef.cur(),parseFloat(ev)); ef.show(); }) : this._show(); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/65b1081e9e9f9b8c4a0f1621c98e823eac3e6bcf/fx.js/buggy/fx/fx.js |
return this.each(function(){ if ( !f && this.nodeName == 'IMG' && !this.offsetWidth && !this.offsetHeight ) { var self = this; setTimeout(function(){ $(self).center(true); }, 13); } else { var s = this.style; var p = this.parentNode; if ( $.css(p,"position") == 'static' ) { p.style.position = 'relative'; } s.position =... | return a ? this.each(function(){ ef = new fx.Opacity(this,o); ef.custom(ef.cur(),parseFloat(ev)); ef.show(); }) : this._show(); | return this.each(function(){ if ( !f && this.nodeName == 'IMG' && !this.offsetWidth && !this.offsetHeight ) { var self = this; setTimeout(function(){ $(self).center(true); }, 13); } else { var s = this.style; var p = this.parentNode; if ( $.css(p,"position") == 'static' ) { p.style.position = '... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/497bfb7909ada30e3410827808bc0c1a0d9843a7/fx.js/clean/fx/fx.js |
test("serialize()", function() { expect(1); var data = $(':input').not('button').serialize(); ok( data == 'action=Test&text2=Test&radio1=on&radio2=on&check=on&=on&hidden=&foo[bar]=&name=name&=foobar&select1=&select2=3&select3=1', 'Check form serialization as query string' ); | test("test global handlers - success", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }, complete = function() { counter.complete++ }; $('#foo').ajaxStart(complete).ajaxStop(complete).ajaxComplete(com... | test("serialize()", function() { expect(1); var data = $(':input').not('button').serialize(); // ignore button, IE takes text content as value, not relevant for this test ok( data == 'action=Test&text2=Test&radio1=on&radio2=on&check=on&=on&hidden=&foo[bar]=&name=name&=foobar&select1=&select2=3&select3=1', 'Check form s... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js |
jQuery.ajax( "GET", url, null, function(r, status) { if ( callback ) callback( jQuery.httpData(r,type), status ); }, ifModified); | jQuery.fn[o] = function(f){ return this.bind(o, f); }; | jQuery.ajax( "GET", url, null, function(r, status) { if ( callback ) callback( jQuery.httpData(r,type), status ); }, ifModified); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/cb53fc02b68ca267f9eddd8fd4f5d92ef08ae022/ajax.js/buggy/src/ajax/ajax.js |
$('#first').load('data/test.html', function() { ok( $('#first').html().match(/^html text/), 'Check content after loading html' ); ok( testFoo == "foo", 'Check if script was evaluated after load' ); setTimeout(verifyEvaluation, 600); }); | test("load(String, Object, Function) - inject without callback", function() { expect(1); stop(); $('#first').load("data/name.php"); }); | $('#first').load('data/test.html', function() { ok( $('#first').html().match(/^html text/), 'Check content after loading html' ); ok( testFoo == "foo", 'Check if script was evaluated after load' ); setTimeout(verifyEvaluation, 600); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js |
function(row) { var td = document.createElement("td"); td.setAttribute("id", "t" + rownum + "-results"); td.innerHTML = ""; rownum++; return td; } | function(row) { var td = document.createElement("td"); td.setAttribute("id", "t" + rownum + "-results"); td.innerHTML = ""; rownum++; return td; } | function(row) { var td = document.createElement("td"); td.setAttribute("id", "t" + rownum + "-results"); td.innerHTML = ""; rownum++; return td; } | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/a6659fd28de5e0d001fe9e46da6cdb9dd78104c0/testsuite.js/buggy/web/testsuite.js |
$('*', this).each(function() { if (this.disabled || this.type == 'reset' || (this.type == 'checkbox' && !this.checked) || (this.type == 'radio' && !this.checked)) return; if (this.type == 'submit' || this.type == 'image') { if (this.form.clicked != this) return; if (this.type == 'image') { if (this.form.clicked_x) { ... | for ( var i = 0; i < e.length; i++ ){ (function(){ var o = e[i]; $.fn[o] = function(f){return this.bind(o, f);}; })();} | $('*', this).each(function() { if (this.disabled || this.type == 'reset' || (this.type == 'checkbox' && !this.checked) || (this.type == 'radio' && !this.checked)) return; if (this.type == 'submit' || this.type == 'image') { if (this.form.clicked != this) return; if (this.type == 'image') { ... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/70cab836b0d87ec1a94658411c398658780f5810/ajax.js/buggy/ajax/ajax.js |
if (result &= (iterator || Prototype.K)(value, index)) throw $break; | result = result && !!(iterator || Prototype.K)(value, index); if (!result) throw $break; | this.each(function(value, index) { if (result &= (iterator || Prototype.K)(value, index)) throw $break; }); | 5150 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5150/44d85be227cc8496144d82df38b82dfcc1224861/prototype.js/clean/intermine/webapp/main/resources/main/js/prototype.js |
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); | this.each(function(value, index) { if (result &= (iterator || Prototype.K)(value, index)) throw $break; }); | setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); | 2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/9867ca01ad65827d23c0bf6cc14d8a64137e927d/prototype.js/buggy/tracks/public/javascripts/prototype.js |
for(var i in fx.fn){(function(){ var j = fx.fn[i]; z[j] = function(a,b){p[j]();r[j](a,b);}; })()} | return this.each(function(){ if ( !f && this.nodeName == 'IMG' && !this.offsetWidth && !this.offsetHeight ) { var self = this; setTimeout(function(){ $(self).center(true); }, 13); } else { var s = this.style; var p = this.parentNode; if ( $.css(p,"position") == 'static' ) p.style.position = 'relative'; s.position = 'ab... | for(var i in fx.fn){(function(){ var j = fx.fn[i]; z[j] = function(a,b){p[j]();r[j](a,b);}; })()} | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f0034d64e3890553f214db0708b9a831476ea46a/fx.js/buggy/fx/fx.js |
child.nodeValue.toArray().each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == ' ' ? String.fromCharCode(160) : character), child); }); | $A(elements).each( function(element, index) { new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay })); }); | child.nodeValue.toArray().each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == ' ' ? String.fromCharCode(160) : character), child); }); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/effects.js/buggy/actionpack/lib/action_view/helpers/javascripts/effects.js |
test("test global handlers - success", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }, complete = function() { counter.complete++ }; $('#foo').ajaxStart(complete).ajaxStop(complete).ajaxComplete(com... | $('#first').load('data/test.html', function() { ok( $('#first').html().match(/^html text/), 'Check content after loading html' ); ok( testFoo == "foo", 'Check if script was evaluated after load' ); setTimeout(verifyEvaluation, 600); }); | test("test global handlers - success", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }, complete = function() { counter.complete++ }; $('#foo').ajaxStart(complete).ajaxStop(complete).ajaxComplete(c... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js |
setTimeout(function() { this.WebSearch(); }, 0); | setTimeout(function(u) { gURLBar.value = u; handleURLBarCommand(); }, 0, url); | setTimeout(function() { this.WebSearch(); }, 0); | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e1400c9125f1ce96798a8c3ff2c3e918c4b7163a/browser.js/buggy/browser/base/content/browser.js |
results.push(iterator(value, index)); | if (result &= (iterator || Prototype.K)(value, index)) throw $break; | this.each(function(value, index) { results.push(iterator(value, index)); }); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e){} | try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e) { } | objElement.html(strHTML).find("script").each(function(){ try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e){} }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f1c8b3ffc0d8dfd9dd2cb28c1e569d66d116cc9a/ajax.js/clean/ajax/ajax.js |
if (!dates.some(function (d) { return d.compare(dateToAdd) == 0; })) { | cur_dates.forEach (function (dateToAdd) { if (!dates.some(function (d) { return d.compare(dateToAdd) == 0; })) { dates.push(dateToAdd); } }); | if (!dates.some(function (d) { return d.compare(dateToAdd) == 0; })) { | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5906b996bc0c90fb48269f12e83119c5c2bcd9ff/calRecurrenceInfo.js/buggy/calendar/base/src/calRecurrenceInfo.js |
return this.domManip(arguments, false, -1, function(a){ this.parentNode.insertBefore( a, this.nextSibling ); | return this.domManip(arguments, false, 1, function(a){ this.parentNode.insertBefore( a, this ); | return this.domManip(arguments, false, -1, function(a){ this.parentNode.insertBefore( a, this.nextSibling ); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ccf9d4406296fed48aae0989f2303287f133ed9e/jquery.js/clean/src/jquery/jquery.js |
jQuery.ajax( "GET", url, null, function(r) { if ( callback ) callback( jQuery.httpData(r,type) ); }); | jQuery.ajax( "GET", url, null, function(r, status) { if ( callback ) callback( jQuery.httpData(r,type), status ); }, ifModified); | jQuery.ajax( "GET", url, null, function(r) { if ( callback ) callback( jQuery.httpData(r,type) ); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/5ec5de6953a22b33de46897c8e915eed300338e6/ajax.js/buggy/src/ajax/ajax.js |
child.nodeValue.toArray().each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == ' ' ? String.fromCharCode(160) : character), child); }); | $A(elements).each( function(element, index) { new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay })); }); | child.nodeValue.toArray().each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == ' ' ? String.fromCharCode(160) : character), child); }); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/effects.js/clean/railties/html/javascripts/effects.js |
results.push(iterator(value, index)); | if (result &= (iterator || Prototype.K)(value, index)) throw $break; | this.each(function(value, index) { results.push(iterator(value, index)); }); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js |
jQuery.class.remove(this,c); | jQuery.className.remove(this,c); | return this.each(function(){ jQuery.class.remove(this,c); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/0fd3648d45be72bcfe76b95715b38dd5904b47da/jquery.js/clean/jquery/jquery.js |
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); | this.each(function(value, index) { if (result &= (iterator || Prototype.K)(value, index)) throw $break; }); | setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10); | 708 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/708/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/clean/public/javascripts/prototype.js |
jQuery.prototype["one"+o] = function(f){ return this.bind(o, function(e){ | return this.bind(o, function(e){ | jQuery.prototype["one"+o] = function(f){ // Attach the event listener return this.bind(o, function(e){ // TODO: Remove the event listener, instead of this hack // If this function has already been executed, stop if ( this[o+f] !== null ) return true; // Otherwise, mark as having been execu... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
if ( this[o+f] !== null ) return true; | if ( this[o+f] !== null ) return; | jQuery.prototype["one"+o] = function(f){ // Attach the event listener return this.bind(o, function(e){ // TODO: Remove the event listener, instead of this hack // If this function has already been executed, stop if ( this[o+f] !== null ) return true; // Otherwise, mark as having been execu... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.