Fix for #1087: Using appendTo with select elements
[jquery.git] / src / jquery / coreTest.js
index 049c4cc..05fd026 100644 (file)
@@ -356,7 +356,7 @@ test("wrap(String|Element)", function() {
 });
 
 test("append(String|Element|Array<Element>|jQuery)", function() {
-       expect(12);
+       expect(13);
        var defaultText = 'Try them out:'
        var result = $('#first').append('<b>buga</b>');
        ok( result.text() == defaultText + 'buga', 'Check if text appending works' );
@@ -404,6 +404,10 @@ test("append(String|Element|Array&lt;Element&gt;|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'] );
+       
 });
 
 test("appendTo(String|Element|Array&lt;Element&gt;|jQuery)", function() {