X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=0592ae9267983c9eb606aeead514e1912902be00;hb=e95a6cc746f9217fa285a87c2e9c0705babf2824;hp=05fd026d7ab3fe89c7ebb4f1c2f8b0f43131377f;hpb=cb828f3dab6ec8439ac111246346a8d4b3205fed;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 05fd026..0592ae9 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -356,7 +356,7 @@ test("wrap(String|Element)", function() { }); test("append(String|Element|Array<Element>|jQuery)", function() { - expect(13); + expect(14); var defaultText = 'Try them out:' var result = $('#first').append('buga'); ok( result.text() == defaultText + 'buga', 'Check if text appending works' ); @@ -405,13 +405,17 @@ test("append(String|Element|Array<Element>|jQuery)", function() { ok( pass, "Test for appending a DOM node to the contents of an IFrame" ); reset(); - $('#select1').appendTo('#foo'); - t( 'Append select', '#foo select', ['select1'] ); + $('
').appendTo('#form').append('test'); + t( 'Append legend', '#legend', ['legend'] ); + + reset(); + $('#select1').append(''); + ok( $('#select1 option:last').text() == "Test", "Appending <OPTION> (all caps)" ); }); test("appendTo(String|Element|Array<Element>|jQuery)", function() { - expect(5); + expect(6); var defaultText = 'Try them out:' $('buga').appendTo('#first'); ok( $("#first").text() == defaultText + 'buga', 'Check if text appending works' ); @@ -431,6 +435,10 @@ test("appendTo(String|Element|Array<Element>|jQuery)", function() { expected = "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo"; $("#first, #yahoo").appendTo('#sap'); ok( expected == $('#sap').text(), "Check for appending of jQuery object" ); + + reset(); + $('#select1').appendTo('#foo'); + t( 'Append select', '#foo select', ['select1'] ); }); test("prepend(String|Element|Array<Element>|jQuery)", function() {