Fixed some more CSS/visibility tests.
This commit is contained in:
parent
ad7577a084
commit
10ab08de43
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue