Bug 867770 - Test to make sure that animated images are layerized correctly when the pref is enabled. r=mattwoodrow

This commit is contained in:
Joe Drew 2013-05-30 21:33:17 -04:00
parent 46f4aef1d0
commit f7c1b5f3aa
5 changed files with 42 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -5,3 +5,5 @@
== 540247-1.xul 540247-1-ref.xul
== 543681-1.html 543681-1-ref.html
== test-image-layers.html test-image-layers-ref.html
pref(layout.animated-image-layers.enabled,true) == test-animated-image-layers.html test-animated-image-layers-ref.html
pref(layout.animated-image-layers.enabled,true) == test-animated-image-layers-background.html test-animated-image-layers-ref.html

View File

@ -0,0 +1,16 @@
<!DOCTYPE HTML>
<html class="reftest-wait">
<body>
<div>
<div id="image" style="width: 256px; height: 256px; background-image: url('image_rgrg-256x256-animated.gif');" class="reftest-no-paint"></div>
</div>
<script type="application/javascript">
function doTest() {
document.body.style.background = "black";
document.documentElement.removeAttribute("class");
}
document.addEventListener("MozReftestInvalidate", doTest, false);
</script>
</body>
</html>

View File

@ -0,0 +1,8 @@
<!DOCTYPE HTML>
<html>
<body style="background:black">
<div>
<img id="image" src="./image_rgrg-256x256.png"></img>
</div>
</body>
</html>

View File

@ -0,0 +1,16 @@
<!DOCTYPE HTML>
<html class="reftest-wait">
<body>
<div>
<img id="image" class="reftest-no-paint" src="./image_rgrg-256x256-animated.gif"></img>
</div>
<script type="application/javascript">
function doTest() {
document.body.style.background = "black";
document.documentElement.removeAttribute("class");
}
document.addEventListener("MozReftestInvalidate", doTest, false);
</script>
</body>
</html>