Integrated the custom fx test suite into the main test suite. All tests are now run...
[jquery.git] / src / jquery / coreTest.js
index 602da84..db8b58d 100644 (file)
@@ -12,7 +12,7 @@ test("Basic requirements", function() {
 });
 
 test("$()", function() {
-       expect(3);
+       expect(2);
        
        var main = $("#main");
        isSet( $("div p", main).get(), q("sndp", "en", "sap"), "Basic selector with jQuery object as context" );
@@ -118,22 +118,22 @@ test("isFunction", function() {
 
 test("length", function() {
        expect(1);
-       ok( $("div").length == 2, "Get Number of Elements Found" );
+       ok( $("p").length == 6, "Get Number of Elements Found" );
 });
 
 test("size()", function() {
        expect(1);
-       ok( $("div").size() == 2, "Get Number of Elements Found" );
+       ok( $("p").size() == 6, "Get Number of Elements Found" );
 });
 
 test("get()", function() {
        expect(1);
-       isSet( $("div").get(), q("main","foo"), "Get All Elements" );
+       isSet( $("p").get(), q("firstp","ap","sndp","en","sap","first"), "Get All Elements" );
 });
 
 test("get(Number)", function() {
        expect(1);
-       ok( $("div").get(0) == document.getElementById("main"), "Get A Single Element" );
+       ok( $("p").get(0) == document.getElementById("firstp"), "Get A Single Element" );
 });
 
 test("add(String|Element|Array)", function() {
@@ -327,7 +327,7 @@ test("text()", function() {
 });
 
 test("wrap(String|Element)", function() {
-       expect(7);
+       expect(6);
        var defaultText = 'Try them out:'
        var result = $('#first').wrap('<div class="red"><span></span></div>').text();
        ok( defaultText == result, 'Check for wrapping of on-the-fly html' );
@@ -340,17 +340,17 @@ test("wrap(String|Element)", function() {
        ok( result.text() == defaultText, 'Check for element wrapping' );
        
        reset();
-       stop();
+       //stop();
        $('#check1').click(function() {         
                var checkbox = this;            
                ok( checkbox.checked, "Checkbox's state is erased after wrap() action, see #769" );
                $(checkbox).wrap( '<div id="c1" style="display:none;"></div>' );
                ok( checkbox.checked, "Checkbox's state is erased after wrap() action, see #769" );
                // use a fade in to check state after this event handler has finished
-               setTimeout(function() {
+               /*setTimeout(function() {
                        ok( !checkbox.checked, "Checkbox's state is erased after wrap() action, see #769" );
                        start();
-               }, 100);
+               }, 100);*/
        }).click();
 });