Bug 1151617 - Add async-zooming tests for async scrollbar positioning. r=tn,botond

This commit is contained in:
Kartikaya Gupta 2015-05-24 16:48:26 -04:00
parent f3507bdc3b
commit 58b0d94d59
5 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html class="reftest-wait"><head>
<meta name="viewport" content="width=device-width">
</head>
<body onload="scrollTo(450,10000); document.documentElement.classList.remove('reftest-wait')">
<div style="width: 9000px; height: 20000px; background: white;"></div>
</body>
</html>

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html class="reftest-wait"
reftest-async-scroll
reftest-async-scroll-x="224" reftest-async-scroll-y="4999"
reftest-async-zoom="2.0"><head>
<meta name="viewport" content="width=device-width">
</head>
<!-- Doing scrollTo(1,1) is to activate the left/up arrows in the scrollbars
for non-overlay scrollbar environments -->
<body onload="scrollTo(1,1); document.documentElement.classList.remove('reftest-wait')">
<div style="width: 4500px; height: 10000px; background: white;"></div>
</body>
</html>

View File

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html class="reftest-wait"><head>
<meta name="viewport" content="width=device-width">
</head>
<body onload="scrollTo(450,10000); document.documentElement.classList.remove('reftest-wait')">
<div style="width: 9000px; height: 20000px; background: white;"></div>
</body>
</html>

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html class="reftest-wait"
reftest-async-scroll
reftest-async-scroll-x="899" reftest-async-scroll-y="19999"
reftest-async-zoom="0.5"><head>
<meta name="viewport" content="width=device-width">
</head>
<!-- Doing scrollTo(1,1) is to activate the left/up arrows in the scrollbars
for non-overlay scrollbar environments -->
<body onload="scrollTo(1,1); document.documentElement.classList.remove('reftest-wait')">
<div style="width: 18000px; height: 40000px; background: white;"></div>
</body>
</html>

View File

@ -6,3 +6,11 @@ skip-if(!asyncPanZoom) == async-scrollbar-1-vh.html async-scrollbar-1-vh-ref.htm
skip-if(!asyncPanZoom) == async-scrollbar-1-v-rtl.html async-scrollbar-1-v-rtl-ref.html
skip-if(!asyncPanZoom) == async-scrollbar-1-h-rtl.html async-scrollbar-1-h-rtl-ref.html
skip-if(!asyncPanZoom) == async-scrollbar-1-vh-rtl.html async-scrollbar-1-vh-rtl-ref.html
# Different zoom levels. Since B2G is the only APZ-enabled platform where we
# currently allow async zooming, that's the only platform on which these tests
# are run. And because the scrollthumb gets async-scaled in the compositor, the
# border-radius ends of the scrollthumb are going to be a little off, hence the
# fuzzy-if clauses.
skip-if(!asyncPanZoom||!B2G) fuzzy-if(B2G,77,82) == async-scrollbar-zoom-1.html async-scrollbar-zoom-1-ref.html
skip-if(!asyncPanZoom||!B2G) fuzzy-if(B2G,94,146) == async-scrollbar-zoom-2.html async-scrollbar-zoom-2-ref.html