rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
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"; };...
r = jQuery.grep( r, function(e){ return re.test(e.className || ''); }, not);
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|webkit)/.test(b) }; // Check to see if the W3C box model is ...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/65a88fae8919e5da774dcc45c9b42220f875b697/jquery.js/clean/src/jquery/jquery.js
setTimeout((function() { for (var i = 0; i < scripts.length; i++) eval(scripts[i].match(match)[1]); }).bind(this), 10);
this.options.onComplete = (function(transport, object) { this.updateContent(); onComplete(transport, object); }).bind(this);
setTimeout((function() { for (var i = 0; i < scripts.length; i++) eval(scripts[i].match(match)[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
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("expressions - multiple", function() { expect(4); t( "Comma Support", "a.blog, div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog , div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog ,div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog,div", ["mark","simon","main","fo...
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: "pet...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
if (Element.hasClassName(child, className))
if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)")))
return $A(children).inject([], function(elements, child) { if (Element.hasClassName(child, className)) elements.push(child); return elements; });
2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/8a342036a177e27b9f776c900bbae999b6ce8e3c/prototype.js/clean/tracks/public/javascripts/prototype.js
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"] );
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...
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"] );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
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...
test("expressions - child and adjacent", function() { expect(14); t( "Child", "p > a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p> a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p >a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p>a", ["simon1"...
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, xstri...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
t("Select options via [@selected]", "#select1 option[@selected]", [] );
t("Select options via [@selected]", "#select1 option[@selected]", ["option1a"] );
test("expressions - attributes", function() { expect(19); t( "Attribute Exists", "a[@title]", ["google"] ); t( "Attribute Exists", "*[@title]", ["google"] ); t( "Attribute Exists", "[@title]", ["google"] ); t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] ); t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c20924818c560f1afd9c60f188c8bc616583217b/coreTest.js/buggy/src/jquery/coreTest.js
test("expressions - id", function() {
test("expressions - element", function() {
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/*", [] );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
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/*", [] );
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"] );
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/*", [] );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element); }).bind(this));
setTimeout(function() {html.evalScripts()}, 10);
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element); }).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("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"] );
test("expressions - attributes", function() { expect(16); t( "Attribute Exists", "a[@title]", ["google"] ); t( "Attribute Exists", "*[@title]", ["google"] ); t( "Attribute Exists", "[@title]", ["google"] ); t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] ); t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1...
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"] );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
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("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("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"] );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
fragments.reverse().each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild); }).bind(this));
setTimeout(function() {content.evalScripts()}, 10);
fragments.reverse().each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild); }).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("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", [] );
test("expressions - pseudo (:) selctors", function() { expect(30); t( "First Child", "p:first-child", ["firstp","sndp"] ); t( "Last Child", "p:last-child", ["sap"] ); t( "Only Child", "a:only-child", ["simon1","anchor1","yahoo","anchor2"] ); t( "Empty", "ul:empty", ["firstUL"] ); t( "Enabled UI Element", "input:enabled...
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/*", [] );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
t( "All Children of ID", "#foo/*", ["sndp", "en", "sap"] ); t( "All Children of ID with no children", "#firstUL/*", [] );
t( "nth Element", "p:nth(1)", ["ap"] ); t( "First Element", "p:first", ["firstp"] ); t( "Last Element", "p:last", ["first"] ); t( "Even Elements", "p:even", ["firstp","sndp","sap"] ); t( "Odd Elements", "p:odd", ["ap","en","first"] ); t( "Position Equals", "p:eq(1)", ["ap"] ); t( "Position Greater Than", "p:gt(0)", ["a...
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/*", [] );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
test("expressions - multiple", function() {
test("expressions - class", function() {
test("expressions - multiple", function() { expect(4); t( "Comma Support", "a.blog, div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog , div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog ,div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog,div", ["mark","simon","main","fo...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
t( "Comma Support", "a.blog, div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog , div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog ,div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog,div", ["mark","simon","main","foo"] );
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("expressions - multiple", function() { expect(4); t( "Comma Support", "a.blog, div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog , div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog ,div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog,div", ["mark","simon","main","fo...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
this.element.appendChild(fragment);
this.element.parentNode.insertBefore(fragment, this.element);
fragments.each((function(fragment) { this.element.appendChild(fragment); }).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("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("expressions - basic xpath", function() { expect(14); ok( jQuery.find(" t( "All Div Elements", " t( "Absolute Path", "/html/body", ["body"] ); t( "Absolute Path w/ *", "/* /body", ["body"] ); t( "Long Absolute Path", "/html/body/dl/div/div/p", ["sndp","en","sap"] ); t( "Absolute and Relative Paths", "/html t( "All...
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"] );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
jQuery.ajax( "GET", url, null, function(r) { if ( callback ) callback( jQuery.httpData(r,type) ); });
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.ajax( "GET", url, null, function(r) { if ( callback ) callback( jQuery.httpData(r,type) ); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/ajax.js/clean/ajax/ajax.js
new function(){ var e = "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess".split(","); for ( var i = 0; i < e.length; i++ ) new function(){
for ( var i = 0; i < e.length; i++ ) new 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); }; };};
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/46faa03820f82e5b03e6b3d73bd9d5b194b2b310/ajax.js/buggy/src/ajax/ajax.js
};
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/46faa03820f82e5b03e6b3d73bd9d5b194b2b310/ajax.js/buggy/src/ajax/ajax.js
try { eval( this.text || this.textContent || this.innerHTML ); } catch(e){} });
try { eval( this.text || this.textContent || this.innerHTML ); } catch(e){} });
self.html(h).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/f0034d64e3890553f214db0708b9a831476ea46a/ajax.js/buggy/ajax/ajax.js
return function(){ var args = arguments; var items = []; var elements = true; $each(this, function(el){
$each(this, function(el){
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; };
5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/af66a6919b8d36f1a1d048c31276da23a227b278/Element.js/buggy/Native/Element.js
if (elements) items = $$(items); return items; };
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; };
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');
test("load(String, Object, Function) - check scripts", function() { expect(7); stop(); testFoo = undefined; var verifyEvaluation = function() { ok( foobar == "bar", 'Check if script src was evaluated after load' ); ok( $('#foo').html() == 'foo', 'Check if script evaluation has modified DOM'); ok( $('#ap').html() == 'ba...
$.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
});
$.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
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() {} );
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/cb53fc02b68ca267f9eddd8fd4f5d92ef08ae022/ajax.js/buggy/src/ajax/ajax.js
$('#first').load("data/name.php", function() { ok( /^ERROR/.test($('#first').text()), 'Check if content was injected into the DOM' ); start(); });
test("synchronous request", function() { ok( /^{ "data"/.test( $.ajax({url: "data/json.php", async: false}).responseText ), "check returned text" ); });
$('#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 + "-code"); td.innerHTML = "" + row.code; return td; },
function(row) { var td = document.createElement("td"); td.setAttribute("id", "t" + rownum + "-code"); td.innerHTML = "" + row.code; return td; },
function(row) { var td = document.createElement("td"); td.setAttribute("id", "t" + rownum + "-code"); td.innerHTML = "" + row.code; return td; },
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/a6659fd28de5e0d001fe9e46da6cdb9dd78104c0/testsuite.js/buggy/web/testsuite.js
self.html(res.responseText).find("script").each(function(){ try { eval( this.text || this.textContent || this.innerHTML || ""); } catch(e){} });
$.ajax( "GET", url, null, function(r) { if ( callback ) callback( $.httpData(r,type) ); });
self.html(res.responseText).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/70cab836b0d87ec1a94658411c398658780f5810/ajax.js/buggy/ajax/ajax.js
return pairs.inject({}, function(params, pairString) { var pair = pairString.split('='); params[pair[0]] = pair[1]; return params;
return (this.match(matchAll) || []).map(function(scriptTag) { return (scriptTag.match(matchOne) || ['', ''])[1];
return pairs.inject({}, function(params, pairString) { var pair = pairString.split('='); params[pair[0]] = pair[1]; return params; });
5150 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5150/44d85be227cc8496144d82df38b82dfcc1224861/prototype.js/clean/intermine/webapp/main/resources/main/js/prototype.js
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
return pairs.inject({}, function(params, pairString) { var pair = pairString.split('='); params[pair[0]] = pair[1]; return params; });
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/9867ca01ad65827d23c0bf6cc14d8a64137e927d/prototype.js/buggy/tracks/public/javascripts/prototype.js
fx[c] = function(a,b){ return new fx(a,b,c.toLowerCase(),c);};
return this.each(function(){ new fx.Resize(this,o).hide("height"); });
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
function(f) { Element.Methods[f] = Element[f]; }
this.each(function(f){ f.apply(this, args) });
function(f) { Element.Methods[f] = Element[f]; }
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) - check scripts", function() { expect(7); stop(); testFoo = undefined; var verifyEvaluation = function() { ok( foobar == "bar", 'Check if script src was evaluated after load' ); ok( $('#foo').html() == 'foo', 'Check if script evaluation has modified DOM'); ok( $('#ap').html() == 'ba...
$('#first').load("data/name.php", function() { ok( /^ERROR/.test($('#first').text()), 'Check if content was injected into the DOM' ); start();
test("load(String, Object, Function) - check scripts", function() { expect(7); stop(); testFoo = undefined; var verifyEvaluation = function() { ok( foobar == "bar", 'Check if script src was evaluated after load' ); ok( $('#foo').html() == 'foo', 'Check if script evaluation has modified DOM'); ok( $('#ap').html() ...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js
});
test("load(String, Object, Function) - check scripts", function() { expect(7); stop(); testFoo = undefined; var verifyEvaluation = function() { ok( foobar == "bar", 'Check if script src was evaluated after load' ); ok( $('#foo').html() == 'foo', 'Check if script evaluation has modified DOM'); ok( $('#ap').html() ...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js
setTimeout(function() { openDialog(chrome, "_blank", flags, href, null, null, postData); }, 10);
setTimeout(function() { gURLBar.focus(); }, 0);
setTimeout(function() { openDialog(chrome, "_blank", flags, href, null, null, postData); }, 10);
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e1400c9125f1ce96798a8c3ff2c3e918c4b7163a/browser.js/buggy/browser/base/content/browser.js
this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != _continue) throw e; } });
return pairs.inject({}, function(params, pairString) { var pair = pairString.split('='); params[pair[0]] = pair[1]; return params; });
this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != _continue) throw e; } });
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
cur_dates.forEach (function (dateToRemove) { dates = dates.filter(function (d) { return d.compare(dateToRemove) != 0; }); });
this.mExceptions.forEach(function(ex) { var dtstart = ex.item.getProperty("DTSTART"); var dateToReturn; if (aReturnRIDs) dateToReturn = ex.id; else dateToReturn = dtstart; if ((!aRangeStart || aRangeStart.compare(dtstart) <= 0) && (!aRangeEnd || aRangeEnd.compare(dtstart) > 0)) { dates.push(dateToReturn); return; } ...
cur_dates.forEach (function (dateToRemove) { dates = dates.filter(function (d) { return d.compare(dateToRemove) != 0; }); });
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5906b996bc0c90fb48269f12e83119c5c2bcd9ff/calRecurrenceInfo.js/buggy/calendar/base/src/calRecurrenceInfo.js
return this.domManip(arguments, true, 1, function(a){ this.appendChild( a );
return this.each(function(){ var b = a[0].cloneNode(true); this.parentNode.insertBefore( b, this ); while ( b.firstChild ) b = b.firstChild; b.appendChild( this );
return this.domManip(arguments, true, 1, function(a){ this.appendChild( a ); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ccf9d4406296fed48aae0989f2303287f133ed9e/jquery.js/clean/src/jquery/jquery.js
}
};
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/5ec5de6953a22b33de46897c8e915eed300338e6/ajax.js/buggy/src/ajax/ajax.js
function(f) { Element.Methods[f] = Element[f]; }
this.each(function(f){ f.apply(this, args) });
function(f) { Element.Methods[f] = Element[f]; }
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/effects.js/clean/railties/html/javascripts/effects.js
var type = $type(returns); if (type != 'element') elements = false;
if ($type(returns) != 'element') elements = false;
return function(){ var args = arguments; var items = []; var elements = true; $each(this, function(el){ var returns = el[property].apply(el, args); var type = $type(returns); if (type != 'element') elements = false; items.push(returns); }); if (elements) items = $$(items); return items; };
5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/4da6686ebc01d47f45382bb6f6e0a15b68d1dc75/Element.js/clean/Native/Element.js
if(typeof console != "undefined") console.error(e);
synchronize(function() { blocking = true; $.get(files[num],function(js){ js = js.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&"); try { eval(js); } catch(e) { Test.push( [ false, "Died on test #" + (Test.length+1) + ": " + e ] ); } var good = 0, bad = 0; var ol = document.creat...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/00e6e81f94a1831ceef76b371f9c186b4097d91e/test.js/clean/build/test/js/test.js
setTimeout(function() { openDialog(chrome, "_blank", flags, url); }, 10);
setTimeout(function() { openDialog(chrome, "_blank", flags, href, null, null, postData); }, 10);
setTimeout(function() { openDialog(chrome, "_blank", flags, url); }, 10);
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/461bb1693870a76f71adfde66d449f0e04fb41a8/browser.js/clean/browser/base/content/browser.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(){
$("div.more,div.short",this.parentNode.parentNode).toggle().find("div.desc",function(){ $(this).html( $(this).html().replace(/\n\n/g, "<br/><br/>") ); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ccf9d4406296fed48aae0989f2303287f133ed9e/doc.js/buggy/build/docs/js/doc.js
this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != _continue) throw e; } });
return pairs.inject({}, function(params, pairString) { var pair = pairString.split('='); params[pair[0]] = pair[1]; return params; });
this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != _continue) throw e; } });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
return pairs.inject({}, function(params, pairString) { var pair = pairString.split('='); params[pair[0]] = pair[1]; return params; });
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
708 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/708/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/clean/public/javascripts/prototype.js
setTimeout(function(field, data, evt) { field.value = data; field.onTextEntered(evt); }, 0, field, data, aEvent);
setTimeout(function(aTabElt) { gBrowser.selectedTab = aTabElt; }, 0, gBrowser.addTab(url));
setTimeout(function(field, data, evt) { field.value = data; field.onTextEntered(evt); }, 0, field, data, aEvent);
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a429b6720a457cbc90d1df942a1f58abece300ce/browser.js/buggy/browser/base/content/browser.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); };
jQuery.prototype[o] = function(f){ return this.bind(o, f); };
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.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 );
return this.domManip(arguments, true, 1, function(a){ this.appendChild( a );
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/69efa31318238a1af5644da7aa5dc691dc33b376/jquery.js/clean/src/jquery/jquery.js
if ($Element(el, 'hasClass', className)) found.push(el);
if (Element.prototype.hasClass.call(el, className)) found.push(el);
this.each(function(el){ if ($Element(el, 'hasClass', className)) found.push(el); });
5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/b57774298a216831aaf9ee0a5b41fa9aa6fc447e/Dom.js/buggy/Addons/Dom.js
$A(element.childNodes).each( function(child) { if(child.nodeType==3) { child.nodeValue.toArray().each( function(character) {
child.nodeValue.toArray().each( function(character) {
$A(element.childNodes).each( function(child) { if(child.nodeType==3) { child.nodeValue.toArray().each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == " " ? String.fromCharCode(160) : character), child); ...
2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/8a342036a177e27b9f776c900bbae999b6ce8e3c/effects.js/buggy/tracks/public/javascripts/effects.js
Element.remove(child); } });
$A(element.childNodes).each( function(child) { if(child.nodeType==3) { child.nodeValue.toArray().each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == " " ? String.fromCharCode(160) : character), child); ...
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);
jQuery.fn[o] = function(f){ return f ? this.bind(o, f) : this.trigger(o); };
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(){
.find("div.desc",function(){ $(this).html( $(this).html().replace(/\n\n/g, "<br/><br/>") ); })
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/fb11b33d68f64ea446f2f8c6d3ef2aed3652349f/doc.js/clean/build/docs/js/doc.js
})
}).end()
.find("div.desc",function(){ $(this).html( $(this).html().replace(/\n\n/g, "<br/><br/>") ); })
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 || "");
self.html(h).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
$.xml(mth, url, $.param(this.vars), function(r) { eval(r.responseText); });
}).submit(function(e){ e.preventDefault(); $(this).ajaxSubmit(target, post_cb, pre_cb); return false; });
$.xml(mth, url, $.param(this.vars), function(r) { eval(r.responseText); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ce6af8e8894b14c7b2c41b64a097bc49acc73b19/form.js/buggy/form/form.js
}
};
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/e8627fe1555602dc4713c4e848a41642b2654512/ajax.js/buggy/ajax/ajax.js
var d = $.getCSS(this,"display"); if ( d == "none" || d === '' ) $(this).show(); else $(this).hide(); });
this.style.display = this.oldblock ? this.oldblock : ""; if ( $.css(this,"display") == "none" ) this.style.display = "block"; });
return this.each(function(){ var d = $.getCSS(this,"display"); if ( d == "none" || d === '' ) $(this).show(); else $(this).hide(); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/jquery.js/buggy/jquery/jquery.js
test("expressions - child and adjacent", function() { expect(14); t( "Child", "p > a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p> a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p >a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p>a", ["simon1"...
test("expressions - multiple", function() { expect(4); t( "Comma Support", "a.blog, div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog , div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog ,div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog,div", ["mark","simon","main","fo...
test("expressions - child and adjacent", function() { expect(14); t( "Child", "p > a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p> a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p >a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p>a", ["simon1"...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element.nextSibling);
fragments.reverse(false).each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild);
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element.nextSibling); }).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
setTimeout(function() {html.evalScripts()}, 10);
return this[value] = this[value] || function() { return value.apply(null, [this].concat($A(arguments))); }
setTimeout(function() {html.evalScripts()}, 10);
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js
test("expressions - multiple", function() { expect(4); t( "Comma Support", "a.blog, div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog , div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog ,div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog,div", ["mark","simon","main","fo...
test("val()", function() { expect(2); ok( $("#text1").val() == "Test", "Check for value of input element" ); ok( !$("#text1").val() == "", "Check for value of input element" );
test("expressions - multiple", function() { expect(4); t( "Comma Support", "a.blog, div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog , div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog ,div", ["mark","simon","main","foo"] ); t( "Comma Support", "a.blog,div", ["mark","simon","main","fo...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
setTimeout(function() {html.evalScripts()}, 10);
return this[value] = this[value] || function() { return value.apply(null, [this].concat($A(arguments))); }
setTimeout(function() {html.evalScripts()}, 10);
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
test("expressions - attributes", function() { expect(16); t( "Attribute Exists", "a[@title]", ["google"] ); t( "Attribute Exists", "*[@title]", ["google"] ); t( "Attribute Exists", "[@title]", ["google"] ); t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] ); t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1...
test("expressions - child and adjacent", function() { expect(14); t( "Child", "p > a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p> a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p >a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p>a", ["simon1"...
test("expressions - attributes", function() { expect(16); t( "Attribute Exists", "a[@title]", ["google"] ); t( "Attribute Exists", "*[@title]", ["google"] ); t( "Attribute Exists", "[@title]", ["google"] ); t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] ); t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator);
fragments.each((function(fragment) { this.element.appendChild(fragment); }).bind(this));
this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator);
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("expressions - child and adjacent", function() { expect(14); t( "Child", "p > a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p> a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p >a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p>a", ["simon1"...
test("val(String)", function() { expect(2); document.getElementById('text1').value = "bla"; ok( $("#text1").val() == "bla", "Check for modified value of input element" ); $("#text1").val('test'); ok ( document.getElementById('text1').value == "test", "Check for modified (via val(String)) value of input element" );
test("expressions - child and adjacent", function() { expect(14); t( "Child", "p > a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p> a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p >a", ["simon1","google","groups","mark","yahoo","simon"] ); t( "Child", "p>a", ["simon1"...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
return $A(children).inject([], function(elements, child) { if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(Element.extend(child)); return elements; });
return this[value] = this[value] || function() { return value.apply(null, [this].concat($A(arguments))); }
return $A(children).inject([], function(elements, child) { if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(Element.extend(child)); return elements; });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
return $A(children).inject([], function(elements, child) { if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(Element.extend(child)); return elements; });
return this[value] = this[value] || function() { return value.apply(null, [this].concat($A(arguments))); }
return $A(children).inject([], function(elements, child) { if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(Element.extend(child)); return elements; });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
test("expressions - pseudo (:) selctors", function() { expect(30); t( "First Child", "p:first-child", ["firstp","sndp"] ); t( "Last Child", "p:last-child", ["sap"] ); t( "Only Child", "a:only-child", ["simon1","anchor1","yahoo","anchor2"] ); t( "Empty", "ul:empty", ["firstUL"] ); t( "Enabled UI Element", "input:enabled...
test("expressions - attributes", function() { expect(16); t( "Attribute Exists", "a[@title]", ["google"] ); t( "Attribute Exists", "*[@title]", ["google"] ); t( "Attribute Exists", "[@title]", ["google"] );
test("expressions - pseudo (:) selctors", function() { expect(30); t( "First Child", "p:first-child", ["firstp","sndp"] ); t( "Last Child", "p:last-child", ["sap"] ); t( "Only Child", "a:only-child", ["simon1","anchor1","yahoo","anchor2"] ); t( "Empty", "ul:empty", ["firstUL"] ); t( "Enabled UI Element", "input:enabled...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
t( "nth Element", "p:nth(1)", ["ap"] ); t( "First Element", "p:first", ["firstp"] ); t( "Last Element", "p:last", ["first"] ); t( "Even Elements", "p:even", ["firstp","sndp","sap"] ); t( "Odd Elements", "p:odd", ["ap","en","first"] ); t( "Position Equals", "p:eq(1)", ["ap"] ); t( "Position Greater Than", "p:gt(0)", ["a...
t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] ); t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1"] ); t( "Attribute Equals", "a[@rel=bookmark]", ["simon1"] ); t( "Multiple Attribute Equals", "input[@type='hidden'],input[@type='radio']", ["hidden1","radio1","radio2"] ); t( "Multiple Attribute Equals", "i...
test("expressions - pseudo (:) selctors", function() { expect(30); t( "First Child", "p:first-child", ["firstp","sndp"] ); t( "Last Child", "p:last-child", ["sap"] ); t( "Only Child", "a:only-child", ["simon1","anchor1","yahoo","anchor2"] ); t( "Empty", "ul:empty", ["firstUL"] ); t( "Enabled UI Element", "input:enabled...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
t( "Form element :input", ":input", ["text1", "text2", "radio1", "radio2", "check1", "check2", "hidden1", "hidden2", "name", "button", "area1", "select1", "select2", "select3"] ); t( "Form element :radio", ":radio", ["radio1", "radio2"] ); t( "Form element :checkbox", ":checkbox", ["check1", "check2"] ); t( "Form eleme...
t( "Attribute Begins With", "a[@href ^= 'http: t( "Attribute Ends With", "a[@href $= 'org/']", ["mark"] ); t( "Attribute Contains", "a[@href *= 'google']", ["google","groups"] ); t( "Grouped Form Elements", "input[@name='foo[bar]']", ["hidden2"] ); t( ":not() Existing attribute", "select:not([@multiple])", ["select1"...
test("expressions - pseudo (:) selctors", function() { expect(30); t( "First Child", "p:first-child", ["firstp","sndp"] ); t( "Last Child", "p:last-child", ["sap"] ); t( "Only Child", "a:only-child", ["simon1","anchor1","yahoo","anchor2"] ); t( "Empty", "ul:empty", ["firstUL"] ); t( "Enabled UI Element", "input:enabled...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
this.set(this.select(function(className) { return className != classNameToRemove; }));
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element.nextSibling); }).bind(this));
this.set(this.select(function(className) { return className != classNameToRemove; }));
5150 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5150/44d85be227cc8496144d82df38b82dfcc1224861/prototype.js/clean/intermine/webapp/main/resources/main/js/prototype.js
setTimeout(function() {content.evalScripts()}, 10);
setTimeout(function() {html.evalScripts()}, 10);
setTimeout(function() {content.evalScripts()}, 10);
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js
test("expressions - attributes", function() { expect(16); t( "Attribute Exists", "a[@title]", ["google"] ); t( "Attribute Exists", "*[@title]", ["google"] ); t( "Attribute Exists", "[@title]", ["google"] ); t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] ); t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1...
test("html(String)", function() { expect(1); var div = $("div"); div.html("<b>test</b>"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).childNodes.length == 0 ) pass = false; } ok( pass, "Set HTML" );
test("expressions - attributes", function() { expect(16); t( "Attribute Exists", "a[@title]", ["google"] ); t( "Attribute Exists", "*[@title]", ["google"] ); t( "Attribute Exists", "[@title]", ["google"] ); t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] ); t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
return this[value] = this[value] || function() { return value.apply(null, [this].concat($A(arguments))); }
setTimeout(function() {html.evalScripts()}, 10);
return this[value] = this[value] || function() { return value.apply(null, [this].concat($A(arguments))); }
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
return this[value] = this[value] || function() { return value.apply(null, [this].concat($A(arguments))); }
setTimeout(function() {html.evalScripts()}, 10);
return this[value] = this[value] || function() { return value.apply(null, [this].concat($A(arguments))); }
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
setTimeout(function() {content.evalScripts()}, 10);
setTimeout(function() {html.evalScripts()}, 10);
setTimeout(function() {content.evalScripts()}, 10);
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
test("expressions - basic xpath", function() { expect(14); ok( jQuery.find(" t( "All Div Elements", " t( "Absolute Path", "/html/body", ["body"] ); t( "Absolute Path w/ *", "/* /body", ["body"] ); t( "Long Absolute Path", "/html/body/dl/div/div/p", ["sndp","en","sap"] ); t( "Absolute and Relative Paths", "/html t( "All...
test("expressions - pseudo (:) selctors", function() { expect(30); t( "First Child", "p:first-child", ["firstp","sndp"] ); t( "Last Child", "p:last-child", ["sap"] ); t( "Only Child", "a:only-child", ["simon1","anchor1","yahoo","anchor2"] ); t( "Empty", "ul:empty", ["firstUL"] ); t( "Enabled UI Element", "input:enabled...
test("expressions - basic xpath", function() { expect(14); ok( jQuery.find("//*").length >= 30, "All Elements (//*)" ); t( "All Div Elements", "//div", ["main","foo"] ); t( "Absolute Path", "/html/body", ["body"] ); t( "Absolute Path w/ *", "/* /body", ["body"] ); t( "Long Absolute Path", "/html/body/dl/div/div/p", ["s...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element); }).bind(this));
setTimeout(function() {content.evalScripts()}, 10);
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element); }).bind(this));
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js
test("expressions - pseudo (:) selctors", function() { expect(30); t( "First Child", "p:first-child", ["firstp","sndp"] ); t( "Last Child", "p:last-child", ["sap"] ); t( "Only Child", "a:only-child", ["simon1","anchor1","yahoo","anchor2"] ); t( "Empty", "ul:empty", ["firstUL"] ); t( "Enabled UI Element", "input:enabled...
test("id()", function() { expect(3); ok( $(document.getElementById('main')).id() == "main", "Check for id" ); ok( $("#foo").id() == "foo", "Check for id" ); ok( !$("head").id(), "Check for id" );
test("expressions - pseudo (:) selctors", function() { expect(30); t( "First Child", "p:first-child", ["firstp","sndp"] ); t( "Last Child", "p:last-child", ["sap"] ); t( "Only Child", "a:only-child", ["simon1","anchor1","yahoo","anchor2"] ); t( "Empty", "ul:empty", ["firstUL"] ); t( "Enabled UI Element", "input:enabled...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element); }).bind(this));
setTimeout(function() {content.evalScripts()}, 10);
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element); }).bind(this));
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
test("val()", function() { expect(2); ok( $("#text1").val() == "Test", "Check for value of input element" ); ok( !$("#text1").val() == "", "Check for value of input element" );
test("expressions - basic xpath", function() { expect(14); ok( jQuery.find(" t( "All Div Elements", " t( "Absolute Path", "/html/body", ["body"] ); t( "Absolute Path w/ *", "/* /body", ["body"] ); t( "Long Absolute Path", "/html/body/dl/div/div/p", ["sndp","en","sap"] ); t( "Absolute and Relative Paths", "/html t( "All...
test("val()", function() { expect(2); ok( $("#text1").val() == "Test", "Check for value of input element" ); ok( !$("#text1").val() == "", "Check for value of input element" );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
fragments.reverse(false).each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild);
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element);
fragments.reverse(false).each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild); }).bind(this));
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js
test("expressions - basic xpath", function() { expect(14); ok( jQuery.find(" t( "All Div Elements", " t( "Absolute Path", "/html/body", ["body"] ); t( "Absolute Path w/ *", "/* /body", ["body"] ); t( "Long Absolute Path", "/html/body/dl/div/div/p", ["sndp","en","sap"] ); t( "Absolute and Relative Paths", "/html t( "All...
test("title()", function() { expect(2); ok( $(document.getElementById('google')).title() == "Google!", "Check for title" ); ok( !$("#yahoo").title(), "Check for title" );
test("expressions - basic xpath", function() { expect(14); ok( jQuery.find("//*").length >= 30, "All Elements (//*)" ); t( "All Div Elements", "//div", ["main","foo"] ); t( "Absolute Path", "/html/body", ["body"] ); t( "Absolute Path w/ *", "/* /body", ["body"] ); t( "Long Absolute Path", "/html/body/dl/div/div/p", ["s...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
setTimeout(function() {html.evalScripts()}, 10);
$H({'id': 'id', 'className': 'class'}).each(function(pair) { var property = pair.first(), attribute = pair.last(); var value = (element[property] || '').toString(); if (value) result += ' ' + attribute + '=' + value.inspect(true); });
setTimeout(function() {html.evalScripts()}, 10);
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
setTimeout(function() {html.evalScripts()}, 10);
$H({'id': 'id', 'className': 'class'}).each(function(pair) { var property = pair.first(), attribute = pair.last(); var value = (element[property] || '').toString(); if (value) result += ' ' + attribute + '=' + value.inspect(true); });
setTimeout(function() {html.evalScripts()}, 10);
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
fragments.reverse(false).each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild);
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element);
fragments.reverse(false).each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild); }).bind(this));
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
test("val(String)", function() {
test("val()", function() {
test("val(String)", function() { expect(2); document.getElementById('text1').value = "bla"; ok( $("#text1").val() == "bla", "Check for modified value of input element" ); $("#text1").val('test'); ok ( document.getElementById('text1').value == "test", "Check for modified (via val(String)) value of input element" );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
document.getElementById('text1').value = "bla"; ok( $("#text1").val() == "bla", "Check for modified value of input element" ); $("#text1").val('test'); ok ( document.getElementById('text1').value == "test", "Check for modified (via val(String)) value of input element" );
ok( $("#text1").val() == "Test", "Check for value of input element" ); ok( !$("#text1").val() == "", "Check for value of input element" );
test("val(String)", function() { expect(2); document.getElementById('text1').value = "bla"; ok( $("#text1").val() == "bla", "Check for modified value of input element" ); $("#text1").val('test'); ok ( document.getElementById('text1').value == "test", "Check for modified (via val(String)) value of input element" );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
fragments.each((function(fragment) { this.element.appendChild(fragment);
fragments.reverse(false).each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild);
fragments.each((function(fragment) { this.element.appendChild(fragment); }).bind(this));
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js
test("val()", function() { expect(2); ok( $("#text1").val() == "Test", "Check for value of input element" ); ok( !$("#text1").val() == "", "Check for value of input element" );
test("name()", function() { expect(3); ok( $(document.getElementById('text1')).name() == "action", "Check for name" ); ok( $("#hidden1").name() == "hidden", "Check for name" ); ok( !$("#area1").name(), "Check for name" );
test("val()", function() { expect(2); ok( $("#text1").val() == "Test", "Check for value of input element" ); ok( !$("#text1").val() == "", "Check for value of input element" );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
$H({'id': 'id', 'className': 'class'}).each(function(pair) { var property = pair.first(), attribute = pair.last(); var value = (element[property] || '').toString(); if (value) result += ' ' + attribute + '=' + value.inspect(true); });
$A(element.childNodes).each(function(node){ element.removeChild(node) });
$H({'id': 'id', 'className': 'class'}).each(function(pair) { var property = pair.first(), attribute = pair.last(); var value = (element[property] || '').toString(); if (value) result += ' ' + attribute + '=' + value.inspect(true); });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
$H({'id': 'id', 'className': 'class'}).each(function(pair) { var property = pair.first(), attribute = pair.last(); var value = (element[property] || '').toString(); if (value) result += ' ' + attribute + '=' + value.inspect(true); });
$A(element.childNodes).each(function(node){ element.removeChild(node) });
$H({'id': 'id', 'className': 'class'}).each(function(pair) { var property = pair.first(), attribute = pair.last(); var value = (element[property] || '').toString(); if (value) result += ' ' + attribute + '=' + value.inspect(true); });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
fragments.each((function(fragment) { this.element.appendChild(fragment);
fragments.reverse(false).each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild);
fragments.each((function(fragment) { this.element.appendChild(fragment); }).bind(this));
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
test("html(String)", function() { expect(1); var div = $("div"); div.html("<b>test</b>"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).childNodes.length == 0 ) pass = false; } ok( pass, "Set HTML" );
test("val(String)", function() { expect(2); document.getElementById('text1').value = "bla"; ok( $("#text1").val() == "bla", "Check for modified value of input element" ); $("#text1").val('test'); ok ( document.getElementById('text1').value == "test", "Check for modified (via val(String)) value of input element" );
test("html(String)", function() { expect(1); var div = $("div"); div.html("<b>test</b>"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).childNodes.length == 0 ) pass = false; } ok( pass, "Set HTML" );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
this.element.parentNode.insertBefore(fragment, this.element.nextSibling);
this.element.appendChild(fragment);
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element.nextSibling); }).bind(this));
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js