Make sure that some height/width is set for the nothiddendiv before checking.
This commit is contained in:
parent
f078e930ed
commit
de65985933
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@ test("css(String|Hash)", function() {
|
|||
ok( jQuery('#nothiddendiv').is(':visible'), 'Modified CSS display: Assert element is visible');
|
||||
|
||||
// handle negative numbers by ignoring #1599, #4216
|
||||
jQuery('#nothiddendiv').css({ 'width': 1, 'height': 1 });
|
||||
|
||||
var width = parseFloat(jQuery('#nothiddendiv').css('width')), height = parseFloat(jQuery('#nothiddendiv').css('height'));
|
||||
jQuery('#nothiddendiv').css({ width: -1, height: -1 });
|
||||
equals( parseFloat(jQuery('#nothiddendiv').css('width')), width, 'Test negative width ignored')
|
||||
|
|
Loading…
Reference in a new issue