Made the div showing a little more explicit - making sure that it doesn't affect...
[jquery.git] / test / unit / core.js
index 5067205..2f775cd 100644 (file)
@@ -642,11 +642,11 @@ test("css(String|Hash)", function() {
 
 test("css(String, Object)", function() {
        expect(21);
-       ok( jQuery('#foo').is(':visible'), 'Modifying CSS display: Assert element is visible');
-       jQuery('#foo').css('display', 'none');
-       ok( !jQuery('#foo').is(':visible'), 'Modified CSS display: Assert element is hidden');
-       jQuery('#foo').css('display', 'block');
-       ok( jQuery('#foo').is(':visible'), 'Modified CSS display: Assert element is visible');
+       ok( jQuery('#nothiddendiv').is(':visible'), 'Modifying CSS display: Assert element is visible');
+       jQuery('#nothiddendiv').css("display", 'none');
+       ok( !jQuery('#nothiddendiv').is(':visible'), 'Modified CSS display: Assert element is hidden');
+       jQuery('#nothiddendiv').css("display", 'block');
+       ok( jQuery('#nothiddendiv').is(':visible'), 'Modified CSS display: Assert element is visible');
 
        jQuery('#floatTest').css('styleFloat', 'left');
        equals( jQuery('#floatTest').css('styleFloat'), 'left', 'Modified CSS float using "styleFloat": Assert float is left');
@@ -1441,7 +1441,7 @@ test("closest()", function() {
        isSet( jQuery("#main").closest("span,#html").get(), q("html"), "closest(span,#html)" );
 
        isSet( jQuery("div:eq(1)").closest("div:first").get(), [], "closest(div:first)" );
-       isSet( jQuery("div").closest("body:first div:last").get(), q("liveHandlerOrder"), "closest(body:first div:last)" );
+       isSet( jQuery("div").closest("body:first div:last").get(), q("fx-tests"), "closest(body:first div:last)" );
 });
 
 test("not()", function() {
@@ -1523,7 +1523,7 @@ test("prev([String])", function() {
 
 test("show()", function() {
        expect(15);
-       var pass = true, div = jQuery("div");
+       var pass = true, div = jQuery("#main div");
        div.show().each(function(){
                if ( this.style.display == "none" ) pass = false;
        });