Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add unit tests for pull request #327. #466

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+7 −0
Split
View
@@ -1090,6 +1090,13 @@
var div = $('#get_style_element')
t.assertEqual('48px', div.css('font-size'))
t.assertEqual('rgb(0, 0, 0)', div.css('color'))
+
+ $('#some_element').css('color', '')
+ t.assertEqual('', el.style.color)
+
+ $('#some_element').css({'margin-top': '', 'marginBottom': ''})
+ t.assertEqual('', el.style.marginTop)
+ t.assertEqual('', el.style.marginBottom)
},
testCSSOnNonExistElm: function (t) {