From 58b0d94d59006f0d0b44526ad2ab924e718c60f2 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Sun, 24 May 2015 16:48:26 -0400 Subject: [PATCH] Bug 1151617 - Add async-zooming tests for async scrollbar positioning. r=tn,botond --- .../apz/reftests/async-scrollbar-zoom-1-ref.html | 9 +++++++++ .../apz/reftests/async-scrollbar-zoom-1.html | 14 ++++++++++++++ .../apz/reftests/async-scrollbar-zoom-2-ref.html | 9 +++++++++ .../apz/reftests/async-scrollbar-zoom-2.html | 14 ++++++++++++++ gfx/layers/apz/reftests/reftest.list | 8 ++++++++ 5 files changed, 54 insertions(+) create mode 100644 gfx/layers/apz/reftests/async-scrollbar-zoom-1-ref.html create mode 100644 gfx/layers/apz/reftests/async-scrollbar-zoom-1.html create mode 100644 gfx/layers/apz/reftests/async-scrollbar-zoom-2-ref.html create mode 100644 gfx/layers/apz/reftests/async-scrollbar-zoom-2.html diff --git a/gfx/layers/apz/reftests/async-scrollbar-zoom-1-ref.html b/gfx/layers/apz/reftests/async-scrollbar-zoom-1-ref.html new file mode 100644 index 000000000000..5ed970f7644d --- /dev/null +++ b/gfx/layers/apz/reftests/async-scrollbar-zoom-1-ref.html @@ -0,0 +1,9 @@ + + + + + +
+ + + diff --git a/gfx/layers/apz/reftests/async-scrollbar-zoom-1.html b/gfx/layers/apz/reftests/async-scrollbar-zoom-1.html new file mode 100644 index 000000000000..09be51a79af3 --- /dev/null +++ b/gfx/layers/apz/reftests/async-scrollbar-zoom-1.html @@ -0,0 +1,14 @@ + + + + + + +
+ + + diff --git a/gfx/layers/apz/reftests/async-scrollbar-zoom-2-ref.html b/gfx/layers/apz/reftests/async-scrollbar-zoom-2-ref.html new file mode 100644 index 000000000000..5ed970f7644d --- /dev/null +++ b/gfx/layers/apz/reftests/async-scrollbar-zoom-2-ref.html @@ -0,0 +1,9 @@ + + + + + +
+ + + diff --git a/gfx/layers/apz/reftests/async-scrollbar-zoom-2.html b/gfx/layers/apz/reftests/async-scrollbar-zoom-2.html new file mode 100644 index 000000000000..abe822c21b83 --- /dev/null +++ b/gfx/layers/apz/reftests/async-scrollbar-zoom-2.html @@ -0,0 +1,14 @@ + + + + + + +
+ + + diff --git a/gfx/layers/apz/reftests/reftest.list b/gfx/layers/apz/reftests/reftest.list index 33c54a36748f..bda25be5ce57 100644 --- a/gfx/layers/apz/reftests/reftest.list +++ b/gfx/layers/apz/reftests/reftest.list @@ -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