rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
url: "data/with_fries.xml", dataType: "xml", type: "GET", data: "", success: function(resp) { ok( $("properties", resp).length == 1, 'properties in responseXML' ); ok( $("jsconf", resp).length == 1, 'jsconf in responseXML' ); ok( $("thing", resp).length == 2, 'things in responseXML' ); start();
dataType: "html", url: "data/test.html", success: function(data) { ok( data.match(/^html text/), 'Check content for datatype html' ); ok( testFoo == "foo", 'Check if script was evaluated for datatype html' ); setTimeout(verifyEvaluation, 600);
test("$.ajax - xml: non-namespace elements inside namespaced elements", function() { expect(3); stop(); $.ajax({ url: "data/with_fries.xml", dataType: "xml", type: "GET", data: "", success: function(resp) { ok( $("properties", resp).length == 1, 'properties in responseXML' ); ok( $("jsconf", resp).length == 1...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js
function(a,f) {return jQuery.grep(a,f,true);};
new function() { var b = navigator.userAgent.toLowerCase(); jQuery.browser = { safari: /webkit/.test(b), opera: /opera/.test(b), msie: /msie/.test(b) && !/opera/.test(b), mozilla: /mozilla/.test(b) && !/compatible/.test(b) }; jQuery.boxModel = !jQuery.browser.msie || document.compatMode == "CSS1Compat"; };
function(a,f) {return jQuery.grep(a,f,true);};
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/efe0fef88082eebf66e9b7c250a6a072a5aa1966/jquery.js/clean/jquery/jquery.js
r = $.map( ret, function(a){ var r = []; var s = $.sibling(a); if ( s.n > 0 ) { for ( var i = s.n; i < s.length; i++ ) { r[r.length] = s[i]; } } return r; });
r = $.map( ret, function(a){ return $.sibling(a).next; } );
r = $.map( ret, function(a){ var r = []; var s = $.sibling(a); if ( s.n > 0 ) { for ( var i = s.n; i < s.length; i++ ) { r[r.length] = s[i]; } } return r; });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/b5256caee647eb3b8f49115d7803506b031d058f/jquery.js/buggy/jquery/jquery.js
p = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});
var np = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});
p = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/23e255015fb5e4f5ce7e8dd091b1550e80cccdd9/jquery.js/buggy/src/jquery/jquery.js
var np = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});
var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});
var np = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94fc6aac1990dc3233c70f471432c5b9f230e756/jquery.js/buggy/src/jquery/jquery.js
$("input").filter(":checked",function(i){ ok( this == q("radio2", "check1")[i], "Filter elements, context" ); });
test("is(String)", function() { expect(22); ok( $('#form').is('form'), 'Check for element: A form must be a form' ); ok( !$('#form').is('div'), 'Check for element: A form is not a div' ); ok( $('#mark').is('.blog'), 'Check for class: Expected class "blog"' ); ok( !$('#mark').is('.link'), 'Check for class: Did not expec...
$("input").filter(":checked",function(i){ ok( this == q("radio2", "check1")[i], "Filter elements, context" ); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
"~", function(a){ var r = []; var s = jQuery.sibling(a); if ( s.n > 0 ) for ( var i = s.n; i < s.length; i++ ) r[r.length] = s[i]; return r; }
a = a.replace(r,function(z,b){return b.toUpperCase();});
"~", function(a){ var r = []; var s = jQuery.sibling(a); if ( s.n > 0 ) for ( var i = s.n; i < s.length; i++ ) r[r.length] = s[i]; return r; }
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/214007721c67d9702571e45573cf32c61c2201a8/jquery.js/buggy/jquery/jquery.js
synchronize(function() { var runTime = new Date() - startTime; $('body').append('<br/>Tests completed in ' + runTime + ' milliseconds.'); });
$.get(files[num],function(js){ js = js.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&"); try { eval(js); } catch(e) { if(typeof console != "undefined") console.error(e); Test.push( [ false, "Died on test #" + (Test.length+1) + ": " + e ] ); } var good = 0, bad = 0; var ol = document.createElement("o...
synchronize(function() { var runTime = new Date() - startTime; $('body').append('<br/>Tests completed in ' + runTime + ' milliseconds.'); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/b5220adbbcbb6216af176fa38c626aca53ec8d0f/test.js/clean/build/test/js/test.js
jQuery.getScript( this.src, function() {} );
new function(){ var e = "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess".split(","); for ( var i = 0; i < e.length; i++ ) new function(){ var o = e[i]; jQuery.fn[o] = function(f){ return this.bind(o, f); }; }; };
jQuery.getScript( this.src, function() {} );
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/46faa03820f82e5b03e6b3d73bd9d5b194b2b310/ajax.js/buggy/src/ajax/ajax.js
return drop._containers.detect(function(c) { return parentNode == c });
return drop._containers.detect(function(c) { return containmentNode == c });
return drop._containers.detect(function(c) { return parentNode == c });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
while (SimileAjax.History._currentIndex < c && SimileAjax.History._currentIndex - SimileAjax.History._baseIndex < SimileAjax.History._actions.length) { var action = SimileAjax.History._actions[SimileAjax.History._currentIndex - SimileAjax.History._baseIndex]; try { action.perform(); } catch (e) { SimileAjax.Debug.exc...
while (SimileAjax.History._currentIndex < c && SimileAjax.History._currentIndex - SimileAjax.History._baseIndex < SimileAjax.History._actions.length) { var action = SimileAjax.History._actions[SimileAjax.History._currentIndex - SimileAjax.History._baseIndex]; try { action.perform(); } catch (e) { SimileAjax.Debug.exc...
window.setTimeout(function() { while (SimileAjax.History._currentIndex < c && SimileAjax.History._currentIndex - SimileAjax.History._baseIndex < SimileAjax.History._actions.length) { var action = SimileAjax.History._actions[SimileAjax.History._curr...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/45b1ecd580363267e81dc76f3b50f9a25374c320/history.js/buggy/src/webapp/api/scripts/history.js
SimileAjax.History._currentIndex++; } SimileAjax.History._listeners.fire("onAfterRedoSeveral", []); finishUp(); }, 0);
SimileAjax.History._listeners.fire("onAfterRedoSeveral", []); finishUp(); }, 0);
window.setTimeout(function() { while (SimileAjax.History._currentIndex < c && SimileAjax.History._currentIndex - SimileAjax.History._baseIndex < SimileAjax.History._actions.length) { var action = SimileAjax.History._actions[SimileAjax.History._curr...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/45b1ecd580363267e81dc76f3b50f9a25374c320/history.js/buggy/src/webapp/api/scripts/history.js
var h = h.responseText; self.html(h).find("script").each(function(){ try { eval( this.text || this.textContent || this.innerHTML ); } catch(e){} }); if(f)f(h); });
var h = h.responseText; self.html(h).find("script").each(function(){ try { eval( this.text || this.textContent || this.innerHTML ); } catch(e){} }); if(f)f(h); });
$.xml(t,a,o,function(h){ var h = h.responseText; self.html(h).find("script").each(function(){ try { eval( this.text || this.textContent || this.innerHTML ); } catch(e){} }); if(f)f(h); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f0034d64e3890553f214db0708b9a831476ea46a/ajax.js/buggy/ajax/ajax.js
z.step(from, to); }, 13);
z.step(from, to); }, 13);
z.timer = setInterval(function(){ z.step(from, to); }, 13);
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/fx.js/clean/fx/fx.js
items.each(function(item){ if ($(item)) elements.push(item); });
return function(){ var args = arguments; var items = []; var elements = true; $each(this, function(el){ var returns = el[property].apply(el, args); if ($type(returns) != 'element') elements = false; items.push(returns); }); if (elements) items = $$(items); return items; };
items.each(function(item){ if ($(item)) elements.push(item); });
5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/af66a6919b8d36f1a1d048c31276da23a227b278/Element.js/buggy/Native/Element.js
$.get("data/name.php", function() { ok( $('#first').text() == 'ERROR', 'Check if load works without callback'); start(); });
test("load(String, Object, Function) - inject without callback", function() { expect(1); stop(); // check if load can be called with only url $('#first').load("data/name.php"); $.get("data/name.php", function() { ok( $('#first').text() == 'ERROR', 'Check if load works without callback'); start(); });});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js
jQuery("script", self).each(function(){ if ( this.src ) jQuery.getScript( this.src ); else eval.call( window, this.text || this.textContent || this.innerHTML || "" ); });
return this.find('script').each(function(){ if ( this.src ) jQuery.getScript( this.src, function() {} ); else eval.call( window, this.text || this.textContent || this.innerHTML || "" ); }).end();
jQuery("script", self).each(function(){ if ( this.src ) jQuery.getScript( this.src ); else eval.call( window, this.text || this.textContent || this.innerHTML || "" ); });
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) - simple: inject text into DOM", function() { expect(2);
test("pass-through request object", function() { expect(7);
test("load(String, Object, Function) - simple: inject text into DOM", function() { expect(2); stop(); $('#first').load("data/name.php", function() { ok( /^ERROR/.test($('#first').text()), 'Check if content was injected into the DOM' ); start(); });});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js
$('#first').load("data/name.php", function() { ok( /^ERROR/.test($('#first').text()), 'Check if content was injected into the DOM' ); start(); });
var count = 0; var success = function() { if(count++ == 6) start(); } var url = "data/name.php"; ok( $.get(url, success), "get" ); ok( $.getIfModified(url, success), "getIfModified" ); ok( $.post(url, success), "post" ); ok( $.getScript("data/test.js", success), "script" ); ok( $.getJSON("data/json.php", success), "jso...
test("load(String, Object, Function) - simple: inject text into DOM", function() { expect(2); stop(); $('#first').load("data/name.php", function() { ok( /^ERROR/.test($('#first').text()), 'Check if content was injected into the DOM' ); start(); });});
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 + "-num"); td.innerHTML = "" + rownum; return td; },
function(row) { var td = document.createElement("td"); td.setAttribute("id", "t" + rownum + "-num"); td.innerHTML = "" + rownum; return td; },
function(row) { var td = document.createElement("td"); td.setAttribute("id", "t" + rownum + "-num"); 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
$.xml(t,a,o,function(res){ self.html(res.responseText).find("script").each(function(){ try { eval( this.text || this.textContent || this.innerHTML || ""); } catch(e){}
$("script", self).each(function(){ eval( this.text || this.textContent || this.innerHTML || "");
$.xml(t,a,o,function(res){ // Assign it and execute all scripts self.html(res.responseText).find("script").each(function(){ try { eval( this.text || this.textContent || this.innerHTML || ""); } catch(e){} }); // Callback function if (f && f.constructor == Function) f(res.responseText); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/70cab836b0d87ec1a94658411c398658780f5810/ajax.js/buggy/ajax/ajax.js
if (f && f.constructor == Function) f(res.responseText); });
$.xml(t,a,o,function(res){ // Assign it and execute all scripts self.html(res.responseText).find("script").each(function(){ try { eval( this.text || this.textContent || this.innerHTML || ""); } catch(e){} }); // Callback function if (f && f.constructor == Function) f(res.responseText); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/70cab836b0d87ec1a94658411c398658780f5810/ajax.js/buggy/ajax/ajax.js
__method.call(object, event || window.event);
return __method.call(object, event || window.event);
return function(event) { __method.call(object, event || window.event); }
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.ty){(function(){ var c = fx.ty[i]; fx[c] = function(a,b){ return new fx(a,b,c.toLowerCase(),c);}; })()}
return this.each(function(){ new fx.Resize(this,o).show("height"); });
for(var i in fx.ty){(function(){ var c = fx.ty[i]; fx[c] = function(a,b){ return new fx(a,b,c.toLowerCase(),c);};})()}
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f0034d64e3890553f214db0708b9a831476ea46a/fx.js/buggy/fx/fx.js
return a ? this.queue(function(){ new $.fx.FadeSize(this,o).show(); }) : this._show();
z.timer = setInterval(function(){ z.step(from, to); }, 13);
return a ? this.queue(function(){ new $.fx.FadeSize(this,o).show(); }) : this._show();
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/fx.js/buggy/fx/fx.js
}
};
for ( var i = 0; i < e.length; i++ ) new function(){ var o = e[i]; // Handle event binding jQuery.fn[o] = function(f){ return f ? this.bind(o, f) : this.trigger(o); }; // Handle event unbinding jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); }; // Finally, handle events that only fire once...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/8aca450f435191c475cdb04ce7684da5b0e23775/event.js/clean/event/event.js
return drop._containers.detect(function(c) { return parentNode == c });
return drop._containers.detect(function(c) { return containmentNode == c });
return drop._containers.detect(function(c) { return parentNode == c });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
return [$A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return c.className ? Element.hasClassName(c, className) : false; })].flatten();
var results = $A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return (c.className && c.className.match(classNameRegExp)); });
return [$A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return c.className ? Element.hasClassName(c, className) : false; })].flatten();
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("load(String, Object, Function) - inject without callback", function() { expect(1); stop(); $('#first').load("data/name.php");
test("load(String, Object, Function) - simple: inject text into DOM", function() { expect(2); stop(); $('#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) - inject without callback", function() { expect(1); stop(); // check if load can be called with only url $('#first').load("data/name.php");});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js
setTimeout(function() { gURLBar.focus(); }, 0);
setTimeout(function() { this.openLocation(); }, 0);
setTimeout(function() { gURLBar.focus(); }, 0);
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e1400c9125f1ce96798a8c3ff2c3e918c4b7163a/browser.js/buggy/browser/base/content/browser.js
return this.each(function(){ var b = a[0].cloneNode(true); this.parentNode.insertBefore( b, this ); while ( b.firstChild ) b = b.firstChild; b.appendChild( this ); });
this.each(function(){ if ( value == undefined ) for ( var prop in key ) jQuery.attr( type ? this.style : this, prop, key[prop] ); else jQuery.attr( type ? this.style : this, key, value ); }) :
return this.each(function(){ // Clone the structure that we're using to wrap var b = a[0].cloneNode(true); // Insert it before the element to be wrapped this.parentNode.insertBefore( b, this ); // Find he deepest point in the wrap structure while ( b.firstChild ) b = b.firstChild; // Move th...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ccf9d4406296fed48aae0989f2303287f133ed9e/jquery.js/clean/src/jquery/jquery.js
eval( this.text || this.textContent || this.innerHTML || ""); });
if ( this.src ) $.getScript( this.src ); else eval.call( window, this.text || this.textContent || this.innerHTML || "" ); });
$("script", self).each(function(){ eval( this.text || this.textContent || this.innerHTML || ""); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/5ec5de6953a22b33de46897c8e915eed300338e6/ajax.js/buggy/src/ajax/ajax.js
return [$A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return c.className ? Element.hasClassName(c, className) : false; })].flatten();
var results = $A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return (c.className && c.className.match(classNameRegExp)); });
return [$A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return c.className ? Element.hasClassName(c, className) : false; })].flatten();
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/effects.js/clean/railties/html/javascripts/effects.js
$("div.more,div.short",this.parentNode.parentNode).toggle().find("div.desc",function(){
$("div.more,div.short",this.parentNode.parentNode).toggle('slow').find("div.desc",function(){
$("a.name").click(function(){ $("div.more,div.short",this.parentNode.parentNode).toggle().find("div.desc",function(){ $(this).html( $(this).html().replace(/\n\n/g, "<br/><br/>") ); }); return false; });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ccf9d4406296fed48aae0989f2303287f133ed9e/doc.js/buggy/build/docs/js/doc.js
var e = "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess".split(",");
var e = "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(",");
new function(){ var e = "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess".split(","); for ( var i = 0; i < e.length; i++ ) new 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/010a112e048f932aff7feeb9987eec7a64e5328b/ajax.js/buggy/src/ajax/ajax.js
__method.call(object, event || window.event);
return __method.call(object, event || window.event);
return function(event) { __method.call(object, event || window.event); }
708 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/708/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/clean/public/javascripts/prototype.js
setTimeout(function(u) { gURLBar.value = u; handleURLBarCommand(); }, 0, url);
setTimeout(function() { openDialog(chrome, "_blank", flags, url); }, 10);
setTimeout(function(u) { gURLBar.value = u; handleURLBarCommand(); }, 0, url);
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a429b6720a457cbc90d1df942a1f58abece300ce/browser.js/buggy/browser/base/content/browser.js
for ( var i = 0; i < e.length; i++ ) {(function(){
for ( var i = 0; i < e.length; i++ ) new function(){
for ( var i = 0; i < e.length; i++ ) {(function(){ var o = e[i]; // Handle event binding jQuery.prototype[o] = function(f){ return this.bind(o, f); }; // Handle event unbinding jQuery.prototype["un"+o] = function(f){ return this.unbind(o, f); }; // Handle event triggering jQuery.prototype["do"+o] = fun...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js
jQuery.prototype[o] = function(f){ return this.bind(o, f); };
jQuery.fn[o] = function(f){ return f ? this.bind(o, f) : this.trigger(o); };
for ( var i = 0; i < e.length; i++ ) {(function(){ var o = e[i]; // Handle event binding jQuery.prototype[o] = function(f){ return this.bind(o, f); }; // Handle event unbinding jQuery.prototype["un"+o] = function(f){ return this.unbind(o, f); }; // Handle event triggering jQuery.prototype["do"+o] = fun...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js
jQuery.prototype["un"+o] = function(f){ return this.unbind(o, f); }; jQuery.prototype["do"+o] = function(){ return this.trigger(o); };
jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); };
for ( var i = 0; i < e.length; i++ ) {(function(){ var o = e[i]; // Handle event binding jQuery.prototype[o] = function(f){ return this.bind(o, f); }; // Handle event unbinding jQuery.prototype["un"+o] = function(f){ return this.unbind(o, f); }; // Handle event triggering jQuery.prototype["do"+o] = fun...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js
jQuery.prototype["one"+o] = function(f){
jQuery.fn["one"+o] = function(f){
for ( var i = 0; i < e.length; i++ ) {(function(){ var o = e[i]; // Handle event binding jQuery.prototype[o] = function(f){ return this.bind(o, f); }; // Handle event unbinding jQuery.prototype["un"+o] = function(f){ return this.unbind(o, f); }; // Handle event triggering jQuery.prototype["do"+o] = fun...
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;
for ( var i = 0; i < e.length; i++ ) {(function(){ var o = e[i]; // Handle event binding jQuery.prototype[o] = function(f){ return this.bind(o, f); }; // Handle event unbinding jQuery.prototype["un"+o] = function(f){ return this.unbind(o, f); }; // Handle event triggering jQuery.prototype["do"+o] = fun...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js
})();}
}
for ( var i = 0; i < e.length; i++ ) {(function(){ var o = e[i]; // Handle event binding jQuery.prototype[o] = function(f){ return this.bind(o, f); }; // Handle event unbinding jQuery.prototype["un"+o] = function(f){ return this.unbind(o, f); }; // Handle event triggering jQuery.prototype["do"+o] = fun...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js
this.each(function(){ if ( value == undefined ) for ( var prop in key ) jQuery.attr( type ? this.style : this, prop, key[prop] ); else jQuery.attr( type ? this.style : this, key, value ); }) :
return this.each(function(){ var b = a[0].cloneNode(true); this.parentNode.insertBefore( b, this ); while ( b.firstChild ) b = b.firstChild; b.appendChild( this ); });
this.each(function(){ // See if we're setting a hash of styles if ( value == undefined ) // Set all the styles for ( var prop in key ) jQuery.attr( type ? this.style : this, prop, key[prop] ); // See if we're setting a single key/value style else jQuery.attr( ty...
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;
for ( var i = 0; i < e.length; i++ ) new function(){ var o = e[i]; // Handle event binding jQuery.fn[o] = function(f){ return f ? this.bind(o, f) : this.trigger(o); }; // Handle event unbinding jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); }; // Finally, handle events that only fire once...
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);
for ( var i = 0; i < e.length; i++ ) new function(){ var o = e[i]; // Handle event binding jQuery.fn[o] = function(f){ return f ? this.bind(o, f) : this.trigger(o); }; // Handle event unbinding jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); }; // Finally, handle events that only fire once...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/a8bafe78745247dd13e3472582df29471e50aa28/event.js/buggy/src/event/event.js
element = null;
for ( var i = 0; i < e.length; i++ ) new function(){ var o = e[i]; // Handle event binding jQuery.fn[o] = function(f){ return f ? this.bind(o, f) : this.trigger(o); }; // Handle event unbinding jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); }; // Finally, handle events that only fire once...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/8b875055eceb720e14ddac8f6096d08b532c7b5f/event.js/buggy/src/event/event.js
setTimeout(function () { if (This.mCurrentDragOverTarget) {This.onDragRemoveFeedBack(This.mCurrentDragOverTarget); This.mCurrentDragOverTarget=null} This.loadTimer=null; This.onDragCloseTarget() }, 0);
this.closeTimer=setTimeout(function () {This.onDragCloseTarget()}, This.springLoadedMenuDelay);
setTimeout(function () { if (This.mCurrentDragOverTarget) {This.onDragRemoveFeedBack(This.mCurrentDragOverTarget); This.mCurrentDragOverTarget=null} This.loadTimer=null; This.onDragCloseTarget() }, 0);
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a429b6720a457cbc90d1df942a1f58abece300ce/bookmarksMenu.js/buggy/browser/components/bookmarks/content/bookmarksMenu.js
function(klass) { return (klass == removeClasses[index]) } ).join(' ');
$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); }); Element.remove(child); } });
function(klass) { return (klass == removeClasses[index]) } ).join(' ');
2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/8a342036a177e27b9f776c900bbae999b6ce8e3c/effects.js/buggy/tracks/public/javascripts/effects.js
jQuery.fn[o] = function(f){ return f ? this.bind(o, f) : this.trigger(o);
jQuery.fn[o] = function(f, amount){ return f ? this.bind(o, f, amount) : this.trigger(o);
for ( var i = 0; i < e.length; i++ ) new function(){ var o = e[i]; // Handle event binding jQuery.fn[o] = function(f){ return f ? this.bind(o, f) : this.trigger(o); }; // Handle event unbinding jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); }; // Finally, handle events that only fire once...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/897fbfe89c90de5f20a3eed2aeb187c625cfb43d/event.js/buggy/src/event/event.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);
for ( var i = 0; i < e.length; i++ ) new function(){ var o = e[i]; // Handle event binding jQuery.fn[o] = function(f){ return f ? this.bind(o, f) : this.trigger(o); }; // Handle event unbinding jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); }; // Finally, handle events that only fire once...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/897fbfe89c90de5f20a3eed2aeb187c625cfb43d/event.js/buggy/src/event/event.js
.find("div.desc",function(){
.find("div.desc").each(function(){
$("a.name").click(function(){ $("div.more,div.short",this.parentNode.parentNode) .find("div.desc",function(){ $(this).html( $(this).html().replace(/\n\n/g, "<br/><br/>") ); }) .toggle('slow'); return false; });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/fb11b33d68f64ea446f2f8c6d3ef2aed3652349f/doc.js/clean/build/docs/js/doc.js
})
}).end()
$("a.name").click(function(){ $("div.more,div.short",this.parentNode.parentNode) .find("div.desc",function(){ $(this).html( $(this).html().replace(/\n\n/g, "<br/><br/>") ); }) .toggle('slow'); return false; });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/fb11b33d68f64ea446f2f8c6d3ef2aed3652349f/doc.js/clean/build/docs/js/doc.js
$.eval( this.text || this.textContent || this.innerHTML );
$.eval( this.text || this.textContent || this.innerHTML || "");
$.xml(t,a,o,function(h){ h = h.responseText; self.html(h).find("script").each(function(){ try { $.eval( this.text || this.textContent || this.innerHTML ); } catch(e){} }); if(f){f(h);} });
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;
for ( var i = 0; i < e.length; i++ ) new function(){ var o = e[i]; // Handle event binding jQuery.fn[o] = function(f){ return f ? this.bind(o, f) : this.trigger(o); }; // Handle event unbinding jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); }; // Finally, handle events that only fire once...
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]); });
for ( var i = 0; i < e.length; i++ ) new function(){ var o = e[i]; // Handle event binding jQuery.fn[o] = function(f){ return f ? this.bind(o, f) : this.trigger(o); }; // Handle event unbinding jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); }; // Finally, handle events that only fire once...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f5f6cbc8c0b6441fb1d106749f7124659a3816f0/event.js/clean/event/event.js
z.timer = setInterval(function(){ z.step(from, to); }, 13);
return this.each(function(){ if ( !this.queue ) this.queue = {}; if ( !this.queue[type] ) this.queue[type] = []; this.queue[type].push( fn ); if ( this.queue[type].length == 1 ) fn.apply(this); });
z.timer = setInterval(function(){ z.step(from, to); }, 13);
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/8a1adfcd2a0ea8fbb72ac53537cbfe6ebeba0cdf/fx.js/buggy/src/fx/fx.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) { ...
$('input[@type="submit"],input[@type="image"]', this).click(function(ev){ this.form.clicked = this; if (ev.offsetX != undefined) { this.form.clicked_x = ev.offsetX; this.form.clicked_y = ev.offsetY; } else { this.form.clicked_x = ev.pageX - this.offsetLeft; this.form.clicked_y = ev.pageY - this.offsetTop; } });
$('*', 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....
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ce6af8e8894b14c7b2c41b64a097bc49acc73b19/form.js/buggy/form/form.js
this.each(function(){ if ( !b ) for ( var j in a ) $.attr(this.style,j,a[j]); else $.attr(this.style,a,b); }) : $.css( this.get(0), a );
return this.each(function(){ var d = $.css(this,"display"); if ( d == "none" || d === "" ) $(this).show(); else $(this).hide(); });
this.each(function(){ if ( !b ) for ( var j in a ) $.attr(this.style,j,a[j]); else $.attr(this.style,a,b); }) : $.css( this.get(0), a );
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/jquery.js/buggy/jquery/jquery.js
test("$.ajax - xml: non-namespace elements inside namespaced elements", function() { expect(3);
test("$.ajax - simple post", function() { expect(1);
test("$.ajax - xml: non-namespace elements inside namespaced elements", function() { expect(3); stop(); $.ajax({ url: "data/with_fries.xml", dataType: "xml", type: "GET", data: "", success: function(resp) { ok( $("properties", resp).length == 1, 'properties in responseXML' ); ok( $("jsconf", resp).length == 1...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js
url: "data/with_fries.xml", dataType: "xml", type: "GET", data: "", success: function(resp) { ok( $("properties", resp).length == 1, 'properties in responseXML' ); ok( $("jsconf", resp).length == 1, 'jsconf in responseXML' ); ok( $("thing", resp).length == 2, 'things in responseXML' );
type: "POST", url: "data/name.php", data: "name=peter", success: function(msg){ ok( msg == 'pan', 'Check for POST' );
test("$.ajax - xml: non-namespace elements inside namespaced elements", function() { expect(3); stop(); $.ajax({ url: "data/with_fries.xml", dataType: "xml", type: "GET", data: "", success: function(resp) { ok( $("properties", resp).length == 1, 'properties in responseXML' ); ok( $("jsconf", resp).length == 1...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js
function() {return new ActiveXObject('Microsoft.XMLHTTP')},
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
function() {return new ActiveXObject('Microsoft.XMLHTTP')},
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(a){ return a.type == m[2]; }), r );
r = $.map( ret, function(a){ var r = []; var s = $.sibling(a); if ( s.n > 0 ) { for ( var i = s.n; i < s.length; i++ ) { r[r.length] = s[i]; } } return r; });
function(a){ return a.type == m[2]; }), r );
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/b5256caee647eb3b8f49115d7803506b031d058f/jquery.js/buggy/jquery/jquery.js
test("filter(String) - execute callback in not-fitting context", function() { expect(1); $("#main > p#ap > a").filter("#foobar",function(){},function(i){ ok( this == q("google","groups", "mark")[i], "Filter elements, else context" ); });
test("$.extend(Object, Object)", function() { expect(2); var settings = { xnumber1: 5, xnumber2: 7, xstring1: "peter", xstring2: "pan" }, options = { xnumber2: 1, xstring2: "x", xxx: "newstring" }, optionsCopy = { xnumber2: 1, xstring2: "x", xxx: "newstring" }, merged = { xnumber1: 5, xnumber2: 1, xstring1: "peter"...
test("filter(String) - execute callback in not-fitting context", function() { expect(1); $("#main > p#ap > a").filter("#foobar",function(){},function(i){ ok( this == q("google","groups", "mark")[i], "Filter elements, else context" ); });});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});
var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();});
name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/feabeb8572979f7888bd73e80f436bece1448e5a/jquery.js/buggy/src/jquery/jquery.js
if (OSC.ws) { OSC.params.local['in_command'] = { value: 'send_all_params' }; OSC.ws.send(JSON.stringify({ parameters: OSC.params.local })); OSC.params.local = {}; }
$(window).resize(function() { // Redraw the grid (it is important to do this before resizing graph holders) OSC.drawGraphGrid(); // Resize the graph holders $('.plot').css($('#graph_grid').css(['height','width'])); // Hide all graphs, they will be shown next time signal data is received ...
5956 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5956/c17858188b9be66845a662a1df071f137ddaf272/scope.js/clean/Applications/scope-new/js/scope.js
if (OSC.ws) { OSC.params.local['in_command'] = { value: 'send_all_params' }; OSC.ws.send(JSON.stringify({ parameters: OSC.params.local })); OSC.params.local = {}; }
$(window).resize(function() { // Redraw the grid (it is important to do this before resizing graph holders) OSC.drawGraphGrid(); // Resize the graph holders $('.plot').css($('#graph_grid').css(['height','width'])); // Hide all graphs, they will be shown next time signal data is received ...
5956 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5956/6668f0e49fbd38ba9c70db6219741ed56b921533/scope.js/buggy/Applications/scope-new/js/scope.js
a = a.replace(r,function(z,b){return b.toUpperCase();});
var t = jQuery.grep(jQuery.sibling(a),function(b){ return b.nodeName == a.nodeName; });
a = a.replace(r,function(z,b){return b.toUpperCase();});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/214007721c67d9702571e45573cf32c61c2201a8/jquery.js/buggy/jquery/jquery.js
name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});
"~", function(a){ var r = []; var s = jQuery.sibling(a); if ( s.n > 0 ) for ( var i = s.n; i < s.length; i++ ) r.push( s[i] ); return r; }
name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f7efcc858dec55fa3b9babb94ebc73b0888e6d51/jquery.js/clean/src/jquery/jquery.js
test("$.ajax - beforeSend", function() { expect(1);
test("$.ajax - dataType html", function() { expect(5);
test("$.ajax - beforeSend", function() { expect(1); stop(); var customHeader = "value"; $.ajax({ url: "data/name.php", data: {'req': true}, beforeSend: function(xml) { xml.setRequestHeader('X-Custom-Header', customHeader); }, success: function(data) { ok( data == customHeader, "check return value, should be t...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js
var customHeader = "value";
testFoo = undefined; var verifyEvaluation = function() { ok( foobar == "bar", 'Check if script src was evaluated for datatype html' ); start(); };
test("$.ajax - beforeSend", function() { expect(1); stop(); var customHeader = "value"; $.ajax({ url: "data/name.php", data: {'req': true}, beforeSend: function(xml) { xml.setRequestHeader('X-Custom-Header', customHeader); }, success: function(data) { ok( data == customHeader, "check return value, should be t...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js
url: "data/name.php", data: {'req': true}, beforeSend: function(xml) { xml.setRequestHeader('X-Custom-Header', customHeader); }, success: function(data) { ok( data == customHeader, "check return value, should be the custom header sent" ); start(); }
dataType: "html", url: "data/test.html", success: function(data) { ok( data.match(/^html text/), 'Check content for datatype html' ); ok( testFoo == "foo", 'Check if script was evaluated for datatype html' ); setTimeout(verifyEvaluation, 600); }
test("$.ajax - beforeSend", function() { expect(1); stop(); var customHeader = "value"; $.ajax({ url: "data/name.php", data: {'req': true}, beforeSend: function(xml) { xml.setRequestHeader('X-Custom-Header', customHeader); }, success: function(data) { ok( data == customHeader, "check return value, should be t...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js
function() {return new XMLHttpRequest()}
function() {return new ActiveXObject('Microsoft.XMLHTTP')},
function() {return new XMLHttpRequest()}
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(a,f) {return jQuery.grep(a,f,true);};
.replace(/-([a-z])/ig,function(z,b){ return b.toUpperCase(); });
function(a,f) {return jQuery.grep(a,f,true);};
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ccf9d4406296fed48aae0989f2303287f133ed9e/jquery.js/clean/src/jquery/jquery.js
a = a.replace(r,function(z,b){return b.toUpperCase();});
function(a){ return a.type == m[2]; }), r );
a = a.replace(r,function(z,b){return b.toUpperCase();});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/b5256caee647eb3b8f49115d7803506b031d058f/jquery.js/buggy/jquery/jquery.js
.replace(/-([a-z])/ig,function(z,b){ return b.toUpperCase(); });
name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});
.replace(/-([a-z])/ig,function(z,b){ return b.toUpperCase(); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/906478800db84631ddbd6b132450f65a2176bd2c/jquery.js/buggy/src/jquery/jquery.js
$("#main > p#ap > a").filter("#foobar",function(){},function(i){
test("$.extend(Object, Object, Object, Object)", function() { expect(4); var defaults = { xnumber1: 5, xnumber2: 7, xstring1: "peter", xstring2: "pan" }, defaultsCopy = { xnumber1: 5, xnumber2: 7, xstring1: "peter", xstring2: "pan" }, options1 = { xnumber2: 1, xstring2: "x" }, options1Copy = { xnumber2: 1, xstring2...
$("#main > p#ap > a").filter("#foobar",function(){},function(i){
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});
function(a,f) {return jQuery.grep(a,f,true);};
name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/69efa31318238a1af5644da7aa5dc691dc33b376/jquery.js/clean/src/jquery/jquery.js
function(a,f) {return jQuery.grep(a,f,true);};
jQuery.swap(elem, { display: 'block' }, function() { ret = document.defaultView.getComputedStyle(this,null).getPropertyValue(prop); });
function(a,f) {return jQuery.grep(a,f,true);};
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/feabeb8572979f7888bd73e80f436bece1448e5a/jquery.js/buggy/src/jquery/jquery.js
test("$.ajax - preprocess", function() {
test("$.ajax - beforeSend", function() {
test("$.ajax - preprocess", function() { expect(1); stop(); var customHeader = "value"; $.ajax({ url: "data/name.php", data: {'req': true}, beforeSend: function(xml) { xml.setRequestHeader('X-Custom-Header', customHeader); }, success: function(data) { ok( data == customHeader, "check return value, should be t...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/010a112e048f932aff7feeb9987eec7a64e5328b/ajaxTest.js/buggy/src/ajax/ajaxTest.js
name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});
function(a,f) {return jQuery.grep(a,f,true);};
name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/48ec10044f011ccfe9bd232d629682b59cccbd97/jquery.js/buggy/src/jquery/jquery.js
function(a,f) {return jQuery.grep(a,f,true);};
"~", function(a){ var r = []; var s = jQuery.sibling(a); if ( s.n > 0 ) for ( var i = s.n; i < s.length; i++ ) r.push( s[i] ); return r; }
function(a,f) {return jQuery.grep(a,f,true);};
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f7efcc858dec55fa3b9babb94ebc73b0888e6d51/jquery.js/clean/src/jquery/jquery.js
r = jQuery.grep( r, function(e) { return rec.test(e.className); });
function(a){ return eval(jQuery.token[i+1]); });
r = jQuery.grep( r, function(e) { return rec.test(e.className); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/65a88fae8919e5da774dcc45c9b42220f875b697/jquery.js/clean/src/jquery/jquery.js
this.each(function(responder) { if (responder[callback] && typeof responder[callback] == 'function') { try { responder[callback].apply(responder, [request, transport, json]); } catch (e) { } } });
function() {return new XMLHttpRequest()}
this.each(function(responder) { if (responder[callback] && typeof responder[callback] == 'function') { try { responder[callback].apply(responder, [request, transport, json]); } catch (e) { } } });
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
new function() { var b = navigator.userAgent.toLowerCase(); jQuery.browser = { safari: /webkit/.test(b), opera: /opera/.test(b), msie: /msie/.test(b) && !/opera/.test(b), mozilla: /mozilla/.test(b) && !/compatible/.test(b) }; jQuery.boxModel = !jQuery.browser.msie || document.compatMode == "CSS1Compat"; };
function(a,f) {return jQuery.grep(a,f,true);};
new function() { var b = navigator.userAgent.toLowerCase(); // Figure out what browser is being used jQuery.browser = { safari: /webkit/.test(b), opera: /opera/.test(b), msie: /msie/.test(b) && !/opera/.test(b), mozilla: /mozilla/.test(b) && !/compatible/.test(b) }; // Check to see if the W3C box model is being use...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ccf9d4406296fed48aae0989f2303287f133ed9e/jquery.js/clean/src/jquery/jquery.js
var t = $.grep($.sibling(a),function(b){return b.nodeName == a.nodeName;});
a = a.replace(r,function(z,b){return b.toUpperCase();});
var t = $.grep($.sibling(a),function(b){return b.nodeName == a.nodeName;});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/b5256caee647eb3b8f49115d7803506b031d058f/jquery.js/buggy/jquery/jquery.js
function(a,f) {return jQuery.grep(a,f,true);};
name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});
function(a,f) {return jQuery.grep(a,f,true);};
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94fc6aac1990dc3233c70f471432c5b9f230e756/jquery.js/buggy/src/jquery/jquery.js
$("#main > p#ap > a").filter("#foobar",function(){},function(i){ ok( this == q("google","groups", "mark")[i], "Filter elements, else context" ); });
test("expressions - element", function() { expect(5); ok( $("*").size() >= 30, "Select all" ); t( "Element Selector", "div", ["main","foo"] ); t( "Element Selector", "body", ["body"] ); t( "Element Selector", "html", ["html"] ); t( "Parent Element", "div div", ["foo"] ); });
$("#main > p#ap > a").filter("#foobar",function(){},function(i){ ok( this == q("google","groups", "mark")[i], "Filter elements, else context" ); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
function(a,f) {return jQuery.grep(a,f,true);};
new function() { var b = navigator.userAgent.toLowerCase(); jQuery.browser = { safari: /webkit/.test(b), opera: /opera/.test(b), msie: /msie/.test(b) && !/opera/.test(b), mozilla: /mozilla/.test(b) && !/(compatible|webkit)/.test(b) }; jQuery.boxModel = !jQuery.browser.msie || document.compatMode == "CSS1Compat"; };...
function(a,f) {return jQuery.grep(a,f,true);};
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/69efa31318238a1af5644da7aa5dc691dc33b376/jquery.js/clean/src/jquery/jquery.js
mozilla: /mozilla/.test(b) && !/compatible/.test(b)
mozilla: /mozilla/.test(b) && !/(compatible|webkit)/.test(b)
new function() { var b = navigator.userAgent.toLowerCase(); // Figure out what browser is being used jQuery.browser = { safari: /webkit/.test(b), opera: /opera/.test(b), msie: /msie/.test(b) && !/opera/.test(b), mozilla: /mozilla/.test(b) && !/compatible/.test(b) }; // Check to see if the W3C box model is being use...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/18e563abe53d7a7fb4169c869f01812c119ae191/jquery.js/clean/src/jquery/jquery.js
function(a,f) {return jQuery.grep(a,f,true);};
new function() { var b = navigator.userAgent.toLowerCase(); jQuery.browser = { safari: /webkit/.test(b), opera: /opera/.test(b), msie: /msie/.test(b) && !/opera/.test(b), mozilla: /mozilla/.test(b) && !/compatible/.test(b) }; jQuery.boxModel = !jQuery.browser.msie || document.compatMode == "CSS1Compat"; };
function(a,f) {return jQuery.grep(a,f,true);};
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/48ec10044f011ccfe9bd232d629682b59cccbd97/jquery.js/buggy/src/jquery/jquery.js
name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});
r = jQuery.grep( r, function(e) { return rec.test(e.className); });
name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/65a88fae8919e5da774dcc45c9b42220f875b697/jquery.js/clean/src/jquery/jquery.js
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
this.each(function(responder) { if (responder[callback] && typeof responder[callback] == 'function') { try { responder[callback].apply(responder, [request, transport, json]); } catch (e) {} } });
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
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
ok($("#main > p#ap > a").not("#google").length == 2, ".not")
ok($("#main > p#ap > a").not("#google").length == 2, "not('selector')") isSet( $("p").not("#ap, #sndp").get(), q("firstp", "en", "sap", "first", "result"), "not('selector, selector')" );
test("not(String)", function() { ok($("#main > p#ap > a").not("#google").length == 2, ".not")});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/3ab145e5aaf68fca0973cb3a8a268739729a90d6/coreTest.js/clean/src/jquery/coreTest.js
new function() { var b = navigator.userAgent.toLowerCase(); jQuery.browser = { safari: /webkit/.test(b), opera: /opera/.test(b), msie: /msie/.test(b) && !/opera/.test(b), mozilla: /mozilla/.test(b) && !/compatible/.test(b) }; jQuery.boxModel = !jQuery.browser.msie || document.compatMode == "CSS1Compat"; };
function(a,f) {return jQuery.grep(a,f,true);};
new function() { var b = navigator.userAgent.toLowerCase(); // Figure out what browser is being used jQuery.browser = { safari: /webkit/.test(b), opera: /opera/.test(b), msie: /msie/.test(b) && !/opera/.test(b), mozilla: /mozilla/.test(b) && !/compatible/.test(b) }; // Check to see if the W3C box model is being use...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94fc6aac1990dc3233c70f471432c5b9f230e756/jquery.js/buggy/src/jquery/jquery.js
test("not(String)", function() { ok($("#main > p#ap > a").not("#google").length == 2, "not('selector')") isSet( $("p").not("#ap, #sndp").get(), q("firstp", "en", "sap", "first", "result"), "not('selector, selector')" );
test("expressions - id", function() { expect(5); t( "ID Selector", "#body", ["body"] ); t( "ID Selector w/ Element", "body#body", ["body"] ); t( "ID Selector w/ Element", "ul#first", [] ); t( "All Children of ID", "#foo/*", ["sndp", "en", "sap"] ); t( "All Children of ID with no children", "#firstUL/*", [] );
test("not(String)", function() { ok($("#main > p#ap > a").not("#google").length == 2, "not('selector')") isSet( $("p").not("#ap, #sndp").get(), q("firstp", "en", "sap", "first", "result"), "not('selector, selector')" );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
if ( typeof Prototype != "undefined" && $.g == null && $.clean == null ) throw "Error: You are overwriting jQuery, please include jQuery last.";
if ( typeof Prototype != "undefined" && $.g == null && $.clean == null ) throw "Error: You are overwriting jQuery, please include jQuery last.";
setTimeout(function(){ if ( typeof Prototype != "undefined" && $.g == null && $.clean == null ) throw "Error: You are overwriting jQuery, please include jQuery last.";}, 1000);
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f0034d64e3890553f214db0708b9a831476ea46a/jquery.js/buggy/jquery/jquery.js
r = jQuery.grep( r, function(e){ return re.test(e.className || ''); }, not);
name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});
r = jQuery.grep( r, function(e){ return re.test(e.className || ''); }, not);
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/65a88fae8919e5da774dcc45c9b42220f875b697/jquery.js/clean/src/jquery/jquery.js
this.options.onComplete = (function(transport, object) { this.updateContent(); onComplete(transport, object); }).bind(this);
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
this.options.onComplete = (function(transport, object) { this.updateContent(); onComplete(transport, object); }).bind(this);
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
test("is(String)", function() { expect(22); ok( $('#form').is('form'), 'Check for element: A form must be a form' ); ok( !$('#form').is('div'), 'Check for element: A form is not a div' ); ok( $('#mark').is('.blog'), 'Check for class: Expected class "blog"' ); ok( !$('#mark').is('.link'), 'Check for class: Did not expec...
test("expressions - class", function() { expect(4); t( "Class Selector", ".blog", ["mark","simon"] ); t( "Class Selector", ".blog.link", ["simon"] ); t( "Class Selector w/ Element", "a.blog", ["mark","simon"] ); t( "Parent Class Selector", "p .blog", ["mark","simon"] );
test("is(String)", function() { expect(22); ok( $('#form').is('form'), 'Check for element: A form must be a form' ); ok( !$('#form').is('div'), 'Check for element: A form is not a div' ); ok( $('#mark').is('.blog'), 'Check for class: Expected class "blog"' ); ok( !$('#mark').is('.link'), 'Check for class: Did not expec...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js