git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ec9f49
)
Changed the style attribute test to handle hex colors (as that's what Opera returns...
author
jeresig
<jeresig@gmail.com>
Mon, 30 Nov 2009 19:31:32 +0000
(14:31 -0500)
committer
jeresig
<jeresig@gmail.com>
Mon, 30 Nov 2009 19:31:32 +0000
(14:31 -0500)
test/unit/attributes.js
patch
|
blob
|
history
diff --git
a/test/unit/attributes.js
b/test/unit/attributes.js
index
f2d9660
..
aa5bd7c
100644
(file)
--- a/
test/unit/attributes.js
+++ b/
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( elem.style.color, 'red', 'attr(css)');
+ ok( /^(#ff0000|red)$/i.test(elem.style.color), 'attr(css)');
$elem.attr('height', 10);
equals( elem.style.height, '10px', 'attr(height)');