Commit 10ab08de authored by John Resig's avatar John Resig

Fixed some more CSS/visibility tests.

parent ad7577a0
...@@ -642,11 +642,11 @@ test("css(String|Hash)", function() { ...@@ -642,11 +642,11 @@ test("css(String|Hash)", function() {
test("css(String, Object)", function() { test("css(String, Object)", function() {
expect(21); expect(21);
ok( jQuery('#foo').is(':visible'), 'Modifying CSS display: Assert element is visible'); ok( jQuery('#nothiddendiv').is(':visible'), 'Modifying CSS display: Assert element is visible');
jQuery('#foo').css('display', 'none'); jQuery('#nothiddendiv').css("display", 'none');
ok( !jQuery('#foo').is(':visible'), 'Modified CSS display: Assert element is hidden'); ok( !jQuery('#nothiddendiv').is(':visible'), 'Modified CSS display: Assert element is hidden');
jQuery('#foo').css('display', 'block'); jQuery('#nothiddendiv').css("display", 'block');
ok( jQuery('#foo').is(':visible'), 'Modified CSS display: Assert element is visible'); ok( jQuery('#nothiddendiv').is(':visible'), 'Modified CSS display: Assert element is visible');
jQuery('#floatTest').css('styleFloat', 'left'); jQuery('#floatTest').css('styleFloat', 'left');
equals( jQuery('#floatTest').css('styleFloat'), 'left', 'Modified CSS float using "styleFloat": Assert float is left'); equals( jQuery('#floatTest').css('styleFloat'), 'left', 'Modified CSS float using "styleFloat": Assert float is left');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment