X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjquery%2FcoreTest.js;fp=src%2Fjquery%2FcoreTest.js;h=b65877a305b165707b9ad3699317b52b2e0c14f3;hb=760a244dbdca7b5a93d147c62ac37ff6eeb9573b;hp=905d92a4fb1e8175fef5b8e1f5ff79efca77d6b1;hpb=d38ee78db9b8a8a89b985928c1d23543cb2ff1cd;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 905d92a..b65877a 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -355,7 +355,7 @@ test("wrap(String|Element)", function() { }); test("append(String|Element|Array<Element>|jQuery)", function() { - expect(17); + expect(18); var defaultText = 'Try them out:' var result = $('#first').append('buga'); ok( result.text() == defaultText + 'buga', 'Check if text appending works' ); @@ -418,6 +418,10 @@ test("append(String|Element|Array<Element>|jQuery)", function() { ok( $('#table colgroup col').length, "Append col" ); reset(); + $('#table').append(''); + ok( $('#table caption').length, "Append caption" ); + + reset(); $('form:last') .append('') .append('');