Bug 1065008 - Reftest for compositor culling bug. r=roc

--HG--
extra : rebase_source : 77c5343a91dc05b6d0a4dac99503331f4cfdb3e7
This commit is contained in:
Botond Ballo 2014-09-11 18:40:19 -04:00
parent b17bdef021
commit 44ca398917
3 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<html>
<head>
<title>Culling Test</title>
<meta name="viewport" content="width=device-width">
</head>
<body style="background:red" onload="loaded()">
<div style="height:390px; width:300px; overflow-y:hidden; background:red">
<div style="margin:15px; width:200px; height:40px; background:blue"></div>
<div style="margin:15px; width:200px; height:40px; background:blue"></div>
<div style="margin:15px; width:200px; height:40px; background:blue"></div>
<div style="margin-top:15px; width:300px; height:40px; background:blue"></div>
<div style="margin:15px; width:200px; height:40px; background:blue"></div>
<div style="margin:15px; width:200px; height:40px; background:blue"></div>
<div style="margin:15px; width:200px; height:40px; background:blue"></div>
</div>
<script>
function loaded() {
var scrollableDiv = document.querySelector("div");
scrollableDiv.scrollTop = 10;
}
</script>
</body>
</html>

View File

@ -0,0 +1,20 @@
<html reftest-async-scroll>
<head>
<title>Culling Test</title>
<meta name="viewport" content="width=device-width">
</head>
<body style="background:red">
<div style="height:390px; width:300px; overflow-y:hidden; background:red"
reftest-displayport-x="0" reftest-displayport-y="0"
reftest-displayport-w="300" reftest-displayport-h="400"
reftest-async-scroll-x="0" reftest-async-scroll-y="10">
<div style="margin:15px; width:200px; height:40px; background:blue"></div>
<div style="margin:15px; width:200px; height:40px; background:blue"></div>
<div style="margin:15px; width:200px; height:40px; background:blue"></div>
<div style="margin-top:15px; width:300px; height:40px; background:blue"></div>
<div style="margin:15px; width:200px; height:40px; background:blue"></div>
<div style="margin:15px; width:200px; height:40px; background:blue"></div>
<div style="margin:15px; width:200px; height:40px; background:blue"></div>
</div>
</body>
</html>

View File

@ -14,6 +14,7 @@ pref(layout.async-containerless-scrolling.enabled,true) pref(apz.subframe.enable
pref(layout.async-containerless-scrolling.enabled,true) pref(apz.subframe.enabled,true) skip-if(!asyncPanZoom) == split-opacity-layers-1.html split-opacity-layers-1-ref.html
pref(layout.async-containerless-scrolling.enabled,true) pref(apz.subframe.enabled,true) skip-if(!asyncPanZoom) == sticky-pos-scrollable-1.html sticky-pos-scrollable-1-ref.html
pref(layout.async-containerless-scrolling.enabled,true) pref(apz.subframe.enabled,true) skip-if(!asyncPanZoom) == fixed-pos-scrollable-1.html fixed-pos-scrollable-1-ref.html
pref(layout.async-containerless-scrolling.enabled,true) pref(apz.subframe.enabled,true) skip-if(!asyncPanZoom) == culling-1.html culling-1-ref.html
pref(layout.async-containerless-scrolling.enabled,false) skip-if(!asyncPanZoom) == bg-fixed-1.html bg-fixed-1-ref.html
pref(layout.async-containerless-scrolling.enabled,false) skip-if(!asyncPanZoom) == bg-fixed-cover-1.html bg-fixed-cover-1-ref.html