Commit d792e40f authored by Rick Waldron's avatar Rick Waldron

Tests: remove all the empty line whitespace

parent 79f59c21
...@@ -355,7 +355,7 @@ test( "append(Function) returns String", function() { ...@@ -355,7 +355,7 @@ test( "append(Function) returns String", function() {
}); });
test( "append(Function) returns Element", function() { test( "append(Function) returns Element", function() {
expect( 2 ); expect( 2 );
var expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:", var expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:",
old = jQuery("#sap").html(); old = jQuery("#sap").html();
...@@ -368,7 +368,7 @@ test( "append(Function) returns Element", function() { ...@@ -368,7 +368,7 @@ test( "append(Function) returns Element", function() {
}); });
test( "append(Function) returns Array<Element>", function() { test( "append(Function) returns Array<Element>", function() {
expect( 2 ); expect( 2 );
var expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo", var expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo",
old = jQuery("#sap").html(); old = jQuery("#sap").html();
...@@ -381,7 +381,7 @@ test( "append(Function) returns Array<Element>", function() { ...@@ -381,7 +381,7 @@ test( "append(Function) returns Array<Element>", function() {
}); });
test( "append(Function) returns jQuery", function() { test( "append(Function) returns jQuery", function() {
expect( 2 ); expect( 2 );
var expected = "This link has class=\"blog\": Simon Willison's WeblogYahooTry them out:", var expected = "This link has class=\"blog\": Simon Willison's WeblogYahooTry them out:",
old = jQuery("#sap").html(); old = jQuery("#sap").html();
...@@ -394,7 +394,7 @@ test( "append(Function) returns jQuery", function() { ...@@ -394,7 +394,7 @@ test( "append(Function) returns jQuery", function() {
}); });
test( "append(Function) returns Number", function() { test( "append(Function) returns Number", function() {
expect( 2 ); expect( 2 );
var old = jQuery("#sap").html(); var old = jQuery("#sap").html();
...@@ -531,7 +531,7 @@ test( "append(xml)", function() { ...@@ -531,7 +531,7 @@ test( "append(xml)", function() {
}); });
test( "appendTo(String)", function() { test( "appendTo(String)", function() {
expect( 4 ); expect( 4 );
var l, defaultText; var l, defaultText;
...@@ -551,9 +551,9 @@ test( "appendTo(String)", function() { ...@@ -551,9 +551,9 @@ test( "appendTo(String)", function() {
}); });
test( "appendTo(Element|Array<Element>)", function() { test( "appendTo(Element|Array<Element>)", function() {
expect( 2 ); expect( 2 );
var expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:"; var expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:";
jQuery( document.getElementById("first") ).appendTo("#sap"); jQuery( document.getElementById("first") ).appendTo("#sap");
equal( jQuery("#sap").text(), expected, "Check for appending of element" ); equal( jQuery("#sap").text(), expected, "Check for appending of element" );
...@@ -565,9 +565,9 @@ test( "appendTo(Element|Array<Element>)", function() { ...@@ -565,9 +565,9 @@ test( "appendTo(Element|Array<Element>)", function() {
}); });
test( "appendTo(jQuery)", function() { test( "appendTo(jQuery)", function() {
expect( 10 ); expect( 10 );
var expected, num, div; var expected, num, div;
ok( jQuery(document.createElement("script")).appendTo("body").length, "Make sure a disconnected script can be appended." ); ok( jQuery(document.createElement("script")).appendTo("body").length, "Make sure a disconnected script can be appended." );
...@@ -609,7 +609,7 @@ test( "appendTo(jQuery)", function() { ...@@ -609,7 +609,7 @@ test( "appendTo(jQuery)", function() {
}); });
test( "prepend(String)", function() { test( "prepend(String)", function() {
expect( 2 ); expect( 2 );
var result, expected; var result, expected;
...@@ -620,7 +620,7 @@ test( "prepend(String)", function() { ...@@ -620,7 +620,7 @@ test( "prepend(String)", function() {
}); });
test( "prepend(Element)", function() { test( "prepend(Element)", function() {
expect( 1 ); expect( 1 );
var expected; var expected;
...@@ -630,7 +630,7 @@ test( "prepend(Element)", function() { ...@@ -630,7 +630,7 @@ test( "prepend(Element)", function() {
}); });
test( "prepend(Array<Element>)", function() { test( "prepend(Array<Element>)", function() {
expect( 1 ); expect( 1 );
var expected; var expected;
...@@ -640,7 +640,7 @@ test( "prepend(Array<Element>)", function() { ...@@ -640,7 +640,7 @@ test( "prepend(Array<Element>)", function() {
}); });
test( "prepend(jQuery)", function() { test( "prepend(jQuery)", function() {
expect( 1 ); expect( 1 );
var expected; var expected;
...@@ -650,7 +650,7 @@ test( "prepend(jQuery)", function() { ...@@ -650,7 +650,7 @@ test( "prepend(jQuery)", function() {
}); });
test( "prepend(Array<jQuery>)", function() { test( "prepend(Array<jQuery>)", function() {
expect( 1 ); expect( 1 );
var expected; var expected;
...@@ -683,7 +683,7 @@ test( "prepend(Function) with incoming value -- String", function() { ...@@ -683,7 +683,7 @@ test( "prepend(Function) with incoming value -- String", function() {
}); });
test( "prepend(Function) with incoming value -- Element", function() { test( "prepend(Function) with incoming value -- Element", function() {
expect( 2 ); expect( 2 );
var old, expected; var old, expected;
...@@ -699,7 +699,7 @@ test( "prepend(Function) with incoming value -- Element", function() { ...@@ -699,7 +699,7 @@ test( "prepend(Function) with incoming value -- Element", function() {
}); });
test( "prepend(Function) with incoming value -- Array<Element>", function() { test( "prepend(Function) with incoming value -- Array<Element>", function() {
expect( 2 ); expect( 2 );
var old, expected; var old, expected;
...@@ -740,7 +740,7 @@ test( "prependTo(String)", function() { ...@@ -740,7 +740,7 @@ test( "prependTo(String)", function() {
jQuery("<b>buga</b>").prependTo("#first"); jQuery("<b>buga</b>").prependTo("#first");
equal( jQuery("#first").text(), "buga" + defaultText, "Check if text prepending works" ); equal( jQuery("#first").text(), "buga" + defaultText, "Check if text prepending works" );
equal( jQuery("<option value='prependTest'>Prepend Test</option>").prependTo("#select3").parent().find("option:first-child").attr("value"), "prependTest", "Prepending html options to select element" ); equal( jQuery("<option value='prependTest'>Prepend Test</option>").prependTo("#select3").parent().find("option:first-child").attr("value"), "prependTest", "Prepending html options to select element" );
}); });
test( "prependTo(Element)", function() { test( "prependTo(Element)", function() {
...@@ -827,7 +827,7 @@ test( "before(jQuery)", function() { ...@@ -827,7 +827,7 @@ test( "before(jQuery)", function() {
jQuery("#yahoo").before( manipulationBareObj(jQuery("#mark, #first")) ); jQuery("#yahoo").before( manipulationBareObj(jQuery("#mark, #first")) );
equal( jQuery("#en").text(), expected, "Insert jQuery before" ); equal( jQuery("#en").text(), expected, "Insert jQuery before" );
}); });
test( "before(Array<jQuery>)", function() { test( "before(Array<jQuery>)", function() {
expect( 1 ); expect( 1 );
...@@ -879,7 +879,7 @@ test( "before(Function) -- Returns jQuery", function() { ...@@ -879,7 +879,7 @@ test( "before(Function) -- Returns jQuery", function() {
jQuery("#yahoo").before( manipulationFunctionReturningObj(jQuery("#mark, #first")) ); jQuery("#yahoo").before( manipulationFunctionReturningObj(jQuery("#mark, #first")) );
equal( jQuery("#en").text(), expected, "Insert jQuery before" ); equal( jQuery("#en").text(), expected, "Insert jQuery before" );
}); });
test( "before(Function) -- Returns Array<jQuery>", function() { test( "before(Function) -- Returns Array<jQuery>", function() {
expect( 1 ); expect( 1 );
...@@ -913,7 +913,7 @@ test( "before and after w/ empty object (#10812)", function() { ...@@ -913,7 +913,7 @@ test( "before and after w/ empty object (#10812)", function() {
test( ".before() and .after() disconnected node", function() { test( ".before() and .after() disconnected node", function() {
expect(2); expect(2);
equal( jQuery("<input type='checkbox'/>").before("<div/>").length, 1, "before() on disconnected node is no-op" ); equal( jQuery("<input type='checkbox'/>").before("<div/>").length, 1, "before() on disconnected node is no-op" );
equal( jQuery("<input type='checkbox'/>").after("<div/>").length, 1, "after() on disconnected node is no-op" ); equal( jQuery("<input type='checkbox'/>").after("<div/>").length, 1, "after() on disconnected node is no-op" );
}); });
...@@ -997,7 +997,7 @@ test( "insertBefore(jQuery)", function() { ...@@ -997,7 +997,7 @@ test( "insertBefore(jQuery)", function() {
test( ".after(String)", function() { test( ".after(String)", function() {
expect( 1 ); expect( 1 );
var expected = "This is a normal link: Yahoobuga"; var expected = "This is a normal link: Yahoobuga";
jQuery("#yahoo").after( "<b>buga</b>" ); jQuery("#yahoo").after( "<b>buga</b>" );
equal( jQuery("#en").text(), expected, "Insert String after" ); equal( jQuery("#en").text(), expected, "Insert String after" );
...@@ -1091,7 +1091,7 @@ test( "insertAfter(String)", function() { ...@@ -1091,7 +1091,7 @@ test( "insertAfter(String)", function() {
test( "insertAfter(Element)", function() { test( "insertAfter(Element)", function() {
expect(1); expect(1);
var expected = "This is a normal link: YahooTry them out:"; var expected = "This is a normal link: YahooTry them out:";
jQuery( document.getElementById("first") ).insertAfter("#yahoo"); jQuery( document.getElementById("first") ).insertAfter("#yahoo");
equal( jQuery("#en").text(), expected, "Insert element after" ); equal( jQuery("#en").text(), expected, "Insert element after" );
...@@ -1100,7 +1100,7 @@ test( "insertAfter(Element)", function() { ...@@ -1100,7 +1100,7 @@ test( "insertAfter(Element)", function() {
test( "insertAfter(Array<Element>)", function() { test( "insertAfter(Array<Element>)", function() {
expect(1); expect(1);
var expected = "This is a normal link: YahooTry them out:diveintomark"; var expected = "This is a normal link: YahooTry them out:diveintomark";
jQuery( [ document.getElementById("first"), document.getElementById("mark") ] ).insertAfter("#yahoo"); jQuery( [ document.getElementById("first"), document.getElementById("mark") ] ).insertAfter("#yahoo");
equal( jQuery("#en").text(), expected, "Insert array of elements after" ); equal( jQuery("#en").text(), expected, "Insert array of elements after" );
...@@ -1109,7 +1109,7 @@ test( "insertAfter(Array<Element>)", function() { ...@@ -1109,7 +1109,7 @@ test( "insertAfter(Array<Element>)", function() {
test( "insertAfter(jQuery)", function() { test( "insertAfter(jQuery)", function() {
expect(1); expect(1);
var expected = "This is a normal link: YahoodiveintomarkTry them out:"; var expected = "This is a normal link: YahoodiveintomarkTry them out:";
jQuery("#mark, #first").insertAfter("#yahoo"); jQuery("#mark, #first").insertAfter("#yahoo");
equal( jQuery("#en").text(), expected, "Insert jQuery after" ); equal( jQuery("#en").text(), expected, "Insert jQuery after" );
......
...@@ -174,7 +174,7 @@ test( "wrapInner(String)", function() { ...@@ -174,7 +174,7 @@ test( "wrapInner(String)", function() {
equal( jQuery("#first").children().length, 1, "Only one child" ); equal( jQuery("#first").children().length, 1, "Only one child" );
ok( jQuery("#first").children().is(".red"), "Verify Right Element" ); ok( jQuery("#first").children().is(".red"), "Verify Right Element" );
equal( jQuery("#first").children().children().children().length, num, "Verify Elements Intact" ); equal( jQuery("#first").children().children().children().length, num, "Verify Elements Intact" );
num = jQuery("#first").html("foo<div>test</div><div>test2</div>").children().length; num = jQuery("#first").html("foo<div>test</div><div>test2</div>").children().length;
jQuery("#first").wrapInner( "<div class='red'><div id='tmp'></div></div>" ); jQuery("#first").wrapInner( "<div class='red'><div id='tmp'></div></div>" );
equal( jQuery("#first").children().length, 1, "Only one child" ); equal( jQuery("#first").children().length, 1, "Only one child" );
...@@ -188,7 +188,7 @@ test( "wrapInner(Element)", function() { ...@@ -188,7 +188,7 @@ test( "wrapInner(Element)", function() {
var num, var num,
div = jQuery("<div/>"); div = jQuery("<div/>");
num = jQuery("#first").children().length; num = jQuery("#first").children().length;
jQuery("#first").wrapInner( document.getElementById("empty") ); jQuery("#first").wrapInner( document.getElementById("empty") );
equal( jQuery("#first").children().length, 1, "Only one child" ); equal( jQuery("#first").children().length, 1, "Only one child" );
...@@ -213,7 +213,7 @@ test( "wrapInner(Function) returns String", function() { ...@@ -213,7 +213,7 @@ test( "wrapInner(Function) returns String", function() {
equal( jQuery("#first").children().length, 1, "Only one child" ); equal( jQuery("#first").children().length, 1, "Only one child" );
ok( jQuery("#first").children().is(".red"), "Verify Right Element" ); ok( jQuery("#first").children().is(".red"), "Verify Right Element" );
equal( jQuery("#first").children().children().children().length, num, "Verify Elements Intact" ); equal( jQuery("#first").children().children().children().length, num, "Verify Elements Intact" );
num = jQuery("#first").html("foo<div>test</div><div>test2</div>").children().length; num = jQuery("#first").html("foo<div>test</div><div>test2</div>").children().length;
jQuery("#first").wrapInner( val("<div class='red'><div id='tmp'></div></div>") ); jQuery("#first").wrapInner( val("<div class='red'><div id='tmp'></div></div>") );
equal( jQuery("#first").children().length, 1, "Only one child" ); equal( jQuery("#first").children().length, 1, "Only one child" );
...@@ -228,7 +228,7 @@ test( "wrapInner(Function) returns Element", function() { ...@@ -228,7 +228,7 @@ test( "wrapInner(Function) returns Element", function() {
var num, var num,
val = manipulationFunctionReturningObj, val = manipulationFunctionReturningObj,
div = jQuery("<div/>"); div = jQuery("<div/>");
num = jQuery("#first").children().length; num = jQuery("#first").children().length;
jQuery("#first").wrapInner( val(document.getElementById("empty")) ); jQuery("#first").wrapInner( val(document.getElementById("empty")) );
equal( jQuery("#first").children().length, 1, "Only one child" ); equal( jQuery("#first").children().length, 1, "Only one child" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment