|
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 type="application/javascript" 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 .QueryInterface(SpecialPowers.Ci.nsIImageLoadingContent) |
|
27 .getRequest(SpecialPowers.Ci.nsIImageLoadingContent.CURRENT_REQUEST) |
|
28 .image; |
|
29 |
|
30 container.animationMode = |
|
31 SpecialPowers.Ci.imgIContainer.kDontAnimMode; |
|
32 |
|
33 is(container.animationMode, |
|
34 SpecialPowers.Ci.imgIContainer.kDontAnimMode, |
|
35 "yay, our animationMode tweak took effect (and we didn't crash!)"); |
|
36 |
|
37 SimpleTest.finish(); |
|
38 } |
|
39 |
|
40 </script> |
|
41 </pre> |
|
42 </body> |
|
43 </html> |