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 122e5dcf14291bfbaec23505c68e28b7f82aef85
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/unit/attributes.js
@@ -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.
You can’t perform that action at this time.