From fc4b966303b30a5cdd4399819da21dfbd649971a Mon Sep 17 00:00:00 2001 From: Seth Fowler Date: Tue, 21 Apr 2015 19:23:07 -0700 Subject: [PATCH] Bug 1068881 (Part 2) - Add reftests for rounding image dest rects to zero size. r=roc --- .../image-scrolling-zoom-1-notref.html | 36 +++++++++++++ .../image-scrolling-zoom-1-ref.html | 36 +++++++++++++ .../invalidation/image-scrolling-zoom-1.html | 51 ++++++++++++++++++ .../one-pixel-wide-background.png | Bin 0 -> 1059 bytes layout/reftests/invalidation/reftest.list | 2 + 5 files changed, 125 insertions(+) create mode 100644 layout/reftests/invalidation/image-scrolling-zoom-1-notref.html create mode 100644 layout/reftests/invalidation/image-scrolling-zoom-1-ref.html create mode 100644 layout/reftests/invalidation/image-scrolling-zoom-1.html create mode 100644 layout/reftests/invalidation/one-pixel-wide-background.png diff --git a/layout/reftests/invalidation/image-scrolling-zoom-1-notref.html b/layout/reftests/invalidation/image-scrolling-zoom-1-notref.html new file mode 100644 index 000000000000..524109ff9651 --- /dev/null +++ b/layout/reftests/invalidation/image-scrolling-zoom-1-notref.html @@ -0,0 +1,36 @@ + + + + + + + +
+
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
+
+ + diff --git a/layout/reftests/invalidation/image-scrolling-zoom-1-ref.html b/layout/reftests/invalidation/image-scrolling-zoom-1-ref.html new file mode 100644 index 000000000000..e989d0e86376 --- /dev/null +++ b/layout/reftests/invalidation/image-scrolling-zoom-1-ref.html @@ -0,0 +1,36 @@ + + + + + + + +
+
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
+
+ + diff --git a/layout/reftests/invalidation/image-scrolling-zoom-1.html b/layout/reftests/invalidation/image-scrolling-zoom-1.html new file mode 100644 index 000000000000..85a2753b0367 --- /dev/null +++ b/layout/reftests/invalidation/image-scrolling-zoom-1.html @@ -0,0 +1,51 @@ + + + + + + + +
+
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
Item
+
+
+ + + diff --git a/layout/reftests/invalidation/one-pixel-wide-background.png b/layout/reftests/invalidation/one-pixel-wide-background.png new file mode 100644 index 0000000000000000000000000000000000000000..09f59e39ac05bad3f390aeecd72bf750069b738a GIT binary patch literal 1059 zcmZ{jPm9w)7{+G}ENhlMErO^EA$mXzscg4K{K770hfbumQjoG;W1Wie71~YPk%{)%I z8vr*){4>TZ(DFD+GL(1p!h!g=kfE*>7WTTMkNX3yODNV_X4ABEPt`QdrL#F2`j0D| zk2?A*#!>{~VzDq64U^E9&~CTe&~l*T7~ElGX9){(BgyWTi!9giaWUSLs1kK6y#>i#Z?Q;M@p_*<1<*6RKt&Pa4BmVcgv%yTNFCfBLSYTkRW zWMr`pjMo9OC;{RiP*JI|AI3N-a^bnJ)$3fBM1(#|gDDo}DiBGkyNf6jDT*bBktQn8 zh2mG1e(kbv3Y9mGr}6_`Hle5fdUx*!@5>uKe}A;KH~oEa@o-mB6las#0MIYW=Iyti Q6w$f8N5}s8!HYM40j82W^#A|> literal 0 HcmV?d00001 diff --git a/layout/reftests/invalidation/reftest.list b/layout/reftests/invalidation/reftest.list index df3ef58d958e..34081a30e114 100644 --- a/layout/reftests/invalidation/reftest.list +++ b/layout/reftests/invalidation/reftest.list @@ -64,3 +64,5 @@ pref(layout.animated-image-layers.enabled,true) random-if(Android||gtk2Widget) = skip-if(asyncPanZoom&&winWidget) != layer-splitting-5.html about:blank skip-if(asyncPanZoom&&winWidget) != layer-splitting-6.html about:blank != layer-splitting-7.html about:blank +fuzzy-if(gtk2Widget,2,4) == image-scrolling-zoom-1.html image-scrolling-zoom-1-ref.html +!= image-scrolling-zoom-1-ref.html image-scrolling-zoom-1-notref.html