diff options
author | rwldrn <waldron.rick@gmail.com> | 2011-01-05 13:32:59 -0500 |
---|---|---|
committer | rwldrn <waldron.rick@gmail.com> | 2011-01-05 13:32:59 -0500 |
commit | 8099cdce800d45109b961e3521fc0080e9a876c6 (patch) | |
tree | b8887764de8ce38053fa4b6b021bfd2e15b4b713 /test/unit/css.js | |
parent | cbf591152c9f61381e552c9a15bb7c339f1451a9 (diff) | |
download | jquery-8099cdce800d45109b961e3521fc0080e9a876c6.tar.gz jquery-8099cdce800d45109b961e3521fc0080e9a876c6.zip |
Bug #7608 elem.runtimeStyle throws exception in Opera
Diffstat (limited to 'test/unit/css.js')
-rw-r--r-- | test/unit/css.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index fbbf937ca..edc340ceb 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -320,3 +320,25 @@ test(":visible selector works properly on children with a hidden parent (bug #45 jQuery('#table').css('display', 'none').html('<tr><td>cell</td><td>cell</td></tr>'); equals(jQuery('#table td:visible').length, 0, "hidden cell children not perceived as visible"); }); + +test("internal ref to elem.runtimeStyle (bug #7608)", function () { + expect(1); + + var result = true, + val = 10; + + jQuery('<div id="bug7608" style="width:200px;border:solid 1px red;">' + + '<div id="test" style="width:0%; background:#000;"> </div></div>').appendTo("body"); + + try { + // the bug is located within src/css.js + jQuery("#bug7608 #test").animate( { width: val }, 1000); + + } catch (e) { + result = false; + } + + ok( result, "elem.runtimeStyle does not throw exception" ); + + jQuery("#bug7608").remove(); +}); |