Skip to content

Commit

Permalink
Getting weird results for font size tests across platforms - easier t…
Browse files Browse the repository at this point in the history
…o test something else (the exact property isn't important for this test).
  • Loading branch information
jeresig committed Oct 15, 2010
1 parent 80a4178 commit c8e5d0b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/unit/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ test("css(String, Object)", function() {

// using contents will get comments regular, text, and comment nodes
var j = jQuery("#nonnodes").contents();
j.css("fontSize", "15px");
equals( j.css("fontSize"), "15px", "Check node,textnode,comment css works" );

j.css("overflow", "hidden");
equals( j.css("overflow"), "hidden", "Check node,textnode,comment css works" );
// opera sometimes doesn't update 'display' correctly, see #2037
jQuery("#t2037")[0].innerHTML = jQuery("#t2037")[0].innerHTML
equals( jQuery("#t2037 .hidden").css("display"), "none", "Make sure browser thinks it is hidden" );
Expand Down

0 comments on commit c8e5d0b

Please sign in to comment.