diff options
author | jeresig <jeresig@gmail.com> | 2009-11-30 14:31:32 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2009-11-30 14:31:32 -0500 |
commit | 122e5dcf14291bfbaec23505c68e28b7f82aef85 (patch) | |
tree | 347d1eff5771026e50cb4b353505de273b2edc1c /test | |
parent | 3ec9f4990c13f7e44365c9216be5c81b2827385b (diff) | |
download | jquery-122e5dcf14291bfbaec23505c68e28b7f82aef85.tar.gz jquery-122e5dcf14291bfbaec23505c68e28b7f82aef85.zip |
Changed the style attribute test to handle hex colors (as that's what Opera returns, in this case.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/attributes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js index f2d9660e3..aa5bd7c49 100644 --- 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)'); |