mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Changed the style attribute test to handle hex colors (as that's what Opera returns, in this case.
This commit is contained in:
parent
3ec9f4990c
commit
122e5dcf14
@ -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)');
|
||||||
|
Loading…
Reference in New Issue
Block a user