git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e87b090
)
Add some extra tests to make sure we can get the value of hyphenated CSS properties...
author
jeresig
<jeresig@gmail.com>
Tue, 22 Dec 2009 16:54:54 +0000
(11:54 -0500)
committer
jeresig
<jeresig@gmail.com>
Tue, 22 Dec 2009 16:54:54 +0000
(11:54 -0500)
test/unit/css.js
patch
|
blob
|
history
diff --git
a/test/unit/css.js
b/test/unit/css.js
index
f50a21c
..
116312e
100644
(file)
--- a/
test/unit/css.js
+++ b/
test/unit/css.js
@@
-1,7
+1,7
@@
module("css");
test("css(String|Hash)", function() {
module("css");
test("css(String|Hash)", function() {
- expect(28);
+ expect(30);
equals( jQuery('#main').css("display"), 'none', 'Check for css property "display"');
equals( jQuery('#main').css("display"), 'none', 'Check for css property "display"');
@@
-44,7
+44,9
@@
test("css(String|Hash)", function() {
var div = jQuery('#nothiddendiv'), child = jQuery('#nothiddendivchild');
equals( parseInt(div.css("fontSize")), 16, "Verify fontSize px set." );
var div = jQuery('#nothiddendiv'), child = jQuery('#nothiddendivchild');
equals( parseInt(div.css("fontSize")), 16, "Verify fontSize px set." );
+ equals( parseInt(div.css("font-size")), 16, "Verify fontSize px set." );
equals( parseInt(child.css("fontSize")), 16, "Verify fontSize px set." );
equals( parseInt(child.css("fontSize")), 16, "Verify fontSize px set." );
+ equals( parseInt(child.css("font-size")), 16, "Verify fontSize px set." );
child.attr("class", "em");
equals( parseInt(child.css("fontSize")), 32, "Verify fontSize em set." );
child.attr("class", "em");
equals( parseInt(child.css("fontSize")), 32, "Verify fontSize em set." );