Skip to content
Browse files
Changed the style attribute test to handle hex colors (as that's what…
… Opera returns, in this case.
  • Loading branch information
jeresig committed Nov 30, 2009
1 parent 3ec9f49 commit 122e5dc
Showing 1 changed file with 1 addition and 1 deletion.
@@ -199,7 +199,7 @@ test("attr(jquery_method)", function(){
equals( jQuery.trim(elem.className), '', 'attr(removeClass)');

$elem.attr('css', {color:'red'});
equals(, 'red', 'attr(css)');
ok( /^(#ff0000|red)$/i.test(, 'attr(css)');

$elem.attr('height', 10);
equals(, '10px', 'attr(height)');

0 comments on commit 122e5dc

Please sign in to comment.