Skip to content
Permalink
Browse files

Fixed some more CSS/visibility tests.

  • Loading branch information
jeresig committed Feb 17, 2009
1 parent ad7577a commit 10ab08de439130ead59d6cc1c31917f2869f923f
Showing with 5 additions and 5 deletions.
  1. +5 −5 test/unit/core.js
@@ -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');

0 comments on commit 10ab08d

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