Skip to content
Permalink
Browse files

Updated some of the display/visible/hidden tests to work on an approp…

…riate element.
  • Loading branch information
jeresig committed Feb 17, 2009
1 parent 63f8bb7 commit 6bd6a4e059f98782b19f3a6e43671a6b6be438e0
Showing with 5 additions and 5 deletions.
  1. +5 −5 test/unit/core.js
@@ -615,11 +615,11 @@ test("css(String|Hash)", function() {

equals( jQuery('#main').css("display"), 'none', 'Check for css property "display"');

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: 'right'});
equals( jQuery('#floatTest').css('styleFloat'), 'right', 'Modified CSS float using "styleFloat": Assert float is right');

0 comments on commit 6bd6a4e

Please sign in to comment.
You can’t perform that action at this time.