Commit 122e5dcf authored by jeresig's avatar jeresig

Changed the style attribute test to handle hex colors (as that's what Opera returns, in this case.

parent 3ec9f499
...@@ -199,7 +199,7 @@ test("attr(jquery_method)", function(){ ...@@ -199,7 +199,7 @@ test("attr(jquery_method)", function(){
equals( jQuery.trim(elem.className), '', 'attr(removeClass)'); equals( jQuery.trim(elem.className), '', 'attr(removeClass)');
$elem.attr('css', {color:'red'}); $elem.attr('css', {color:'red'});
equals( elem.style.color, 'red', 'attr(css)'); ok( /^(#ff0000|red)$/i.test(elem.style.color), 'attr(css)');
$elem.attr('height', 10); $elem.attr('height', 10);
equals( elem.style.height, '10px', 'attr(height)'); equals( elem.style.height, '10px', 'attr(height)');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment