rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
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("siblings([String])", function() { expect(3); isSet( $("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" ); isSet( $("#sndp").siblings("[code]").get(), q("sap"), "Check for filtered siblings (has code child element)" ); isSet( $("#sndp").siblings("[a]").get(), q("en", "sap"), "Check for filtered sibl...
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/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
$A(element.childNodes).each(function(node){ element.removeChild(node) });
depth.times(function(){ div = div.firstChild });
$A(element.childNodes).each(function(node){ element.removeChild(node) });
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
$A(element.childNodes).each(function(node){ element.removeChild(node) });
depth.times(function(){ div = div.firstChild });
$A(element.childNodes).each(function(node){ element.removeChild(node) });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.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/actionpack/lib/action_view/helpers/javascripts/prototype.js
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("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("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" );});
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.parentNode.insertBefore(fragment, this.element.nextSibling); }).bind(this));
this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator);
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/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("children([String])", function() { expect(2); isSet( $("#foo").children().get(), q("sndp", "en", "sap"), "Check for children" ); isSet( $("#foo").children("[code]").get(), q("sndp", "sap"), "Check for filtered children" );
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/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
depth.times(function(){ div = div.firstChild });
function(node){ element.appendChild(node) });
depth.times(function(){ div = div.firstChild });
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
depth.times(function(){ div = div.firstChild });
function(node){ element.appendChild(node) });
depth.times(function(){ div = div.firstChild });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator);
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element.nextSibling); }).bind(this));
this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator);
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("title()", function() { expect(2); ok( $(document.getElementById('google')).title() == "Google!", "Check for title" ); ok( !$("#yahoo").title(), "Check for title" );
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("title()", function() { expect(2); ok( $(document.getElementById('google')).title() == "Google!", "Check for title" ); ok( !$("#yahoo").title(), "Check for title" );});
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; }).join(' '));
this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator);
this.set(this.select(function(className) { return className != classNameToRemove; }).join(' '));
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js
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("show()", function() { expect(1); var pass = true, div = $("div"); div.show().each(function(){ if ( this.style.display == "none" ) pass = false; }); ok( pass, "Show" );
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" );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
function(node){ element.appendChild(node) });
setTimeout(function() {html.evalScripts()}, 10);
function(node){ element.appendChild(node) });
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
function(node){ element.appendChild(node) });
setTimeout(function() {html.evalScripts()}, 10);
function(node){ element.appendChild(node) });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
this.set(this.select(function(className) { return className != classNameToRemove; }).join(' '));
this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator);
this.set(this.select(function(className) { return className != classNameToRemove; }).join(' '));
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("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("title()", function() { expect(2); ok( $(document.getElementById('google')).title() == "Google!", "Check for title" ); ok( !$("#yahoo").title(), "Check for title" );
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" );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
clause.each(function(attribute) { var value = 'element.getAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; } switch (attribute.operator) { case '=': conditions.push(value + ' == ' + attribute.value.inspec...
this.set(this.select(function(className) { return className != classNameToRemove; }).join(' '));
clause.each(function(attribute) { var value = 'element.getAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; } switch (attribute.operator) { case '=': cond...
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js
test("title()", function() { expect(2); ok( $(document.getElementById('google')).title() == "Google!", "Check for title" ); ok( !$("#yahoo").title(), "Check for title" ); });
div.show().each(function(){ if ( this.style.display == "none" ) pass = false; });
test("title()", function() { expect(2); ok( $(document.getElementById('google')).title() == "Google!", "Check for title" ); ok( !$("#yahoo").title(), "Check for title" );});
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);
['', 'Form', 'Input', 'TextArea', 'Select'].each(function(tag) { var klass = window['HTML' + tag + 'Element'] = {}; klass.prototype = document.createElement(tag ? tag.toLowerCase() : 'div').__proto__; });
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);
['', 'Form', 'Input', 'TextArea', 'Select'].each(function(tag) { var klass = window['HTML' + tag + 'Element'] = {}; klass.prototype = document.createElement(tag ? tag.toLowerCase() : 'div').__proto__; });
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
clause.each(function(attribute) { var value = 'element.getAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; } switch (attribute.operator) { case '=': conditions.push(value + ' == ' + attribute.value.inspec...
this.set(this.select(function(className) { return className != classNameToRemove; }).join(' '));
clause.each(function(attribute) { var value = 'element.getAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; } switch (attribute.operator) { case '=': cond...
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
jQuery.ajax( "POST", url, jQuery.param(data), function(r) { if ( callback ) callback( jQuery.httpData(r,type) ); });
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( "POST", url, jQuery.param(data), function(r) { if ( callback ) callback( jQuery.httpData(r,type) ); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/ajax.js/clean/ajax/ajax.js
if (!n && p == 'OPTGROUP' && (par = par.parentNode)) n = par.name;
if (!n) n = (p == 'OPTGROUP') ? par.parentNode.name : par.name;
$('*', 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/b5a1e0c8a6f06ae774e3d461f8d499a8049d9383/form.js/clean/form/form.js
for ( var i = 0; i < e.length; i++ ) new function(){ var o = e[i]; jQuery.fn[o] = function(f){
jQuery.fn[o] = function(f){
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
};
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
var n = this.name || par.name;
var n = this.name;
$('*', 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/55f08065a9a2758134bc2dee6b338b888d073967/form.js/clean/form/form.js
if(Droppables.isAffected(point, element, drop)) { if(drop.onHover) drop.onHover(element, drop.element, Position.overlap(drop.overlap, drop.element)); if(drop.greedy) { Droppables.activate(drop); throw $break; } }
if(Droppables.isAffected(point, element, drop)) affected.push(drop);
this.drops.each( function(drop) { if(Droppables.isAffected(point, element, drop)) { if(drop.onHover) drop.onHover(element, drop.element, Position.overlap(drop.overlap, drop.element)); if(drop.greedy) { Droppables.activate(drop); throw $break; } } });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
$each(this, function(el){ var returns = el[property].apply(el, args); if ($type(returns) != 'element') elements = false; items.push(returns); });
$each(this.attributes, function(attribute){ if (attribute.name != 'name') el.setProperty(attribute.name, attribute.value); });
$each(this, function(el){ var returns = el[property].apply(el, args); if ($type(returns) != 'element') elements = false; items.push(returns); });
5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/af66a6919b8d36f1a1d048c31276da23a227b278/Element.js/buggy/Native/Element.js
new $.fx.Opacity(this,o).hide();
new $.fx.Opacity(this,o,1).hide();
return a ? this.each(function(){ new $.fx.Opacity(this,o).hide(); }) : this._hide();
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/497bfb7909ada30e3410827808bc0c1a0d9843a7/fx.js/clean/fx/fx.js
$each(this.attributes, function(attribute){ if (attribute.name != 'name') el.setProperty(attribute.name, attribute.value); });
this.events[type].keys.each(function(fn){ this.removeEvent(type, fn); });
$each(this.attributes, function(attribute){ if (attribute.name != 'name') el.setProperty(attribute.name, attribute.value); });
5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/a2560b6edca4199bf8e5624a345f815890b122c2/Element.js/clean/Native/Element.js
test("load(String, Object, Function) - check scripts", function() { expect(6); stop(); window.foobar = undefined; window.foo = 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...
$('#first').load('data/test.html', function() {
test("load(String, Object, Function) - check scripts", function() { expect(6); stop(); window.foobar = undefined; window.foo = 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...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js
ok( foo == "foo", 'Check if script was evaluated after load' );
ok( testFoo == "foo", 'Check if script was evaluated after load' );
test("load(String, Object, Function) - check scripts", function() { expect(6); stop(); window.foobar = undefined; window.foo = 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...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js
});
test("load(String, Object, Function) - check scripts", function() { expect(6); stop(); window.foobar = undefined; window.foo = 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...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js
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(){
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
};
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
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/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js
function(row) { var td = document.createElement("td"); td.setAttribute("id", "t" + rownum + "-data"); var display = DWRUtil.toDescriptiveString(row.data); if (display.length > 30) { display = display.substring(0, 27) + "..."; } td.innerHTML = display; return td; },
function(row) { var td = document.createElement("td"); td.setAttribute("id", "t" + rownum + "-data"); var display = DWRUtil.toDescriptiveString(row.data); if (display.length > 30) { display = display.substring(0, 27) + "..."; } td.innerHTML = display; return td; },
function(row) { var td = document.createElement("td"); td.setAttribute("id", "t" + rownum + "-data"); var display = DWRUtil.toDescriptiveString(row.data); if (display.length > 30) { display = display.substring(0, 27) + "..."; ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/a6659fd28de5e0d001fe9e46da6cdb9dd78104c0/testsuite.js/buggy/web/testsuite.js
$('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; }
$.ajax( "POST", url, $.param(data), function(r) { if ( callback ) callback( $.httpData(r,type) );
$('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; ...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/70cab836b0d87ec1a94658411c398658780f5810/ajax.js/buggy/ajax/ajax.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; } });
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('Microsoft.XMLHTTP')},
this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; } });
function() {return new ActiveXObject('Microsoft.XMLHTTP')},
2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/9867ca01ad65827d23c0bf6cc14d8a64137e927d/prototype.js/buggy/tracks/public/javascripts/prototype.js
for(var i in fx.fn){(function(){ var j = fx.fn[i]; z[j] = function(a,b){ if(c(a,b,"height")) h[j](); if(c(a,b,"width")) w[j](); }; })()}
return a ? this.each(function(){ new fx.Opacity(this,o).hide(); }) : this._hide();
for(var i in fx.fn){(function(){ var j = fx.fn[i]; z[j] = function(a,b){ if(c(a,b,"height")) h[j](); if(c(a,b,"width")) w[j](); }; })()}
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f0034d64e3890553f214db0708b9a831476ea46a/fx.js/buggy/fx/fx.js
if(Droppables.isAffected(point, element, drop)) { if(drop.onHover) drop.onHover(element, drop.element, Position.overlap(drop.overlap, drop.element)); if(drop.greedy) { Droppables.activate(drop); throw $break; } }
if(Droppables.isAffected(point, element, drop)) affected.push(drop);
this.drops.each( function(drop) { if(Droppables.isAffected(point, element, drop)) { if(drop.onHover) drop.onHover(element, drop.element, Position.overlap(drop.overlap, drop.element)); if(drop.greedy) { Droppables.activate(drop); throw $break; } } });
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
this.each(function(f){ f.apply(this, args) });
$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); } });
this.each(function(f){ f.apply(this, args) });
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
$('#first').load('data/test.html', function() { ok( $('#first').html().match(/^html text/), 'Check content after loading html' ); ok( testFoo == "foo", 'Check if script was evaluated after load' ); setTimeout(verifyEvaluation, 600); });
test("load(String, Object, Function) - inject without callback", function() { expect(1); stop(); $('#first').load("data/name.php"); });
$('#first').load('data/test.html', function() { ok( $('#first').html().match(/^html text/), 'Check content after loading html' ); ok( testFoo == "foo", 'Check if script was evaluated after load' ); setTimeout(verifyEvaluation, 600); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js
setTimeout(function(aTabElt) { gBrowser.selectedTab = aTabElt; }, 0, gBrowser.addTab(aUrl, aReferrer, aCharset, aPostData));
setTimeout(function() { openDialog(chrome, "_blank", flags, href, null, null, postData); }, 10);
setTimeout(function(aTabElt) { gBrowser.selectedTab = aTabElt; }, 0, gBrowser.addTab(aUrl, aReferrer, aCharset, aPostData));
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, index) { if (!(result &= (iterator || Prototype.K)(value, index))) throw _break; });
this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; } });
this.each(function(value, index) { if (!(result &= (iterator || Prototype.K)(value, index))) throw _break; });
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
this.find("input[@type='submit'],input[@type='hidden'],textarea,input[@checked],input[@type='password'],input[@type='text'],option[@selected]").filter(":enabled").each(function() {
.each(function() { if (((this.parentNode.type == 'select-one') || (this.parentNode.type == 'select-multiple')) && (!this.selected)) return; if (((this.type == 'radio') || (this.type == 'checkbox')) && (!this.checked)) return;
this.find("input[@type='submit'],input[@type='hidden'],textarea,input[@checked],input[@type='password'],input[@type='text'],option[@selected]").filter(":enabled").each(function() { var o = {}; o.name = this.name || this.id || this.parentNode.name || this.parentNode.id; o.value = this.value; a.push(o); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f1c8b3ffc0d8dfd9dd2cb28c1e569d66d116cc9a/ajax.js/clean/ajax/ajax.js
dates = dates.filter(function (d) { return d.compare(dateToRemove) != 0; });
cur_dates.forEach (function (dateToRemove) { dates = dates.filter(function (d) { return d.compare(dateToRemove) != 0; }); });
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.insertBefore( a, this.firstChild );
return this.domManip(arguments, true, 1, function(a){ this.appendChild( a );
return this.domManip(arguments, true, -1, function(a){ this.insertBefore( a, this.firstChild ); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ccf9d4406296fed48aae0989f2303287f133ed9e/jquery.js/clean/src/jquery/jquery.js
}
};
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
this.each(function(f){ f.apply(this, args) });
$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); } });
this.each(function(f){ f.apply(this, args) });
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;
$each(this, function(el){ var returns = el[property].apply(el, args); var type = $type(returns); if (type != 'element') elements = false; items.push(returns); });
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);
$.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.createElement("ol"); var li = "", state = "pa...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/00e6e81f94a1831ceef76b371f9c186b4097d91e/test.js/clean/build/test/js/test.js
setTimeout(function(aTabElt) { gBrowser.selectedTab = aTabElt; }, 0, gBrowser.addTab(url));
setTimeout(function(aTabElt) { gBrowser.selectedTab = aTabElt; }, 0, gBrowser.addTab(aUrl, aReferrer, aCharset, aPostData));
setTimeout(function(aTabElt) { gBrowser.selectedTab = aTabElt; }, 0, gBrowser.addTab(url));
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/461bb1693870a76f71adfde66d449f0e04fb41a8/browser.js/clean/browser/base/content/browser.js
this.each(function(value, index) { if (!(result &= (iterator || Prototype.K)(value, index))) throw _break; });
this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; } });
this.each(function(value, index) { if (!(result &= (iterator || Prototype.K)(value, index))) throw _break; });
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('Microsoft.XMLHTTP')},
this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; } });
function() {return new ActiveXObject('Microsoft.XMLHTTP')},
708 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/708/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/clean/public/javascripts/prototype.js
setTimeout(function(loc, aloc) { gURLBar.value = loc; SetPageProxyState("valid", aloc);}, 0, location, aLocation);
setTimeout(function(u) { gURLBar.value = u; handleURLBarCommand(); }, 0, url);
setTimeout(function(loc, aloc) { gURLBar.value = loc; SetPageProxyState("valid", aloc);}, 0, location, aLocation);
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a429b6720a457cbc90d1df942a1f58abece300ce/browser.js/buggy/browser/base/content/browser.js
jQuery.prototype["un"+o] = function(f){ return this.unbind(o, f); };
jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); };
jQuery.prototype["un"+o] = function(f){ return this.unbind(o, f); };
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js
return this.domManip(arguments, true, 1, function(a){ this.appendChild( a );
return this.domManip(arguments, true, -1, function(a){ this.insertBefore( a, this.firstChild );
return this.domManip(arguments, true, 1, function(a){ this.appendChild( a ); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/69efa31318238a1af5644da7aa5dc691dc33b376/jquery.js/clean/src/jquery/jquery.js
});
}, this);
this.events[type].keys.each(function(fn){ this.removeEvent(type, fn); });
5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/fcc80ca504adb31cd63f24e4b73ce9e400a788bc/Element.js/buggy/Native/Element.js
child.nodeValue.toArray().each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == " " ? String.fromCharCode(160) : character), child); });
$A(elements).each( function(element, index) { new effect(element, Object.extend(options, { delay: delay + index * speed })); });
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
return $.fn.text.apply( [a.childNodes[1]] ).replace(/^\$\./,"").substr(0,1).toUpperCase();
return $.fn.text.apply( [a.getElementsByTagName("span")[2]] ).replace(/^\$\./,"").substr(0,1).toUpperCase();
$("#docs").alphaPager(function(a){ return $.fn.text.apply( [a.childNodes[1]] ).replace(/^\$\./,"").substr(0,1).toUpperCase(); });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/fb11b33d68f64ea446f2f8c6d3ef2aed3652349f/doc.js/clean/build/docs/js/doc.js
.each(function() { if (((this.parentNode.type == 'select-one') || (this.parentNode.type == 'select-multiple')) && (!this.selected)) return;
$("input,textarea,option",this).filter(":enabled").each(function(){ if ((this.parentNode.type == 'select-one' || this.parentNode.type == 'select-multiple') && !this.selected) { return null; }
.each(function() { // // Skip selects with options which aren't selected if (((this.parentNode.type == 'select-one') || (this.parentNode.type == 'select-multiple')) && (!this.selected)) return; // // Skip radio and checkbox elements which aren't checked if (((this.type == 'radio') || (this.type == '...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/3386923dccbb9f0e7a9518109d54bcbd0f8f863d/ajax.js/clean/ajax/ajax.js
if (((this.type == 'radio') || (this.type == 'checkbox')) && (!this.checked)) return;
if ((this.type == 'radio' || this.type == 'checkbox') && !this.checked) { return null; }
.each(function() { // // Skip selects with options which aren't selected if (((this.parentNode.type == 'select-one') || (this.parentNode.type == 'select-multiple')) && (!this.selected)) return; // // Skip radio and checkbox elements which aren't checked if (((this.type == 'radio') || (this.type == '...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/3386923dccbb9f0e7a9518109d54bcbd0f8f863d/ajax.js/clean/ajax/ajax.js
var o = {}; o.name = this.name || this.id || this.parentNode.name || this.parentNode.id; o.value = this.value; a.push(o);
a.push({ name: this.name || this.id || this.parentNode.name || this.parentNode.id, value: this.value
.each(function() { // // Skip selects with options which aren't selected if (((this.parentNode.type == 'select-one') || (this.parentNode.type == 'select-multiple')) && (!this.selected)) return; // // Skip radio and checkbox elements which aren't checked if (((this.type == 'radio') || (this.type == '...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/3386923dccbb9f0e7a9518109d54bcbd0f8f863d/ajax.js/clean/ajax/ajax.js
});
.each(function() { // // Skip selects with options which aren't selected if (((this.parentNode.type == 'select-one') || (this.parentNode.type == 'select-multiple')) && (!this.selected)) return; // // Skip radio and checkbox elements which aren't checked if (((this.type == 'radio') || (this.type == '...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/3386923dccbb9f0e7a9518109d54bcbd0f8f863d/ajax.js/clean/ajax/ajax.js
$.ajax({url: "data/json.php", async: false, success: function(data) { result = data; } });
$.ajax({url: "data/json.php", async: false, success: function(data) { ok(true, "sucess callback executed"); result = data; } });
test("synchronous request with callbacks", function() { var result; $.ajax({url: "data/json.php", async: false, success: function(data) { result = data; } }); ok( /^{ "data"/.test( result ), "check returned text" );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/666cc900643ac0779b5d1afd132b23d97f7f09e0/ajaxTest.js/buggy/src/ajax/ajaxTest.js
this.style.display = this.$$oldblock ? this.$$oldblock : ''; if ( $.getCSS(this,"display") == "none" ) this.style.display = 'block'; });
this.oldblock = $.css(this,"display"); if ( this.oldblock == "none" ) this.oldblock = "block"; this.style.display = "none"; });
return this.each(function(){ this.style.display = this.$$oldblock ? this.$$oldblock : ''; if ( $.getCSS(this,"display") == "none" ) this.style.display = 'block'; });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/jquery.js/buggy/jquery/jquery.js
test("siblings([String])", function() {
test("name()", function() {
test("siblings([String])", function() { expect(3); isSet( $("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" ); isSet( $("#sndp").siblings("[code]").get(), q("sap"), "Check for filtered siblings (has code child element)" ); isSet( $("#sndp").siblings("[a]").get(), q("en", "sap"), "Check for filtered sib...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
isSet( $("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" ); isSet( $("#sndp").siblings("[code]").get(), q("sap"), "Check for filtered siblings (has code child element)" ); isSet( $("#sndp").siblings("[a]").get(), q("en", "sap"), "Check for filtered siblings (has anchor child element)" );
ok( $(document.getElementById('text1')).name() == "action", "Check for name" ); ok( $("#hidden1").name() == "hidden", "Check for name" ); ok( !$("#area1").name(), "Check for name" );
test("siblings([String])", function() { expect(3); isSet( $("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" ); isSet( $("#sndp").siblings("[code]").get(), q("sap"), "Check for filtered siblings (has code child element)" ); isSet( $("#sndp").siblings("[a]").get(), q("en", "sap"), "Check for filtered sib...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
var klass = window['HTML' + tag + 'Element'] = {};
var className = 'HTML' + tag + 'Element'; if(window[className]) return; var klass = window[className] = {};
['', 'Form', 'Input', 'TextArea', 'Select'].each(function(tag) { var klass = window['HTML' + tag + 'Element'] = {}; klass.prototype = document.createElement(tag ? tag.toLowerCase() : 'div').__proto__; });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/fe39ac7e56c5efaa3995353cdabb432a23229633/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
return $A(arguments).map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.map(selector.findElements.bind(selector)).flatten(); }); }).flatten();
clause.each(function(attribute) { var value = 'element.getAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; } switch (attribute.operator) { case '=': conditions.push(value + ' == ' + attribute.value.inspec...
return $A(arguments).map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.map(selector.findElements.bind(selector)).flatten(); }); }).flatten();
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js
var klass = window['HTML' + tag + 'Element'] = {};
var className = 'HTML' + tag + 'Element'; if(window[className]) return; var klass = window[className] = {};
['', 'Form', 'Input', 'TextArea', 'Select'].each(function(tag) { var klass = window['HTML' + tag + 'Element'] = {}; klass.prototype = document.createElement(tag ? tag.toLowerCase() : 'div').__proto__; });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/fe39ac7e56c5efaa3995353cdabb432a23229633/prototype.js/clean/railties/html/javascripts/prototype.js
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("addClass(String)", function() { var div = $("div"); div.addClass("test"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.indexOf("test") == -1 ) pass = false; } ok( pass, "Add Class" );
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" );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
['', 'Form', 'Input', 'TextArea', 'Select'].each(function(tag) { var klass = window['HTML' + tag + 'Element'] = {}; klass.prototype = document.createElement(tag ? tag.toLowerCase() : 'div').__proto__; });
[HTMLInputElement, HTMLTextAreaElement, HTMLSelectElement].each(function(klass) { copy(Form.Element.Methods, klass.prototype); });
['', 'Form', 'Input', 'TextArea', 'Select'].each(function(tag) { var klass = window['HTML' + tag + 'Element'] = {}; klass.prototype = document.createElement(tag ? tag.toLowerCase() : 'div').__proto__; });
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
['', 'Form', 'Input', 'TextArea', 'Select'].each(function(tag) { var klass = window['HTML' + tag + 'Element'] = {}; klass.prototype = document.createElement(tag ? tag.toLowerCase() : 'div').__proto__; });
[HTMLInputElement, HTMLTextAreaElement, HTMLSelectElement].each(function(klass) { copy(Form.Element.Methods, klass.prototype); });
['', 'Form', 'Input', 'TextArea', 'Select'].each(function(tag) { var klass = window['HTML' + tag + 'Element'] = {}; klass.prototype = document.createElement(tag ? tag.toLowerCase() : 'div').__proto__; });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
return $A(arguments).map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.map(selector.findElements.bind(selector)).flatten(); }); }).flatten();
clause.each(function(attribute) { var value = 'element.getAttribute(' + attribute.name.inspect() + ')'; var splitValueBy = function(delimiter) { return value + ' && ' + value + '.split(' + delimiter.inspect() + ')'; } switch (attribute.operator) { case '=': conditions.push(value + ' == ' + attribute.value.inspec...
return $A(arguments).map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.map(selector.findElements.bind(selector)).flatten(); }); }).flatten();
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("children([String])", function() { expect(2); isSet( $("#foo").children().get(), q("sndp", "en", "sap"), "Check for children" ); isSet( $("#foo").children("[code]").get(), q("sndp", "sap"), "Check for filtered children" );
test("siblings([String])", function() { expect(3); isSet( $("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" ); isSet( $("#sndp").siblings("[code]").get(), q("sap"), "Check for filtered siblings (has code child element)" ); isSet( $("#sndp").siblings("[a]").get(), q("en", "sap"), "Check for filtered sibl...
test("children([String])", function() { expect(2); isSet( $("#foo").children().get(), q("sndp", "en", "sap"), "Check for children" ); isSet( $("#foo").children("[code]").get(), q("sndp", "sap"), "Check for filtered children" );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
return expression.strip().split(/\s+/).inject([null], function(results, expr) {
return $A(arguments).map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) {
return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.map(selector.findElements.bind(selector)).flatten(); });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js
}).flatten();
return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.map(selector.findElements.bind(selector)).flatten(); });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js
test("siblings([String])", function() { expect(3); isSet( $("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" ); isSet( $("#sndp").siblings("[code]").get(), q("sap"), "Check for filtered siblings (has code child element)" ); isSet( $("#sndp").siblings("[a]").get(), q("en", "sap"), "Check for filtered sibl...
test("removeClass(String) - simple", function() { expect(1); var div = $("div").addClass("test").removeClass("test"), pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.indexOf("test") != -1 ) pass = false; } ok( pass, "Remove Class" );
test("siblings([String])", function() { expect(3); isSet( $("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" ); isSet( $("#sndp").siblings("[code]").get(), q("sap"), "Check for filtered siblings (has code child element)" ); isSet( $("#sndp").siblings("[a]").get(), q("en", "sap"), "Check for filtered sib...
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
[HTMLInputElement, HTMLTextAreaElement, HTMLSelectElement].each(function(klass) { copy(Form.Element.Methods, klass.prototype); });
setTimeout(function() {content.evalScripts()}, 10);
[HTMLInputElement, HTMLTextAreaElement, HTMLSelectElement].each(function(klass) { copy(Form.Element.Methods, klass.prototype); });
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
[HTMLInputElement, HTMLTextAreaElement, HTMLSelectElement].each(function(klass) { copy(Form.Element.Methods, klass.prototype); });
setTimeout(function() {content.evalScripts()}, 10);
[HTMLInputElement, HTMLTextAreaElement, HTMLSelectElement].each(function(klass) { copy(Form.Element.Methods, klass.prototype); });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
return expression.strip().split(/\s+/).inject([null], function(results, expr) {
return $A(arguments).map(function(expression) { return expression.strip().split(/\s+/).inject([null], function(results, expr) {
return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.map(selector.findElements.bind(selector)).flatten(); });
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
}).flatten();
return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.map(selector.findElements.bind(selector)).flatten(); });
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("show()", function() { expect(1); var pass = true, div = $("div"); div.show().each(function(){ if ( this.style.display == "none" ) pass = false; }); ok( pass, "Show" );
test("children([String])", function() { expect(2); isSet( $("#foo").children().get(), q("sndp", "en", "sap"), "Check for children" ); isSet( $("#foo").children("[code]").get(), q("sndp", "sap"), "Check for filtered children" );
test("show()", function() { expect(1); var pass = true, div = $("div"); div.show().each(function(){ if ( this.style.display == "none" ) pass = false; }); ok( pass, "Show" );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
return Form.getElements(form).find(function(element) { return element.type != 'hidden' && !element.disabled && ['input', 'select', 'textarea'].include(element.tagName.toLowerCase());
return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.map(selector.findElements.bind(selector)).flatten();
return Form.getElements(form).find(function(element) { return element.type != 'hidden' && !element.disabled && ['input', 'select', 'textarea'].include(element.tagName.toLowerCase()); });
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js
test("children([String])", function() { expect(2); isSet( $("#foo").children().get(), q("sndp", "en", "sap"), "Check for children" ); isSet( $("#foo").children("[code]").get(), q("sndp", "sap"), "Check for filtered children" );
test("removeClass(String) - add three classes and remove again", function() { expect(1); var div = $("div").addClass("test").addClass("foo").addClass("bar"); div.removeClass("test").removeClass("bar").removeClass("foo"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.match(/test|bar...
test("children([String])", function() { expect(2); isSet( $("#foo").children().get(), q("sndp", "en", "sap"), "Check for children" ); isSet( $("#foo").children("[code]").get(), q("sndp", "sap"), "Check for filtered children" );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/coreTest.js/buggy/src/jquery/coreTest.js
setTimeout(function() {content.evalScripts()}, 10);
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element); }).bind(this));
setTimeout(function() {content.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() {content.evalScripts()}, 10);
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element); }).bind(this));
setTimeout(function() {content.evalScripts()}, 10);
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
return Form.getElements(form).find(function(element) { return element.type != 'hidden' && !element.disabled && ['input', 'select', 'textarea'].include(element.tagName.toLowerCase());
return expression.strip().split(/\s+/).inject([null], function(results, expr) { var selector = new Selector(expr); return results.map(selector.findElements.bind(selector)).flatten();
return Form.getElements(form).find(function(element) { return element.type != 'hidden' && !element.disabled && ['input', 'select', 'textarea'].include(element.tagName.toLowerCase()); });
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
div.show().each(function(){
test("show()", function() { expect(1); var pass = true, div = $("div"); div.show().each(function(){
div.show().each(function(){ if ( this.style.display == "none" ) pass = false; });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
ok( pass, "Show" ); });
div.show().each(function(){ if ( this.style.display == "none" ) pass = false; });
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js
return parameter[1].map(function(value) { return key + '=' + encodeURIComponent(value); }).join('&');
return Form.getElements(form).find(function(element) { return element.type != 'hidden' && !element.disabled && ['input', 'select', 'textarea'].include(element.tagName.toLowerCase()); });
return parameter[1].map(function(value) { return key + '=' + encodeURIComponent(value); }).join('&');
3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/prototype.js/buggy/railties/html/javascripts/prototype.js
test("show()", function() { expect(1); var pass = true, div = $("div"); div.show().each(function(){ if ( this.style.display == "none" ) pass = false; }); ok( pass, "Show" );
test("removeAttr(String", function() { ok( $('#mark').removeAttr("class")[0].className == "", "remove class" );
test("show()", function() { expect(1); var pass = true, div = $("div"); div.show().each(function(){ if ( this.style.display == "none" ) pass = false; }); ok( pass, "Show" );});
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);
fragments.reverse(false).each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild);
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/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element);
fragments.reverse(false).each((function(fragment) { this.element.insertBefore(fragment, this.element.firstChild);
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/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/railties/html/javascripts/prototype.js
return parameter[1].map(function(value) { return key + '=' + encodeURIComponent(value); }).join('&');
return Form.getElements(form).find(function(element) { return element.type != 'hidden' && !element.disabled && ['input', 'select', 'textarea'].include(element.tagName.toLowerCase()); });
return parameter[1].map(function(value) { return key + '=' + encodeURIComponent(value); }).join('&');
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("addClass(String)", function() { var div = $("div"); div.addClass("test"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.indexOf("test") == -1 ) pass = false; } ok( pass, "Add Class" ); });
div.show().each(function(){ if ( this.style.display == "none" ) pass = false; });
test("addClass(String)", function() { var div = $("div"); div.addClass("test"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { if ( div.get(i).className.indexOf("test") == -1 ) pass = false; } ok( pass, "Add Class" );});
6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ef1ee513d314123017fce770e8fe0a9c85b9eb87/coreTest.js/clean/src/jquery/coreTest.js