test_bug614392.html (1100B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=614392 5 --> 6 <head> 7 <title>Test for Bug 614392</title> 8 <script src="/tests/SimpleTest/SimpleTest.js"></script> 9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 10 </head> 11 <body> 12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=614392">Mozilla Bug 614392</a> 13 <p id="display"></p> 14 <div id="content" style="display: none"> 15 <img src="damon.jpg"> 16 </div> 17 <pre id="test"> 18 <script type="application/javascript"> 19 /** Test for Bug 614392*/ 20 21 SimpleTest.waitForExplicitFinish(); 22 23 window.onload = function() { 24 var img = SpecialPowers.wrap(document.getElementsByTagName("img")[0]); 25 var container = img 26 .getRequest(SpecialPowers.Ci.nsIImageLoadingContent.CURRENT_REQUEST) 27 .image; 28 29 container.animationMode = 30 SpecialPowers.Ci.imgIContainer.kDontAnimMode; 31 32 is(container.animationMode, 33 SpecialPowers.Ci.imgIContainer.kDontAnimMode, 34 "yay, our animationMode tweak took effect (and we didn't crash!)"); 35 36 SimpleTest.finish(); 37 } 38 39 </script> 40 </pre> 41 </body> 42 </html>