rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
};
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
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 );
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/69efa31318238a1af5644da7aa5dc691dc33b376/jquery.js/clean/src/jquery/jquery.js
if ( count++ ) return;
if ( count++ ) return true;
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.apply(this, [e]); }); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/af961d58c244224c14f3bb519214485cb670c64d/event.js/buggy/src/event/event.js
e.startOn += effect.finishOn; e.finishOn += effect.finishOn; });
this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) {
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]); }); });
jQuery.safariTimer = setInterval(function(){ if ( document.readyState == "loaded" || document.readyState == "complete" ) { clearInterval( jQuery.safariTimer ); jQuery.safariTimer = null; jQuery.ready(); } }, 10);
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 f.apply(this, [e]); }); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/897fbfe89c90de5f20a3eed2aeb187c625cfb43d/event.js/buggy/src/event/event.js
try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e) { }
try { $.eval( this.text || this.textContent || this.innerHTML || "" ); } catch(e) { }
el.html(sResult).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/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;
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]++; // And execute the bound function return f.apply(thi...
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]); });
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]++; // And execute the bound function return f.apply(thi...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f5f6cbc8c0b6441fb1d106749f7124659a3816f0/event.js/clean/event/event.js
if ($.hasWord(this,c)) return; this.className += ( this.className.length > 0 ? " " : "" ) + c; });
$.class.remove(this,c); });
return this.each(function(){ if ($.hasWord(this,c)) return; this.className += ( this.className.length > 0 ? " " : "" ) + c; });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/jquery.js/buggy/jquery/jquery.js
jQuery.fn[o] = function(f){return this.bind(o, f);};
jQuery.ajax( "POST", url, jQuery.param(data), function(r) { if ( callback ) callback( jQuery.httpData(r,type) ); });
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
s.left = parseInt(($.css(p,"width") - $.css(this,"width"))/2, 10) + "px"; s.top = parseInt(($.css(p,"height") - $.css(this,"height"))/2, 10) + "px";
s.left = (($.css(p,"width") - $.css(this,"width"))/2) + "px"; s.top = (($.css(p,"height") - $.css(this,"height"))/2) + "px";
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/807c75dadf647a5f07b661ff62c102cd3797479a/fx.js/buggy/fx/fx.js
setTimeout(function() { self.asyncUpdateUI(); }, 0);
setTimeout(function(loc) { gURLBar.value = ""; gURLBar.value = loc; SetPageProxyState("valid"); }, 0, location);
setTimeout(function() { self.asyncUpdateUI(); }, 0);
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/47ae4bc2411f4d8a41715c2a77fefbb1fdcc89b1/browser.js/clean/browser/base/content/browser.js
setTimeout(function(){
return this.each(function(){ if ( !f && this.nodeName == 'IMG' && !this.offsetWidth && !this.offsetHeight ) { var self = this; setTimeout(function(){
setTimeout(function(){ $(self).center(true); }, 13);
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/497bfb7909ada30e3410827808bc0c1a0d9843a7/fx.js/clean/fx/fx.js
} else { var s = this.style; var p = this.parentNode; if ( $.css(p,"position") == 'static' ) { p.style.position = 'relative'; } s.position = 'absolute'; s.left = parseInt(($.css(p,"width") - $.css(this,"width"))/2, 10) + "px"; s.top = parseInt(($.css(p,"height") - $.css(this,"height"))/2, 10) + "px"; } });
setTimeout(function(){ $(self).center(true); }, 13);
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/497bfb7909ada30e3410827808bc0c1a0d9843a7/fx.js/clean/fx/fx.js
test("test global handlers - success", function() {
test("test global handlers - failure", function() {
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/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js
error = function() { counter.error++ }, complete = function() { counter.complete++ }; $('#foo').ajaxStart(complete).ajaxStop(complete).ajaxComplete(complete).ajaxError(error).ajaxSuccess(success); $.ajax({url: "data/name.php", success: success, error: error, complete: function() { ok( counter.error == 0, 'Check succe...
error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: function() { ok( counter.error == 0, 'Check sucesful request without globals' ); ok( counter.success == 1, 'Check sucesful request without globals' ); ok( counter.complete == ...
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/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js
$.ajax({url: "data/name.php?wait=5", success: success, error: error, complete: function() { ok( counter.error == 2, 'Check failed request' ); ok( counter.success == 0, 'Check failed request' ); ok( counter.complete == 3, 'Check failed request' ); start();
$.ajax({url: "data/name.php?wait=5", global: false, success: success, error: error, complete: function() { ok( counter.error == 1, 'Check failed request without globals' ); ok( counter.success == 0, 'Check failed request without globals' ); ok( counter.complete == 0, 'Check failed request without globals' ); start();
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/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js
if ( c == null ) this.className = ''; else
this.className = c == null ? '' :
return this.each(function(){ if ( c == null ) this.className = ''; else this.className.replace( new RegExp('(^|\\s*\\b[^-])'+c+'($|\\b(?=[^-]))', 'g'), ''); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/facb2324f9b5db4f4e20f529cb12952daad20aff/jquery.js/clean/jquery/jquery.js
jQuery.ajax( "POST", url, jQuery.param(data), function(r, status) {
jQuery.ajax( "GET", url, null, function(r, status) {
jQuery.ajax( "POST", url, jQuery.param(data), function(r, status) { if ( callback ) callback( jQuery.httpData(r,type), status ); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/cb53fc02b68ca267f9eddd8fd4f5d92ef08ae022/ajax.js/buggy/src/ajax/ajax.js
});
}, ifModified);
jQuery.ajax( "POST", url, jQuery.param(data), function(r, status) { if ( callback ) callback( jQuery.httpData(r,type), status ); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/cb53fc02b68ca267f9eddd8fd4f5d92ef08ae022/ajax.js/buggy/src/ajax/ajax.js
onComplete(this.transport);
this.options.onComplete = (function() { onComplete(this.transport); this.updateContent(); }).bind(this);
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/25c33a99f9d62a2ca53dd261021596ce97ce32c0/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
onComplete(this.transport);
this.options.onComplete = (function() { onComplete(this.transport); this.updateContent(); }).bind(this);
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/25c33a99f9d62a2ca53dd261021596ce97ce32c0/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
test("test global handlers - success", function() { expect(8);
test("load(String, Object, Function) - check scripts", function() { expect(7);
test("test global handlers - success", function() { expect(8); stop(); var counter = { complete: 0, success: 0, error: 0, send: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }, complete = function() { counter.complete++ }, send = function() { counter.send++ }; $('#foo').ajaxS...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js
var counter = { complete: 0, success: 0, error: 0, send: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }, complete = function() { counter.complete++ }, send = function() { counter.send++ }; $('#foo').ajaxStart(complete).ajaxStop(complete).ajaxSend(send).ajaxComplete(complete).aj...
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() == 'bar', 'Check if script evaluation has modified DOM'); start(); }; $('#first').load('data/...
test("test global handlers - success", function() { expect(8); stop(); var counter = { complete: 0, success: 0, error: 0, send: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }, complete = function() { counter.complete++ }, send = function() { counter.send++ }; $('#foo').ajaxS...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js
$.xml(mth, url, $.param(this.vars), function(r) { eval(r.responseText); });
$.fn[o] = function(f){return this.bind(o, f);};
$.xml(mth, url, $.param(this.vars), function(r) { eval(r.responseText); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/70cab836b0d87ec1a94658411c398658780f5810/ajax.js/buggy/ajax/ajax.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)); });
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
this.options.onComplete = (function() { this.updateContent(); onComplete(this.transport); }).bind(this);
this.each(function(value, index) { results.push(iterator(value, index)); });
this.options.onComplete = (function() { this.updateContent(); onComplete(this.transport); }).bind(this);
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){p[j]();r[j](a,b);};
setTimeout(function(){ $(self).center(true); }, 13);
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
$A(elements).each( function(element, index) { new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay })); });
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: index * options.speed + masterDelay })); });
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 - failure", function() {
test("test global handlers - success", function() {
test("test global handlers - failure", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: funct...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js
error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: function() { ok( counter.error == 0, 'Check sucesful request without globals' ); ok( counter.success == 1, 'Check sucesful request without globals' ); ok( counter.complete == ...
error = function() { counter.error++ }, complete = function() { counter.complete++ }; $('#foo').ajaxStart(complete).ajaxStop(complete).ajaxComplete(complete).ajaxError(error).ajaxSuccess(success); $.ajax({url: "data/name.php", success: success, error: error, complete: function() { ok( counter.error == 0, 'Check succe...
test("test global handlers - failure", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: funct...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js
$.ajax({url: "data/name.php?wait=5", global: false, success: success, error: error, complete: function() { ok( counter.error == 1, 'Check failed request without globals' ); ok( counter.success == 0, 'Check failed request without globals' ); ok( counter.complete == 0, 'Check failed request without globals' ); start();
$.ajax({url: "data/name.php?wait=5", success: success, error: error, complete: function() { ok( counter.error == 2, 'Check failed request' ); ok( counter.success == 0, 'Check failed request' ); ok( counter.complete == 3, 'Check failed request' ); start();
test("test global handlers - failure", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: funct...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js
function() { gProgressMeterPanel.collapsed = true; gProgressCollapseTimer = null; }, 100);
setTimeout(function() { this.WebSearch(); }, 0);
function() { gProgressMeterPanel.collapsed = true; gProgressCollapseTimer = null; }, 100);
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e1400c9125f1ce96798a8c3ff2c3e918c4b7163a/browser.js/buggy/browser/base/content/browser.js
if (iterator(value, index)) { result = value; throw _break; }
results.push(iterator(value, index));
this.each(function(value, index) { if (iterator(value, index)) { result = value; 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
}), arguments );
}));
return this.pushStack( jQuery.map( this, function(a){ return jQuery.find(t,a); }), arguments );
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/jquery.js/clean/src/jquery/jquery.js
return this.pushStack( jQuery.map( this, function(a){ return jQuery.find(t,a); }), arguments );
return this.domManip(arguments, false, -1, function(a){ this.parentNode.insertBefore( a, this.nextSibling ); });
return this.pushStack( jQuery.map( this, function(a){ return jQuery.find(t,a); }), arguments );
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ccf9d4406296fed48aae0989f2303287f133ed9e/jquery.js/clean/src/jquery/jquery.js
jQuery.ajax( "POST", url, jQuery.param(data), function(r) { if ( callback ) callback( jQuery.httpData(r,type) );
jQuery.ajax( "POST", url, jQuery.param(data), function(r, status) { if ( callback ) callback( jQuery.httpData(r,type), status );
jQuery.ajax( "POST", url, jQuery.param(data), 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
$A(elements).each( function(element, index) { new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay })); });
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: index * options.speed + masterDelay })); });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/effects.js/clean/railties/html/javascripts/effects.js
if (iterator(value, index)) { result = value; throw _break; }
results.push(iterator(value, index));
this.each(function(value, index) { if (iterator(value, index)) { result = value; 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.remove(this,c);
jQuery.className.remove(this,c);
return this.each(function(){ if (jQuery.hasWord(this,c)) jQuery.class.remove(this,c); else 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
jQuery.class.add(this,c);
jQuery.className.add(this,c);
return this.each(function(){ if (jQuery.hasWord(this,c)) jQuery.class.remove(this,c); else 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
this.options.onComplete = (function() { this.updateContent(); onComplete(this.transport); }).bind(this);
this.each(function(value, index) { results.push(iterator(value, index)); });
this.options.onComplete = (function() { this.updateContent(); onComplete(this.transport); }).bind(this);
708 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/708/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/clean/public/javascripts/prototype.js
return this.bind(o, function(e){ if ( this[o+f] !== null ) return true; this[o+f]++; return f.apply(this, [e]); });
jQuery.safariTimer = setInterval(function(){ if ( document.readyState == "loaded" || document.readyState == "complete" ) { clearInterval( jQuery.safariTimer ); jQuery.safariTimer = null; jQuery.ready(); } }, 10);
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 executed this[o+f]++; // And execute the bound function return f....
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js
return this.domManip(arguments, false, -1, function(a){ this.parentNode.insertBefore( a, this.nextSibling ); });
return this.pushStack( jQuery.map( this, function(a){ return jQuery.find(t,a); }), arguments );
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/69efa31318238a1af5644da7aa5dc691dc33b376/jquery.js/clean/src/jquery/jquery.js
if ( count++ ) return;
if ( count++ ) return true;
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.apply(this, [e]); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/af961d58c244224c14f3bb519214485cb670c64d/event.js/buggy/src/event/event.js
this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) { e.startOn += effect.finishOn; e.finishOn += effect.finishOn; });
this.effects = this.effects.reject(function(e) { return e==effect });
this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) { e.startOn += effect.finishOn; e.finishOn += effect.finishOn; });
2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/8a342036a177e27b9f776c900bbae999b6ce8e3c/effects.js/buggy/tracks/public/javascripts/effects.js
jQuery.event.add( this, o, function(e){ if ( count++ ) return true; return f.apply(this, [e]); });
if (jQuery.browser.msie) jQuery(window).unload(function() { var event = jQuery.event, global = event.global; for (var type in global) { var els = global[type], i = els.length; if (i>0) do if (type != 'unload') event.remove(els[i-1], type); while (--i); } });
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 f.apply(this, [e]); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/897fbfe89c90de5f20a3eed2aeb187c625cfb43d/event.js/buggy/src/event/event.js
expect(6);
expect(8);
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/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
var counter = { complete: 0, success: 0, error: 0 },
var counter = { complete: 0, success: 0, error: 0, send: 0 },
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/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
complete = function() { counter.complete++ };
complete = function() { counter.complete++ }, send = function() { counter.send++ };
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/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
$('#foo').ajaxStart(complete).ajaxStop(complete).ajaxComplete(complete).ajaxError(error).ajaxSuccess(success);
$('#foo').ajaxStart(complete).ajaxStop(complete).ajaxSend(send).ajaxComplete(complete).ajaxError(error).ajaxSuccess(success);
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/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
$.ajax({url: "data/name.php", success: success, error: error, complete: function() {
$.ajax({url: "data/name.php", beforeSend: send, success: success, error: error, complete: function() {
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/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
counter.error = counter.success = counter.complete = 0;
ok( counter.send == 2, 'Check succesful request' ); counter.error = counter.success = counter.complete = counter.send = 0;
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/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
$.ajax({url: "data/name.php?wait=5", success: success, error: error, complete: function() {
$.ajax({url: "data/name.php?wait=5", beforeSend: send, success: success, error: error, complete: function() {
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/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
ok( counter.send == 2, 'Check failed request' );
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/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
jQuery.safariTimer = setInterval(function(){ if ( document.readyState == "loaded" || document.readyState == "complete" ) { clearInterval( jQuery.safariTimer ); jQuery.safariTimer = null; jQuery.ready(); } }, 10);
jQuery.event.add( this, o, function(e){ if ( count++ ) return; return f.apply(this, [e]); });
jQuery.safariTimer = setInterval(function(){ // loaded and complete are both valid states if ( document.readyState == "loaded" || document.readyState == "complete" ) { // If either one are found, remove the timer clearInterval( jQuery.safariTimer ); jQuery.safariTimer = null; // and execute any ...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f5f6cbc8c0b6441fb1d106749f7124659a3816f0/event.js/clean/event/event.js
this.className = !c ? '' : this.className.replace( new RegExp('(^|\\s*\\b[^-])'+c+'($|\\b(?=[^-]))', 'g'), ''); });
if ($.hasWord(this,c)) $.class.remove(this,c); else $.class.add(this,c); });
return this.each(function(){ this.className = !c ? '' : this.className.replace( new RegExp('(^|\\s*\\b[^-])'+c+'($|\\b(?=[^-]))', 'g'), ''); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/jquery.js/buggy/jquery/jquery.js
setTimeout(function() { if (document.getElementById("highlight").checked) toggleHighlight(true); }, 0);
setTimeout(function() { self.asyncUpdateUI(); }, 0);
setTimeout(function() { if (document.getElementById("highlight").checked) toggleHighlight(true); }, 0);
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/47ae4bc2411f4d8a41715c2a77fefbb1fdcc89b1/browser.js/clean/browser/base/content/browser.js
y.overflow = z.oo; if(y.height=="0px"||y.width=="0px"){z.ss("none");} if ( ty != "opacity" && z.o.auto ) { $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); } if(z.o.onComplete.constructor == Function){z.el.$_ = z.o.onComplete;z.el.$_();} },13);
$(self).center(true); }, 13);
setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px"){z.ss("none");} if ( ty != "opacity" && z.o.auto ) { $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); } if(z.o.onComplete.constructor == Function){z.el.$_ = z.o.onComplete;z.el.$_();} },13);
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/497bfb7909ada30e3410827808bc0c1a0d9843a7/fx.js/clean/fx/fx.js
test("test global handlers - failure", function() { expect(6);
test("$.get(String, Hash, Function) - parse xml and use text() on nodes", function() { expect(2);
test("test global handlers - failure", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: funct...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js
var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: function() { ok( counter.error == 0, 'Check sucesful request without globals' ...
$.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Check second tab'); start(); });
test("test global handlers - failure", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: funct...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js
$.setAuto( z.el, "height" ); $.setAuto( z.el, "width" );
if ( ty != "opacity" ) { $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); }
setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px")z.ss("none"); $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); if(z.o.onComplete.constructor == Function){z.el.$_ = z.o.onComplete;z.el.$_();} },13);
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/56992c6ad95eb9323b325099dda828a5039def5b/fx.js/clean/fx/fx.js
setTimeout(function(){ if (xml) { xml.abort(); if ( !requestDone ) onreadystatechange( "timeout" ); xml = null; } }, timeout);
jQuery.ajax( "POST", url, jQuery.param(data), function(r, status) { if ( callback ) callback( jQuery.httpData(r,type), status ); });
setTimeout(function(){ // Check to see if the request is still happening if (xml) { // Cancel the request xml.abort(); if ( !requestDone ) onreadystatechange( "timeout" ); // Clear from memory xml = null; } }, timeout);
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/cb53fc02b68ca267f9eddd8fd4f5d92ef08ae022/ajax.js/buggy/src/ajax/ajax.js
if (xml) onreadystatechange(1);
if ( !requestDone ) onreadystatechange( "timeout" );
setTimeout(function(){ // Check to see if the request is still happening if (xml) { // Cancel the request xml.abort(); // for Opera. Opera does't call onreadystatechange when aborted. if (xml) onreadystatechange(1); // Clear from memory xml = null; } }, jQuery.timeout);
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/874e4f65eecdf74bb76c361d778aac4ed6158ed6/ajax.js/buggy/src/ajax/ajax.js
test("test global handlers - failure", function() { expect(8); stop(); var counter = { complete: 0, success: 0, error: 0, send: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }, complete = function() { counter.complete++ }, send = function() { counter.send++ }; $.ajaxTimeout(0); $...
$('#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 - failure", function() { expect(8); stop(); var counter = { complete: 0, success: 0, error: 0, send: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }, complete = function() { counter.complete++ }, send = function() { counter.send++ }; $.ajaxTimeout(0...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js
if (iterator(value, index)) { result = value; throw $break; }
results.push(iterator(value, index));
this.each(function(value, index) { if (iterator(value, index)) { result = value; 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
this._forEachBrowserWindow(function(aWindow) { if (aWindow != window) { aWindow.close(); } });
tabpanels.addEventListener("DOMNodeInserted", function(aEvent) { _this.onTabAdd(aEvent.currentTarget.ownerDocument.defaultView, aEvent.target); }, false);
this._forEachBrowserWindow(function(aWindow) { if (aWindow != window) { aWindow.close(); } });
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/39a8c8f4a9bd7e87188e6caeb3e8dc9cac6d34ae/nsSessionStore.js/clean/browser/components/sessionstore/src/nsSessionStore.js
setTimeout((function() {this.onComplete( this.transport)}).bind(this), 10);
this.each(function(value, index) { if (iterator(value, index)) { result = value; throw $break; } });
setTimeout((function() {this.onComplete( this.transport)}).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
return a ? this.each(function(){ new fx.FadeSize(this,o).hide(); }) : this._hide();
setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px")z.ss("none"); $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); if(z.o.onComplete.constructor == Function){z.el.$_ = z.o.onComplete;z.el.$_();} },13);
return a ? this.each(function(){ new fx.FadeSize(this,o).hide(); }) : this._hide();
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f0034d64e3890553f214db0708b9a831476ea46a/fx.js/buggy/fx/fx.js
e.startOn += effect.finishOn; e.finishOn += effect.finishOn; });
this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) {
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("$.get(String, Hash, Function) - parse xml and use text() on nodes", function() { expect(2);
test("test global handlers - failure", function() { expect(6);
test("$.get(String, Hash, Function) - parse xml and use text() on nodes", function() { expect(2); stop(); $.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Ch...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js
$.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Check second tab'); start(); });
var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: function() { ok( counter.error == 0, 'Check sucesful request without globals' ...
test("$.get(String, Hash, Function) - parse xml and use text() on nodes", function() { expect(2); stop(); $.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Ch...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js
setTimeout(function() { findField.value = browser.findString; }, 0, findField, browser);
function() { gProgressMeterPanel.collapsed = true; gProgressCollapseTimer = null; }, 100);
setTimeout(function() { findField.value = browser.findString; }, 0, findField, browser);
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e1400c9125f1ce96798a8c3ff2c3e918c4b7163a/browser.js/buggy/browser/base/content/browser.js
if (iterator(value, index)) results.push(value);
if (iterator(value, index)) { result = value; throw $break; }
this.each(function(value, index) { if (iterator(value, index)) results.push(value); });
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
}), arguments );
}));
return this.pushStack( jQuery.map( this, function(a){ return a.cloneNode( deep != undefined ? deep : true ); }), arguments );
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/jquery.js/clean/src/jquery/jquery.js
return a.cloneNode( deep != undefined ? deep : true );
return jQuery.find(t,a);
return this.pushStack( jQuery.map( this, function(a){ return a.cloneNode( deep != undefined ? deep : true ); }), arguments );
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ccf9d4406296fed48aae0989f2303287f133ed9e/jquery.js/clean/src/jquery/jquery.js
e.startOn += effect.finishOn; e.finishOn += effect.finishOn; });
this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) {
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/effects.js/clean/railties/html/javascripts/effects.js
if (iterator(value, index)) results.push(value);
if (iterator(value, index)) { result = value; throw $break; }
this.each(function(value, index) { if (iterator(value, index)) results.push(value); });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js
this.className =
this.className =
return this.each(function(){ if ($.hasWord(this,c)) { this.className = this.className.replace( new RegExp('(\\s*\\b[^-])'+c+'($|\\b(?=[^-]))', 'g'), ''); } else { this.className += ( this.className.length > 0 ? " " : "" ) + c; } });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js
setTimeout((function() {this.onComplete( this.transport)}).bind(this), 10);
this.each(function(value, index) { if (iterator(value, index)) { result = value; throw $break; } });
setTimeout((function() {this.onComplete( this.transport)}).bind(this), 10);
708 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/708/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/clean/public/javascripts/prototype.js
return jQuery.find(t,a);
return a.cloneNode( deep != undefined ? deep : true );
return this.pushStack( jQuery.map( this, function(a){ return jQuery.find(t,a); }), arguments );
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/69efa31318238a1af5644da7aa5dc691dc33b376/jquery.js/clean/src/jquery/jquery.js
this.effects = this.effects.reject(function(e) { return e==effect });
this.effects.each( function(effect) { effect.render(1.0); effect.cancel(); effect.event('beforeFinish'); if(effect.finish) effect.finish(position); effect.event('afterFinish'); });
this.effects = this.effects.reject(function(e) { return e==effect });
2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/8a342036a177e27b9f776c900bbae999b6ce8e3c/effects.js/buggy/tracks/public/javascripts/effects.js
this.pushStack( jQuery.map(this,function(a){
jQuery.map(this,function(a){
this.pushStack( jQuery.map(this,function(a){ for ( var i = 0; i < t.length; i++ ) if ( jQuery.filter(t[i],[a]).r.length ) return a; }), arguments ) :
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/7d57c67749a4c38d80de6d5ed7917f4219ce34b4/jquery.js/buggy/jquery/jquery.js
}), arguments ) :
}) ||
this.pushStack( jQuery.map(this,function(a){ for ( var i = 0; i < t.length; i++ ) if ( jQuery.filter(t[i],[a]).r.length ) return a; }), arguments ) :
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/7d57c67749a4c38d80de6d5ed7917f4219ce34b4/jquery.js/buggy/jquery/jquery.js
expect(6);
expect(8);
test("test global handlers - failure", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: funct...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
var counter = { complete: 0, success: 0, error: 0 },
var counter = { complete: 0, success: 0, error: 0, send: 0 },
test("test global handlers - failure", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: funct...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
error = function() { counter.error++ };
error = function() { counter.error++ }, complete = function() { counter.complete++ }, send = function() { counter.send++ };
test("test global handlers - failure", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: funct...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
$.ajax({url: "data/name.php", global: false, success: success, error: error, complete: function() {
$('#foo').ajaxStart(complete).ajaxStop(complete).ajaxSend(send).ajaxComplete(complete).ajaxError(error).ajaxSuccess(success); $.ajax({url: "data/name.php", global: false, beforeSend: send, success: success, error: error, complete: function() {
test("test global handlers - failure", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: funct...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
counter.error = counter.success = counter.complete = 0;
ok( counter.send == 1, 'Check sucesful request without globals' ); counter.error = counter.success = counter.complete = counter.send = 0;
test("test global handlers - failure", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: funct...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
$.ajax({url: "data/name.php?wait=5", global: false, success: success, error: error, complete: function() {
$.ajax({url: "data/name.php?wait=5", global: false, beforeSend: send, success: success, error: error, complete: function() {
test("test global handlers - failure", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: funct...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
ok( counter.send == 1, 'Check failed request without globals' );
test("test global handlers - failure", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }; $.ajaxTimeout(0); $.ajax({url: "data/name.php", global: false, success: success, error: error, complete: funct...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
return this.each(function(){ if ($.hasWord(this,c)) this.className = this.className.replace( new RegExp('(\\s*\\b[^-])'+c+'($|\\b(?=[^-]))', 'g'), ''); else this.className += ( this.className.length > 0 ? " " : "" ) + c; });
this.each(function(){this.parentNode.removeChild( this );});
return this.each(function(){ if ($.hasWord(this,c)) this.className = this.className.replace( new RegExp('(\\s*\\b[^-])'+c+'($|\\b(?=[^-]))', 'g'), ''); else this.className += ( this.className.length > 0 ? " " : "" ) + c; });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/jquery.js/buggy/jquery/jquery.js
a = Array.prototype.splice.call(a, 0, a.length); return this.exec.apply(this, a); };
a = Array.prototype.splice.call(a, 0, a.length); return this.exec.apply(this, a); };
REp.__call__ = function (t, a, x) { a = Array.prototype.splice.call(a, 0, a.length); return this.exec.apply(this, a);};
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/42c4aff0a0a40b3963a70bbc850caa094076ff7b/jsexec.js/clean/js/narcissus/jsexec.js
switch (a.length) { case 0: return new this(); case 1: return new this(a[0]); case 2: return new this(a[0], a[1]); case 3: return new this(a[0], a[1], a[2]); case 4: return new this(a[0], a[1], a[2], a[3]); case 5: return new this(a[0], a[1], a[2], a[3], a[4]); case 6: return new this(a[0], a[1], a[2], a[3], a[4], a[5]...
switch (a.length) { case 0: return new this(); case 1: return new this(a[0]); case 2: return new this(a[0], a[1]); case 3: return new this(a[0], a[1], a[2]); case 4: return new this(a[0], a[1], a[2], a[3]); case 5: return new this(a[0], a[1], a[2], a[3], a[4]); case 6: return new this(a[0], a[1], a[2], a[3], a[4], a[5]...
Fp.__construct__ = function (a, x) { switch (a.length) { case 0: return new this(); case 1: return new this(a[0]); case 2: return new this(a[0], a[1]); case 3: return new this(a[0], a[1], a[2]); case 4: return new this(a[0], a[1], a[2], a[3]); case 5: ...
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/42c4aff0a0a40b3963a70bbc850caa094076ff7b/jsexec.js/clean/js/narcissus/jsexec.js
return v instanceof Function || v instanceof global.Function; };
return v instanceof Function || v instanceof global.Function; };
Fp.__hasInstance__ = function (v) { // Since we use native functions such as Date along with host ones such // as global.eval, we want both to be considered instances of the native // Function constructor. return v instanceof Function || v instanceof global.Function;};
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/42c4aff0a0a40b3963a70bbc850caa094076ff7b/jsexec.js/clean/js/narcissus/jsexec.js
var id;
DWREngine._abortRequest = function(batch) { if (batch && batch.metadata != null && !batch.completed) { DWREngine._clearUp(batch); if (batch.req) batch.req.abort(); // Call all the timeout errorHandlers var handlers; var id; for (var i = 0; i < batch.ids.length; i++) { id = batch.ids[i]; han...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/5698e064fd7cfccfcf96b459e1b1024bad78f808/engine.js/buggy/java/org/directwebremoting/engine.js
id = batch.ids[i]; handlers = DWREngine._handlersMap[id];
handlers = DWREngine._handlersMap[batch.ids[i]];
DWREngine._abortRequest = function(batch) { if (batch && batch.metadata != null && !batch.completed) { DWREngine._clearUp(batch); if (batch.req) batch.req.abort(); // Call all the timeout errorHandlers var handlers; var id; for (var i = 0; i < batch.ids.length; i++) { id = batch.ids[i]; han...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/5698e064fd7cfccfcf96b459e1b1024bad78f808/engine.js/buggy/java/org/directwebremoting/engine.js
if (batch && batch.metadata && batch.completed != true) { batch.completed = true;
if (batch && batch.metadata && !batch.completed) {
DWREngine._abortRequest = function(batch) { if (batch && batch.metadata && batch.completed != true) { batch.completed = true; if (batch.req != null) { batch.req.abort(); if (batch.metadata.errorHandler) { // I'm not keen on the idea of setting error handlers a strin...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/920dbb9002e52e8accd49b2d2d8186fe1ae9104b/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
if (batch && batch.metadata && !batch.completed) { if (batch.req != null) { batch.req.abort(); if (batch.metadata.errorHandler) { batch.metadata.errorHandler(); } }
if (batch && batch.metadata && !batch.completed) { if (batch.req != null) { batch.req.abort(); if (batch.metadata.errorHandler) { batch.metadata.errorHandler(); }
DWREngine._abortRequest = function(batch) { if (batch && batch.metadata && !batch.completed) { // TODO: we used to do: batch.completed = true; // here, but decided to leave it to DWREngine._stateChange() to handle // when abort is called. This comment can be deleted if this works! if (bat...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
}
DWREngine._abortRequest = function(batch) { if (batch && batch.metadata && !batch.completed) { // TODO: we used to do: batch.completed = true; // here, but decided to leave it to DWREngine._stateChange() to handle // when abort is called. This comment can be deleted if this works! if (bat...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js