mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
Bug 1151617 - Add async-zooming tests for async scrollbar positioning. r=tn,botond
This commit is contained in:
parent
f3507bdc3b
commit
58b0d94d59
9
gfx/layers/apz/reftests/async-scrollbar-zoom-1-ref.html
Normal file
9
gfx/layers/apz/reftests/async-scrollbar-zoom-1-ref.html
Normal 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>
|
||||
|
14
gfx/layers/apz/reftests/async-scrollbar-zoom-1.html
Normal file
14
gfx/layers/apz/reftests/async-scrollbar-zoom-1.html
Normal 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>
|
||||
|
9
gfx/layers/apz/reftests/async-scrollbar-zoom-2-ref.html
Normal file
9
gfx/layers/apz/reftests/async-scrollbar-zoom-2-ref.html
Normal 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>
|
||||
|
14
gfx/layers/apz/reftests/async-scrollbar-zoom-2.html
Normal file
14
gfx/layers/apz/reftests/async-scrollbar-zoom-2.html
Normal 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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user