]> source.dussan.org Git - jquery-ui.git/commitdiff
Tests: Fixed erroneous refernece to accordion.
authorScott González <scott.gonzalez@gmail.com>
Tue, 25 Jan 2011 03:37:57 +0000 (22:37 -0500)
committerScott González <scott.gonzalez@gmail.com>
Tue, 25 Jan 2011 03:37:57 +0000 (22:37 -0500)
tests/unit/testsuite.js

index 23819d0e43bd06ddf8a4f9d55a062f14945e02cc..0033182dc6d3d6224bd3c22e1fa17b58d07631ca 100644 (file)
@@ -48,10 +48,10 @@ function testBasicUsage( widget ) {
                $( defaultElement ).appendTo( "body" )[ widget ]().remove();
                ok( true, "initialized on element" );
 
-               $( defaultElement ).accordion().remove();
+               $( defaultElement )[ widget ]().remove();
                ok( true, "initialized on disconnected DOMElement - never connected" );
 
-               $( defaultElement ).appendTo( "body" ).remove().accordion().remove();
+               $( defaultElement ).appendTo( "body" ).remove()[ widget ]().remove();
                ok( true, "initialized on disconnected DOMElement - removed" );
        });
 }