X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjquery%2FcoreTest.js;h=d829d3092a67382a7307bd74301fe29d8990b60d;hb=51d05922112851babbeeebb65c8835f4ead82d1f;hp=9791767089cf42fd76022981933c016b442f5d04;hpb=958bed09da67c052dfa85c0bb8c0dc88873e5923;p=jquery.git
diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js
index 9791767..d829d30 100644
--- a/src/jquery/coreTest.js
+++ b/src/jquery/coreTest.js
@@ -356,14 +356,14 @@ test("wrap(String|Element)", function() {
});
test("append(String|Element|Array<Element>|jQuery)", function() {
- expect(14);
+ expect(16);
var defaultText = 'Try them out:'
var result = $('#first').append('buga');
ok( result.text() == defaultText + 'buga', 'Check if text appending works' );
ok( $('#select3').append('').find('option:last-child').attr('value') == 'appendTest', 'Appending html options to select element');
reset();
- 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:";
$('#sap').append(document.getElementById('first'));
ok( expected == $('#sap').text(), "Check for appending of element" );
@@ -405,24 +405,29 @@ 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'] );
-
- reset();
$('