mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 19:33:18 +00:00
Bug 867770 - Test to make sure that animated images are layerized correctly when the pref is enabled. r=mattwoodrow
This commit is contained in:
parent
46f4aef1d0
commit
f7c1b5f3aa
BIN
layout/reftests/invalidation/image_rgrg-256x256-animated.gif
Normal file
BIN
layout/reftests/invalidation/image_rgrg-256x256-animated.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
@ -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
|
||||
|
@ -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>
|
@ -0,0 +1,8 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<body style="background:black">
|
||||
<div>
|
||||
<img id="image" src="./image_rgrg-256x256.png"></img>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
16
layout/reftests/invalidation/test-animated-image-layers.html
Normal file
16
layout/reftests/invalidation/test-animated-image-layers.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user