Bug 1281907 - Part 2 - Add reftest for scrollbars with pinch-zooming. r=botond a=jcristau DEVEDITION_60_0b10_BUILD1 DEVEDITION_60_0b10_RELEASE FIREFOX_60_0b10_BUILD1 FIREFOX_60_0b10_RELEASE
authorJan Henning <jh+bugzilla@buttercookie.de>
Sun, 01 Apr 2018 17:40:04 +0200
changeset 780131 8bf7d4cef4c3fd2048a56aae828cad0fbafc6ff3
parent 780130 d6cfd5638b853ff747e276d816094b1128f80b54
child 780132 679cd6648004bb0114259b05955296fd172bf68f
push id105964
push userbmo:ntim.bugs@gmail.com
push dateWed, 11 Apr 2018 07:37:32 +0000
reviewersbotond, jcristau
bugs1281907
milestone60.0
Bug 1281907 - Part 2 - Add reftest for scrollbars with pinch-zooming. r=botond a=jcristau MozReview-Commit-ID: K7YoEPQLJzU
gfx/layers/apz/test/reftest/reftest.list
gfx/layers/apz/test/reftest/scrollbar-zoom-resolution-1-ref.html
gfx/layers/apz/test/reftest/scrollbar-zoom-resolution-1.html
gfx/layers/apz/test/reftest/scrollbar-zoom-resolution-2-ref.html
gfx/layers/apz/test/reftest/scrollbar-zoom-resolution-2.html
--- a/gfx/layers/apz/test/reftest/reftest.list
+++ b/gfx/layers/apz/test/reftest/reftest.list
@@ -8,12 +8,17 @@ fuzzy-if(Android,4,5) skip-if(!Android) 
 fuzzy-if(Android,3,7) skip-if(!Android) pref(apz.allow_zooming,true) == async-scrollbar-1-vh-rtl.html async-scrollbar-1-vh-rtl-ref.html
 
 # Different async zoom levels. Since 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.
 fuzzy-if(Android,54,20) skip-if(!Android) pref(apz.allow_zooming,true) == async-scrollbar-zoom-1.html async-scrollbar-zoom-1-ref.html
 fuzzy-if(Android,45,22) skip-if(!Android) pref(apz.allow_zooming,true) == async-scrollbar-zoom-2.html async-scrollbar-zoom-2-ref.html
 
+# Test scrollbars working properly with pinch-zooming, i.e. different document resolutions.
+# As above, the end of the scrollthumb won't match perfectly, but the bulk of the scrollbar should be present and identical.
+fuzzy-if(Android,54,14) skip-if(!Android) pref(apz.allow_zooming,true) == scrollbar-zoom-resolution-1.html scrollbar-zoom-resolution-1-ref.html
+fuzzy-if(Android,51,22) skip-if(!Android) pref(apz.allow_zooming,true) == scrollbar-zoom-resolution-2.html scrollbar-zoom-resolution-2-ref.html
+
 # Meta-viewport tag support
 skip-if(!Android) pref(apz.allow_zooming,true) == initial-scale-1.html initial-scale-1-ref.html
 
 skip-if(!asyncPan) == frame-reconstruction-scroll-clamping.html frame-reconstruction-scroll-clamping-ref.html
new file mode 100644
--- /dev/null
+++ b/gfx/layers/apz/test/reftest/scrollbar-zoom-resolution-1-ref.html
@@ -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>
+
new file mode 100644
--- /dev/null
+++ b/gfx/layers/apz/test/reftest/scrollbar-zoom-resolution-1.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html class="reftest-wait"><head>
+<meta name="viewport" content="initial-scale=2.0; width=device-width">
+</head>
+<body onload="scrollTo(225,5000); document.documentElement.classList.remove('reftest-wait')">
+<div style="width: 4500px; height: 10000px; background: white;"></div>
+</body>
+</html>
+
new file mode 100644
--- /dev/null
+++ b/gfx/layers/apz/test/reftest/scrollbar-zoom-resolution-2-ref.html
@@ -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>
+
new file mode 100644
--- /dev/null
+++ b/gfx/layers/apz/test/reftest/scrollbar-zoom-resolution-2.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html class="reftest-wait"><head>
+<meta name="viewport" content="initial-scale=0.5; width=device-width">
+</head>
+<body onload="scrollTo(900,20000); document.documentElement.classList.remove('reftest-wait')">
+<div style="width: 18000px; height: 40000px; background: white;"></div>
+</body>
+</html>
+