From 9e3c08db40b8916968b9f30096c7be3f00ce9647 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:44:51 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- image/test/reftest/downscaling/100x100.gif | Bin 0 -> 956 bytes image/test/reftest/downscaling/100x100.jpg | Bin 0 -> 917 bytes image/test/reftest/downscaling/100x100.png | Bin 0 -> 338 bytes image/test/reftest/downscaling/100x32768.gif | Bin 0 -> 4299 bytes image/test/reftest/downscaling/100x32768.jpg | Bin 0 -> 22041 bytes image/test/reftest/downscaling/100x32768.png | Bin 0 -> 70926 bytes image/test/reftest/downscaling/1404366-1.html | 14 ++ image/test/reftest/downscaling/1404366-1.ico | Bin 0 -> 4287 bytes image/test/reftest/downscaling/1421191-1.html | 20 ++ image/test/reftest/downscaling/1421191-1.png | Bin 0 -> 92182 bytes image/test/reftest/downscaling/32768x100.gif | Bin 0 -> 4299 bytes image/test/reftest/downscaling/32768x100.jpg | Bin 0 -> 58065 bytes image/test/reftest/downscaling/32768x100.png | Bin 0 -> 13172 bytes .../reftest/downscaling/black-border-bottom.png | Bin 0 -> 4094 bytes .../test/reftest/downscaling/black-border-left.png | Bin 0 -> 4176 bytes .../test/reftest/downscaling/black-border-rect.svg | 3 + .../reftest/downscaling/black-border-right.png | Bin 0 -> 4097 bytes .../test/reftest/downscaling/black-border-top.png | Bin 0 -> 4144 bytes .../reftest/downscaling/bmp-size-16x16-24bpp.png | Bin 0 -> 879 bytes .../reftest/downscaling/downscale-1-bigimage.png | Bin 0 -> 195 bytes .../test/reftest/downscaling/downscale-1-ref.html | 8 + .../reftest/downscaling/downscale-1-smallimage.png | Bin 0 -> 88 bytes image/test/reftest/downscaling/downscale-1.html | 24 +++ image/test/reftest/downscaling/downscale-16px.html | 28 +++ image/test/reftest/downscaling/downscale-2a.html | 31 +++ image/test/reftest/downscaling/downscale-2b.html | 31 +++ image/test/reftest/downscaling/downscale-2c.html | 31 +++ image/test/reftest/downscaling/downscale-2d.html | 31 +++ image/test/reftest/downscaling/downscale-2e.html | 31 +++ image/test/reftest/downscaling/downscale-2f.html | 31 +++ .../reftest/downscaling/downscale-32px-ref.html | 8 + image/test/reftest/downscaling/downscale-32px.html | 31 +++ image/test/reftest/downscaling/downscale-8px.html | 27 +++ .../downscaling/downscale-moz-icon-1-ref.html | 41 ++++ .../reftest/downscaling/downscale-moz-icon-1.html | 19 ++ .../reftest/downscaling/downscale-orient-ref.html | 24 +++ .../reftest/downscaling/downscale-orient-ref.png | Bin 0 -> 146 bytes .../test/reftest/downscaling/downscale-orient.html | 24 +++ image/test/reftest/downscaling/downscale-png.html | 31 +++ .../reftest/downscaling/downscale-svg-1-ref.html | 13 ++ .../test/reftest/downscaling/downscale-svg-1a.html | 8 + .../test/reftest/downscaling/downscale-svg-1b.html | 8 + .../test/reftest/downscaling/downscale-svg-1c.html | 8 + .../test/reftest/downscaling/downscale-svg-1d.html | 8 + .../test/reftest/downscaling/downscale-svg-1e.html | 8 + .../test/reftest/downscaling/downscale-svg-1f.html | 8 + image/test/reftest/downscaling/ff-0RGB.ico | Bin 0 -> 4286 bytes image/test/reftest/downscaling/ff-0RGB.png | Bin 0 -> 2515 bytes image/test/reftest/downscaling/ff-ARGB.ico | Bin 0 -> 4286 bytes image/test/reftest/downscaling/ff-ARGB.png | Bin 0 -> 115 bytes image/test/reftest/downscaling/huge-1.html | 9 + .../downscaling/image-pre-rotated-90-deg.jpg | Bin 0 -> 6914 bytes .../reftest/downscaling/lime-red-256px-bmp-in.ico | Bin 0 -> 74814 bytes .../reftest/downscaling/lime-red-256px-png-in.ico | Bin 0 -> 881 bytes image/test/reftest/downscaling/lime-red-256px.bmp | Bin 0 -> 196730 bytes image/test/reftest/downscaling/lime-red-256px.gif | Bin 0 -> 873 bytes image/test/reftest/downscaling/lime-red-256px.jpg | Bin 0 -> 2865 bytes image/test/reftest/downscaling/lime-red-256px.png | Bin 0 -> 568 bytes image/test/reftest/downscaling/lime-red-256px.svg | 5 + image/test/reftest/downscaling/lime-red-32px.png | Bin 0 -> 103 bytes image/test/reftest/downscaling/png-interlaced.png | Bin 0 -> 806 bytes image/test/reftest/downscaling/png-normal.png | Bin 0 -> 421 bytes image/test/reftest/downscaling/reftest.list | 217 +++++++++++++++++++++ .../downscaling/top-to-bottom-16x16-24bpp.bmp | Bin 0 -> 822 bytes 64 files changed, 780 insertions(+) create mode 100644 image/test/reftest/downscaling/100x100.gif create mode 100644 image/test/reftest/downscaling/100x100.jpg create mode 100644 image/test/reftest/downscaling/100x100.png create mode 100644 image/test/reftest/downscaling/100x32768.gif create mode 100644 image/test/reftest/downscaling/100x32768.jpg create mode 100644 image/test/reftest/downscaling/100x32768.png create mode 100644 image/test/reftest/downscaling/1404366-1.html create mode 100644 image/test/reftest/downscaling/1404366-1.ico create mode 100644 image/test/reftest/downscaling/1421191-1.html create mode 100644 image/test/reftest/downscaling/1421191-1.png create mode 100644 image/test/reftest/downscaling/32768x100.gif create mode 100644 image/test/reftest/downscaling/32768x100.jpg create mode 100644 image/test/reftest/downscaling/32768x100.png create mode 100644 image/test/reftest/downscaling/black-border-bottom.png create mode 100644 image/test/reftest/downscaling/black-border-left.png create mode 100644 image/test/reftest/downscaling/black-border-rect.svg create mode 100644 image/test/reftest/downscaling/black-border-right.png create mode 100644 image/test/reftest/downscaling/black-border-top.png create mode 100644 image/test/reftest/downscaling/bmp-size-16x16-24bpp.png create mode 100644 image/test/reftest/downscaling/downscale-1-bigimage.png create mode 100644 image/test/reftest/downscaling/downscale-1-ref.html create mode 100644 image/test/reftest/downscaling/downscale-1-smallimage.png create mode 100644 image/test/reftest/downscaling/downscale-1.html create mode 100644 image/test/reftest/downscaling/downscale-16px.html create mode 100644 image/test/reftest/downscaling/downscale-2a.html create mode 100644 image/test/reftest/downscaling/downscale-2b.html create mode 100644 image/test/reftest/downscaling/downscale-2c.html create mode 100644 image/test/reftest/downscaling/downscale-2d.html create mode 100644 image/test/reftest/downscaling/downscale-2e.html create mode 100644 image/test/reftest/downscaling/downscale-2f.html create mode 100644 image/test/reftest/downscaling/downscale-32px-ref.html create mode 100644 image/test/reftest/downscaling/downscale-32px.html create mode 100644 image/test/reftest/downscaling/downscale-8px.html create mode 100644 image/test/reftest/downscaling/downscale-moz-icon-1-ref.html create mode 100644 image/test/reftest/downscaling/downscale-moz-icon-1.html create mode 100644 image/test/reftest/downscaling/downscale-orient-ref.html create mode 100644 image/test/reftest/downscaling/downscale-orient-ref.png create mode 100644 image/test/reftest/downscaling/downscale-orient.html create mode 100644 image/test/reftest/downscaling/downscale-png.html create mode 100644 image/test/reftest/downscaling/downscale-svg-1-ref.html create mode 100644 image/test/reftest/downscaling/downscale-svg-1a.html create mode 100644 image/test/reftest/downscaling/downscale-svg-1b.html create mode 100644 image/test/reftest/downscaling/downscale-svg-1c.html create mode 100644 image/test/reftest/downscaling/downscale-svg-1d.html create mode 100644 image/test/reftest/downscaling/downscale-svg-1e.html create mode 100644 image/test/reftest/downscaling/downscale-svg-1f.html create mode 100644 image/test/reftest/downscaling/ff-0RGB.ico create mode 100644 image/test/reftest/downscaling/ff-0RGB.png create mode 100644 image/test/reftest/downscaling/ff-ARGB.ico create mode 100644 image/test/reftest/downscaling/ff-ARGB.png create mode 100644 image/test/reftest/downscaling/huge-1.html create mode 100644 image/test/reftest/downscaling/image-pre-rotated-90-deg.jpg create mode 100644 image/test/reftest/downscaling/lime-red-256px-bmp-in.ico create mode 100644 image/test/reftest/downscaling/lime-red-256px-png-in.ico create mode 100644 image/test/reftest/downscaling/lime-red-256px.bmp create mode 100644 image/test/reftest/downscaling/lime-red-256px.gif create mode 100644 image/test/reftest/downscaling/lime-red-256px.jpg create mode 100644 image/test/reftest/downscaling/lime-red-256px.png create mode 100644 image/test/reftest/downscaling/lime-red-256px.svg create mode 100644 image/test/reftest/downscaling/lime-red-32px.png create mode 100644 image/test/reftest/downscaling/png-interlaced.png create mode 100644 image/test/reftest/downscaling/png-normal.png create mode 100644 image/test/reftest/downscaling/reftest.list create mode 100644 image/test/reftest/downscaling/top-to-bottom-16x16-24bpp.bmp (limited to 'image/test/reftest/downscaling') diff --git a/image/test/reftest/downscaling/100x100.gif b/image/test/reftest/downscaling/100x100.gif new file mode 100644 index 0000000000..4ff770d368 Binary files /dev/null and b/image/test/reftest/downscaling/100x100.gif differ diff --git a/image/test/reftest/downscaling/100x100.jpg b/image/test/reftest/downscaling/100x100.jpg new file mode 100644 index 0000000000..cea2c240d8 Binary files /dev/null and b/image/test/reftest/downscaling/100x100.jpg differ diff --git a/image/test/reftest/downscaling/100x100.png b/image/test/reftest/downscaling/100x100.png new file mode 100644 index 0000000000..eb3cb08e1e Binary files /dev/null and b/image/test/reftest/downscaling/100x100.png differ diff --git a/image/test/reftest/downscaling/100x32768.gif b/image/test/reftest/downscaling/100x32768.gif new file mode 100644 index 0000000000..f55a2f482f Binary files /dev/null and b/image/test/reftest/downscaling/100x32768.gif differ diff --git a/image/test/reftest/downscaling/100x32768.jpg b/image/test/reftest/downscaling/100x32768.jpg new file mode 100644 index 0000000000..e89acc0334 Binary files /dev/null and b/image/test/reftest/downscaling/100x32768.jpg differ diff --git a/image/test/reftest/downscaling/100x32768.png b/image/test/reftest/downscaling/100x32768.png new file mode 100644 index 0000000000..7cd5509cf2 Binary files /dev/null and b/image/test/reftest/downscaling/100x32768.png differ diff --git a/image/test/reftest/downscaling/1404366-1.html b/image/test/reftest/downscaling/1404366-1.html new file mode 100644 index 0000000000..165cc7f934 --- /dev/null +++ b/image/test/reftest/downscaling/1404366-1.html @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/image/test/reftest/downscaling/1404366-1.ico b/image/test/reftest/downscaling/1404366-1.ico new file mode 100644 index 0000000000..51c020b069 Binary files /dev/null and b/image/test/reftest/downscaling/1404366-1.ico differ diff --git a/image/test/reftest/downscaling/1421191-1.html b/image/test/reftest/downscaling/1421191-1.html new file mode 100644 index 0000000000..b8146a2371 --- /dev/null +++ b/image/test/reftest/downscaling/1421191-1.html @@ -0,0 +1,20 @@ + + + + + + + + diff --git a/image/test/reftest/downscaling/1421191-1.png b/image/test/reftest/downscaling/1421191-1.png new file mode 100644 index 0000000000..e9b756a79e Binary files /dev/null and b/image/test/reftest/downscaling/1421191-1.png differ diff --git a/image/test/reftest/downscaling/32768x100.gif b/image/test/reftest/downscaling/32768x100.gif new file mode 100644 index 0000000000..2194d13efc Binary files /dev/null and b/image/test/reftest/downscaling/32768x100.gif differ diff --git a/image/test/reftest/downscaling/32768x100.jpg b/image/test/reftest/downscaling/32768x100.jpg new file mode 100644 index 0000000000..807b9adb27 Binary files /dev/null and b/image/test/reftest/downscaling/32768x100.jpg differ diff --git a/image/test/reftest/downscaling/32768x100.png b/image/test/reftest/downscaling/32768x100.png new file mode 100644 index 0000000000..3fe4fe1ce5 Binary files /dev/null and b/image/test/reftest/downscaling/32768x100.png differ diff --git a/image/test/reftest/downscaling/black-border-bottom.png b/image/test/reftest/downscaling/black-border-bottom.png new file mode 100644 index 0000000000..efa7ce2dce Binary files /dev/null and b/image/test/reftest/downscaling/black-border-bottom.png differ diff --git a/image/test/reftest/downscaling/black-border-left.png b/image/test/reftest/downscaling/black-border-left.png new file mode 100644 index 0000000000..11bc67e983 Binary files /dev/null and b/image/test/reftest/downscaling/black-border-left.png differ diff --git a/image/test/reftest/downscaling/black-border-rect.svg b/image/test/reftest/downscaling/black-border-rect.svg new file mode 100644 index 0000000000..0fa01a0a63 --- /dev/null +++ b/image/test/reftest/downscaling/black-border-rect.svg @@ -0,0 +1,3 @@ + + + diff --git a/image/test/reftest/downscaling/black-border-right.png b/image/test/reftest/downscaling/black-border-right.png new file mode 100644 index 0000000000..081c52d5bc Binary files /dev/null and b/image/test/reftest/downscaling/black-border-right.png differ diff --git a/image/test/reftest/downscaling/black-border-top.png b/image/test/reftest/downscaling/black-border-top.png new file mode 100644 index 0000000000..fc6e69e02a Binary files /dev/null and b/image/test/reftest/downscaling/black-border-top.png differ diff --git a/image/test/reftest/downscaling/bmp-size-16x16-24bpp.png b/image/test/reftest/downscaling/bmp-size-16x16-24bpp.png new file mode 100644 index 0000000000..c04869e728 Binary files /dev/null and b/image/test/reftest/downscaling/bmp-size-16x16-24bpp.png differ diff --git a/image/test/reftest/downscaling/downscale-1-bigimage.png b/image/test/reftest/downscaling/downscale-1-bigimage.png new file mode 100644 index 0000000000..5e018590c3 Binary files /dev/null and b/image/test/reftest/downscaling/downscale-1-bigimage.png differ diff --git a/image/test/reftest/downscaling/downscale-1-ref.html b/image/test/reftest/downscaling/downscale-1-ref.html new file mode 100644 index 0000000000..63ec56ef7c --- /dev/null +++ b/image/test/reftest/downscaling/downscale-1-ref.html @@ -0,0 +1,8 @@ + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-1-smallimage.png b/image/test/reftest/downscaling/downscale-1-smallimage.png new file mode 100644 index 0000000000..588e6b78df Binary files /dev/null and b/image/test/reftest/downscaling/downscale-1-smallimage.png differ diff --git a/image/test/reftest/downscaling/downscale-1.html b/image/test/reftest/downscaling/downscale-1.html new file mode 100644 index 0000000000..a9629ef855 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-1.html @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-16px.html b/image/test/reftest/downscaling/downscale-16px.html new file mode 100644 index 0000000000..06d6db2bf6 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-16px.html @@ -0,0 +1,28 @@ + + + +Image reftest wrapper + + + + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-2a.html b/image/test/reftest/downscaling/downscale-2a.html new file mode 100644 index 0000000000..fac11ccee5 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-2a.html @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-2b.html b/image/test/reftest/downscaling/downscale-2b.html new file mode 100644 index 0000000000..af7ecbff33 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-2b.html @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-2c.html b/image/test/reftest/downscaling/downscale-2c.html new file mode 100644 index 0000000000..18f70456b1 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-2c.html @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-2d.html b/image/test/reftest/downscaling/downscale-2d.html new file mode 100644 index 0000000000..8d9547b73e --- /dev/null +++ b/image/test/reftest/downscaling/downscale-2d.html @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-2e.html b/image/test/reftest/downscaling/downscale-2e.html new file mode 100644 index 0000000000..c3d0d771f3 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-2e.html @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-2f.html b/image/test/reftest/downscaling/downscale-2f.html new file mode 100644 index 0000000000..42cfad1f57 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-2f.html @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-32px-ref.html b/image/test/reftest/downscaling/downscale-32px-ref.html new file mode 100644 index 0000000000..1caf3c73bf --- /dev/null +++ b/image/test/reftest/downscaling/downscale-32px-ref.html @@ -0,0 +1,8 @@ + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-32px.html b/image/test/reftest/downscaling/downscale-32px.html new file mode 100644 index 0000000000..f5fce324d9 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-32px.html @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-8px.html b/image/test/reftest/downscaling/downscale-8px.html new file mode 100644 index 0000000000..c0586a3657 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-8px.html @@ -0,0 +1,27 @@ + + + +Image reftest wrapper + + + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-moz-icon-1-ref.html b/image/test/reftest/downscaling/downscale-moz-icon-1-ref.html new file mode 100644 index 0000000000..a7dd5ab8aa --- /dev/null +++ b/image/test/reftest/downscaling/downscale-moz-icon-1-ref.html @@ -0,0 +1,41 @@ + + + + + + Reference for downscaling moz-icon images (bug 1261964) + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-moz-icon-1.html b/image/test/reftest/downscaling/downscale-moz-icon-1.html new file mode 100644 index 0000000000..ba37951274 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-moz-icon-1.html @@ -0,0 +1,19 @@ + + + + + + Testcase for downscaling moz-icon images (bug 1261964) + + + + + + diff --git a/image/test/reftest/downscaling/downscale-orient-ref.html b/image/test/reftest/downscaling/downscale-orient-ref.html new file mode 100644 index 0000000000..e32141868f --- /dev/null +++ b/image/test/reftest/downscaling/downscale-orient-ref.html @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-orient-ref.png b/image/test/reftest/downscaling/downscale-orient-ref.png new file mode 100644 index 0000000000..0db684e0d7 Binary files /dev/null and b/image/test/reftest/downscaling/downscale-orient-ref.png differ diff --git a/image/test/reftest/downscaling/downscale-orient.html b/image/test/reftest/downscaling/downscale-orient.html new file mode 100644 index 0000000000..11b849b27e --- /dev/null +++ b/image/test/reftest/downscaling/downscale-orient.html @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-png.html b/image/test/reftest/downscaling/downscale-png.html new file mode 100644 index 0000000000..4752b2155a --- /dev/null +++ b/image/test/reftest/downscaling/downscale-png.html @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-svg-1-ref.html b/image/test/reftest/downscaling/downscale-svg-1-ref.html new file mode 100644 index 0000000000..8935619ebd --- /dev/null +++ b/image/test/reftest/downscaling/downscale-svg-1-ref.html @@ -0,0 +1,13 @@ + + + + + + + + diff --git a/image/test/reftest/downscaling/downscale-svg-1a.html b/image/test/reftest/downscaling/downscale-svg-1a.html new file mode 100644 index 0000000000..2263cc9982 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-svg-1a.html @@ -0,0 +1,8 @@ + + + + +
+ + diff --git a/image/test/reftest/downscaling/downscale-svg-1b.html b/image/test/reftest/downscaling/downscale-svg-1b.html new file mode 100644 index 0000000000..9db239c7cd --- /dev/null +++ b/image/test/reftest/downscaling/downscale-svg-1b.html @@ -0,0 +1,8 @@ + + + + +
+ + diff --git a/image/test/reftest/downscaling/downscale-svg-1c.html b/image/test/reftest/downscaling/downscale-svg-1c.html new file mode 100644 index 0000000000..f8babf0267 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-svg-1c.html @@ -0,0 +1,8 @@ + + + + +
+ + diff --git a/image/test/reftest/downscaling/downscale-svg-1d.html b/image/test/reftest/downscaling/downscale-svg-1d.html new file mode 100644 index 0000000000..9a56a51de0 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-svg-1d.html @@ -0,0 +1,8 @@ + + + + +
+ + diff --git a/image/test/reftest/downscaling/downscale-svg-1e.html b/image/test/reftest/downscaling/downscale-svg-1e.html new file mode 100644 index 0000000000..732ac22c96 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-svg-1e.html @@ -0,0 +1,8 @@ + + + + +
+ + diff --git a/image/test/reftest/downscaling/downscale-svg-1f.html b/image/test/reftest/downscaling/downscale-svg-1f.html new file mode 100644 index 0000000000..0124682c70 --- /dev/null +++ b/image/test/reftest/downscaling/downscale-svg-1f.html @@ -0,0 +1,8 @@ + + + + +
+ + diff --git a/image/test/reftest/downscaling/ff-0RGB.ico b/image/test/reftest/downscaling/ff-0RGB.ico new file mode 100644 index 0000000000..56116b9f6a Binary files /dev/null and b/image/test/reftest/downscaling/ff-0RGB.ico differ diff --git a/image/test/reftest/downscaling/ff-0RGB.png b/image/test/reftest/downscaling/ff-0RGB.png new file mode 100644 index 0000000000..749ffcdfb3 Binary files /dev/null and b/image/test/reftest/downscaling/ff-0RGB.png differ diff --git a/image/test/reftest/downscaling/ff-ARGB.ico b/image/test/reftest/downscaling/ff-ARGB.ico new file mode 100644 index 0000000000..4681dc6495 Binary files /dev/null and b/image/test/reftest/downscaling/ff-ARGB.ico differ diff --git a/image/test/reftest/downscaling/ff-ARGB.png b/image/test/reftest/downscaling/ff-ARGB.png new file mode 100644 index 0000000000..74ea0e2f39 Binary files /dev/null and b/image/test/reftest/downscaling/ff-ARGB.png differ diff --git a/image/test/reftest/downscaling/huge-1.html b/image/test/reftest/downscaling/huge-1.html new file mode 100644 index 0000000000..6685600086 --- /dev/null +++ b/image/test/reftest/downscaling/huge-1.html @@ -0,0 +1,9 @@ + + + + + diff --git a/image/test/reftest/downscaling/image-pre-rotated-90-deg.jpg b/image/test/reftest/downscaling/image-pre-rotated-90-deg.jpg new file mode 100644 index 0000000000..b8817f9bf5 Binary files /dev/null and b/image/test/reftest/downscaling/image-pre-rotated-90-deg.jpg differ diff --git a/image/test/reftest/downscaling/lime-red-256px-bmp-in.ico b/image/test/reftest/downscaling/lime-red-256px-bmp-in.ico new file mode 100644 index 0000000000..b372cba4a2 Binary files /dev/null and b/image/test/reftest/downscaling/lime-red-256px-bmp-in.ico differ diff --git a/image/test/reftest/downscaling/lime-red-256px-png-in.ico b/image/test/reftest/downscaling/lime-red-256px-png-in.ico new file mode 100644 index 0000000000..e8578d2934 Binary files /dev/null and b/image/test/reftest/downscaling/lime-red-256px-png-in.ico differ diff --git a/image/test/reftest/downscaling/lime-red-256px.bmp b/image/test/reftest/downscaling/lime-red-256px.bmp new file mode 100644 index 0000000000..3dc808970f Binary files /dev/null and b/image/test/reftest/downscaling/lime-red-256px.bmp differ diff --git a/image/test/reftest/downscaling/lime-red-256px.gif b/image/test/reftest/downscaling/lime-red-256px.gif new file mode 100644 index 0000000000..f9f669aa4d Binary files /dev/null and b/image/test/reftest/downscaling/lime-red-256px.gif differ diff --git a/image/test/reftest/downscaling/lime-red-256px.jpg b/image/test/reftest/downscaling/lime-red-256px.jpg new file mode 100644 index 0000000000..ac8efdf360 Binary files /dev/null and b/image/test/reftest/downscaling/lime-red-256px.jpg differ diff --git a/image/test/reftest/downscaling/lime-red-256px.png b/image/test/reftest/downscaling/lime-red-256px.png new file mode 100644 index 0000000000..2be2e05a59 Binary files /dev/null and b/image/test/reftest/downscaling/lime-red-256px.png differ diff --git a/image/test/reftest/downscaling/lime-red-256px.svg b/image/test/reftest/downscaling/lime-red-256px.svg new file mode 100644 index 0000000000..530ae6d6d5 --- /dev/null +++ b/image/test/reftest/downscaling/lime-red-256px.svg @@ -0,0 +1,5 @@ + + + + diff --git a/image/test/reftest/downscaling/lime-red-32px.png b/image/test/reftest/downscaling/lime-red-32px.png new file mode 100644 index 0000000000..bfa2e7b737 Binary files /dev/null and b/image/test/reftest/downscaling/lime-red-32px.png differ diff --git a/image/test/reftest/downscaling/png-interlaced.png b/image/test/reftest/downscaling/png-interlaced.png new file mode 100644 index 0000000000..a938d0bd6a Binary files /dev/null and b/image/test/reftest/downscaling/png-interlaced.png differ diff --git a/image/test/reftest/downscaling/png-normal.png b/image/test/reftest/downscaling/png-normal.png new file mode 100644 index 0000000000..c2780fdd93 Binary files /dev/null and b/image/test/reftest/downscaling/png-normal.png differ diff --git a/image/test/reftest/downscaling/reftest.list b/image/test/reftest/downscaling/reftest.list new file mode 100644 index 0000000000..f01780ffaa --- /dev/null +++ b/image/test/reftest/downscaling/reftest.list @@ -0,0 +1,217 @@ +# Reftests for downscaling +# +# Downscaling can be a lossy process, so a bit of mismatch is acceptable here, +# as long as it's barely noticeable visually. When necessary, this can be +# explicitly allowed via 'fuzzy'/'fuzzy-if' annotations. +# +# Many of these tests check primarily that we don't lose rows or columns of +# pixels when downscaling by making sure that the result isn't too similar to +# about:blank. A small amount of fuzziness is used to ensure that the tests +# don't pass because of very slight deviations; passing tests should be +# substantially different from about:blank. This fuzziness should *not* be +# removed as doing so would make the tests pass in situations where they +# shouldn't. +# +# IMPORTANT: For robustness, each test should be listed *twice* in this +# manifest -- once with the high quality downscaling pref disabled, and once +# with this pref enabled. The pref is set via "defaults", so +# simply appending a new test to the lists below each of those lines should be +# sufficient. +# +# Also note that Mac OS X has its own system-level downscaling algorithm, so +# tests here may need Mac-specific "fuzzy-if(cocoaWidget,...)" annotations. +# Similarly, modern versions of Windows have slightly different downscaling +# behavior than other platforms, and may require "fuzzy-if(winWidget,...)". + + +# RUN TESTS NOT AFFECTED BY DOWNSCALE-DURING-DECODE: +# ================================================== +fuzzy(0-14,0-416) == downscale-svg-1a.html downscale-svg-1-ref.html?80 +fuzzy(65-65,468-480) == downscale-svg-1b.html downscale-svg-1-ref.html?72 +fuzzy(0-8,0-292) == downscale-svg-1c.html downscale-svg-1-ref.html?64 +fuzzy(7-7,208-208) == downscale-svg-1d.html downscale-svg-1-ref.html?53 +fuzzy(54-55,178-178) == downscale-svg-1e.html downscale-svg-1-ref.html?40 +fuzzy(64-64,31-31) == downscale-svg-1f.html downscale-svg-1-ref.html?24 + +# RUN TESTS WITH DOWNSCALE-DURING-DECODE DISABLED: +# ================================================ +defaults pref(image.downscale-during-decode.enabled,false) + +fuzzy-if(winWidget,0-16,0-20) fuzzy-if(cocoaWidget,0-106,0-31) == downscale-1.html downscale-1-ref.html + +fuzzy(0-20,0-999) != downscale-2a.html?203,52,left about:blank +fuzzy(0-20,0-999) != downscale-2b.html?203,52,left about:blank +fuzzy(0-20,0-999) != downscale-2c.html?203,52,left about:blank +fuzzy(0-20,0-999) != downscale-2d.html?203,52,left about:blank +fuzzy(0-20,0-999) != downscale-2e.html?203,52,left about:blank + +fuzzy(0-20,0-999) != downscale-2a.html?205,53,left about:blank +fuzzy(0-20,0-999) != downscale-2b.html?205,53,left about:blank +fuzzy(0-20,0-999) != downscale-2c.html?205,53,left about:blank +fuzzy(0-20,0-999) != downscale-2d.html?205,53,left about:blank +fuzzy(0-20,0-999) != downscale-2e.html?205,53,left about:blank + +fuzzy(0-20,0-999) != downscale-2a.html?203,52,right about:blank +fuzzy(0-20,0-999) != downscale-2b.html?203,52,right about:blank +fuzzy(0-20,0-999) != downscale-2c.html?203,52,right about:blank +fuzzy(0-20,0-999) != downscale-2d.html?203,52,right about:blank +fuzzy(0-20,0-999) != downscale-2e.html?203,52,right about:blank + +fuzzy(0-20,0-999) != downscale-2a.html?205,53,right about:blank +fuzzy(0-20,0-999) != downscale-2b.html?205,53,right about:blank +fuzzy(0-20,0-999) != downscale-2c.html?205,53,right about:blank +fuzzy(0-20,0-999) != downscale-2d.html?205,53,right about:blank +fuzzy(0-20,0-999) != downscale-2e.html?205,53,right about:blank + +fuzzy(0-20,0-999) != downscale-2a.html?203,52,top about:blank +fuzzy(0-20,0-999) != downscale-2b.html?203,52,top about:blank +fuzzy(0-20,0-999) != downscale-2c.html?203,52,top about:blank +fuzzy(0-20,0-999) != downscale-2d.html?203,52,top about:blank +fuzzy(0-20,0-999) != downscale-2e.html?203,52,top about:blank + +fuzzy(0-20,0-999) != downscale-2a.html?205,53,top about:blank +fuzzy(0-20,0-999) != downscale-2b.html?205,53,top about:blank +fuzzy(0-20,0-999) != downscale-2c.html?205,53,top about:blank +fuzzy(0-20,0-999) != downscale-2d.html?205,53,top about:blank +fuzzy(0-20,0-999) != downscale-2e.html?205,53,top about:blank + +fuzzy(0-20,0-999) != downscale-2a.html?203,52,bottom about:blank +fuzzy(0-20,0-999) != downscale-2b.html?203,52,bottom about:blank +fuzzy(0-20,0-999) != downscale-2c.html?203,52,bottom about:blank +fuzzy(0-20,0-999) != downscale-2d.html?203,52,bottom about:blank +fuzzy(0-20,0-999) != downscale-2e.html?203,52,bottom about:blank + +fuzzy(0-20,0-999) != downscale-2a.html?205,53,bottom about:blank +fuzzy(0-20,0-999) != downscale-2b.html?205,53,bottom about:blank +fuzzy(0-20,0-999) != downscale-2c.html?205,53,bottom about:blank +fuzzy(0-20,0-999) != downscale-2d.html?205,53,bottom about:blank +fuzzy(0-20,0-999) != downscale-2e.html?205,53,bottom about:blank + +# Skip on Android because it runs reftests via http, and moz-icon isn't +# accessible from http/https origins anymore. +fuzzy(0-27,0-3940) fuzzy-if(gtkWidget,0-0,0-0) skip-if(Android) fuzzy-if(appleSilicon,0-20,0-10123) == downscale-moz-icon-1.html downscale-moz-icon-1-ref.html # gtkWidget Bug 1592059: regular is 2616, no-accel is 0, qr passes with 0 + +== downscale-png.html?16,16,interlaced downscale-png.html?16,16,normal +== downscale-png.html?24,24,interlaced downscale-png.html?24,24,normal + +# Non-transparent and transparent ICO images +== downscale-16px.html?ff-0RGB.ico downscale-16px.html?ff-0RGB.png +fuzzy(0-1,0-1) fuzzy-if(gtkWidget&&swgl,1-1,1-1) == downscale-16px.html?ff-ARGB.ico downscale-16px.html?ff-ARGB.png + +# Test downscaling from all supported formats from 256 to 32. +== downscale-32px.html?.bmp downscale-32px-ref.html +== downscale-32px.html?.gif downscale-32px-ref.html +fuzzy(0-1,0-1024) == downscale-32px.html?.jpg downscale-32px-ref.html +== downscale-32px.html?.png downscale-32px-ref.html +== downscale-32px.html?.svg downscale-32px-ref.html +== downscale-32px.html?-bmp-in.ico downscale-32px-ref.html +== downscale-32px.html?-png-in.ico downscale-32px-ref.html + +# Test downscaling a JPEG with orientation metadata. +fuzzy(0-1,0-50) == downscale-orient.html downscale-orient-ref.html + +# RUN TESTS WITH DOWNSCALE-DURING-DECODE ENABLED: +# =============================================== +defaults pref(image.downscale-during-decode.enabled,true) + +fuzzy(0-31,0-127) fuzzy-if(d2d,0-31,0-147) == downscale-1.html downscale-1-ref.html # intermittently 147 pixels on win7 accelerated only (not win8) + +fuzzy(0-20,0-999) != downscale-2a.html?203,52,left about:blank +fuzzy(0-20,0-999) != downscale-2b.html?203,52,left about:blank +fuzzy(0-20,0-999) != downscale-2c.html?203,52,left about:blank +fuzzy(0-20,0-999) != downscale-2d.html?203,52,left about:blank +fuzzy(0-20,0-999) != downscale-2e.html?203,52,left about:blank +fuzzy(0-20,0-999) != downscale-2f.html?203,52,left about:blank + +fuzzy(0-20,0-999) != downscale-2a.html?205,53,left about:blank +fuzzy(0-20,0-999) != downscale-2b.html?205,53,left about:blank +fuzzy(0-20,0-999) != downscale-2c.html?205,53,left about:blank +fuzzy(0-20,0-999) != downscale-2d.html?205,53,left about:blank +fuzzy(0-20,0-999) != downscale-2e.html?205,53,left about:blank +fuzzy(0-20,0-999) != downscale-2f.html?205,53,left about:blank + +fuzzy(0-20,0-999) != downscale-2a.html?203,52,right about:blank +fuzzy(0-20,0-999) != downscale-2b.html?203,52,right about:blank +fuzzy(0-20,0-999) != downscale-2c.html?203,52,right about:blank +fuzzy(0-20,0-999) != downscale-2d.html?203,52,right about:blank +fuzzy(0-20,0-999) != downscale-2e.html?203,52,right about:blank +fuzzy(0-20,0-999) != downscale-2f.html?203,52,right about:blank + +fuzzy(0-20,0-999) != downscale-2a.html?205,53,right about:blank +fuzzy(0-20,0-999) != downscale-2b.html?205,53,right about:blank +fuzzy(0-20,0-999) != downscale-2c.html?205,53,right about:blank +fuzzy(0-20,0-999) != downscale-2d.html?205,53,right about:blank +fuzzy(0-20,0-999) != downscale-2e.html?205,53,right about:blank +fuzzy(0-20,0-999) != downscale-2f.html?205,53,right about:blank + +fuzzy(0-20,0-999) != downscale-2a.html?203,52,top about:blank +fuzzy(0-20,0-999) != downscale-2b.html?203,52,top about:blank +fuzzy(0-20,0-999) != downscale-2c.html?203,52,top about:blank +fuzzy(0-20,0-999) != downscale-2d.html?203,52,top about:blank +fuzzy(0-20,0-999) != downscale-2e.html?203,52,top about:blank +fuzzy(0-20,0-999) != downscale-2f.html?203,52,top about:blank + +fuzzy(0-20,0-999) != downscale-2a.html?205,53,top about:blank +fuzzy(0-20,0-999) != downscale-2b.html?205,53,top about:blank +fuzzy(0-20,0-999) != downscale-2c.html?205,53,top about:blank +fuzzy(0-20,0-999) != downscale-2d.html?205,53,top about:blank +fuzzy(0-20,0-999) != downscale-2e.html?205,53,top about:blank +fuzzy(0-20,0-999) != downscale-2f.html?205,53,top about:blank + +fuzzy(0-20,0-999) != downscale-2a.html?203,52,bottom about:blank +fuzzy(0-20,0-999) != downscale-2b.html?203,52,bottom about:blank +fuzzy(0-20,0-999) != downscale-2c.html?203,52,bottom about:blank +fuzzy(0-20,0-999) != downscale-2d.html?203,52,bottom about:blank +fuzzy(0-20,0-999) != downscale-2e.html?203,52,bottom about:blank +fuzzy(0-20,0-999) != downscale-2f.html?203,52,bottom about:blank + +fuzzy(0-20,0-999) != downscale-2a.html?205,53,bottom about:blank +fuzzy(0-20,0-999) != downscale-2b.html?205,53,bottom about:blank +fuzzy(0-20,0-999) != downscale-2c.html?205,53,bottom about:blank +fuzzy(0-20,0-999) != downscale-2d.html?205,53,bottom about:blank +fuzzy(0-20,0-999) != downscale-2e.html?205,53,bottom about:blank +fuzzy(0-20,0-999) != downscale-2f.html?205,53,bottom about:blank + +# Skip on Android because it runs reftests via http, and moz-icon isn't +# accessible from http/https origins anymore. +fuzzy(0-53,0-6391) fuzzy-if(appleSilicon,0-20,0-11605) fuzzy-if(gtkWidget,18-19,5502-5568) skip-if(Android) == downscale-moz-icon-1.html downscale-moz-icon-1-ref.html # gtkWidget Bug 1592059 + +== downscale-png.html?16,16,interlaced downscale-png.html?16,16,normal +== downscale-png.html?24,24,interlaced downscale-png.html?24,24,normal + +# Non-transparent and transparent ICO images +fuzzy(0-1,0-3) == downscale-16px.html?ff-0RGB.ico downscale-16px.html?ff-0RGB.png +fuzzy(0-3,0-32) fuzzy-if(swgl,3-3,33-33) == downscale-16px.html?ff-ARGB.ico downscale-16px.html?ff-ARGB.png + +# Upside-down (negative height) BMP +== downscale-8px.html?top-to-bottom-16x16-24bpp.bmp downscale-8px.html?bmp-size-16x16-24bpp.png + +# Test downscaling from all supported formats from 256 to 32. +fuzzy(0-18,0-128) == downscale-32px.html?.bmp downscale-32px-ref.html +fuzzy(0-18,0-128) == downscale-32px.html?.gif downscale-32px-ref.html +fuzzy(0-19,0-992) == downscale-32px.html?.jpg downscale-32px-ref.html +fuzzy(0-18,0-128) == downscale-32px.html?.png downscale-32px-ref.html +== downscale-32px.html?.svg downscale-32px-ref.html +fuzzy(0-18,0-128) == downscale-32px.html?-bmp-in.ico downscale-32px-ref.html +fuzzy(0-18,0-128) == downscale-32px.html?-png-in.ico downscale-32px-ref.html + +# Test downscaling a JPEG with orientation metadata. +fuzzy(0-4,0-18) == downscale-orient.html downscale-orient-ref.html + +# Test images taller or wider than 32767 pixels. +== huge-1.html?100x32768.png,100,100 huge-1.html?100x100.png,100,100 +== huge-1.html?100x32768.png,100,32768 huge-1.html?100x100.png,100,32768 +== huge-1.html?32768x100.png,100,100 huge-1.html?100x100.png,100,100 +== huge-1.html?32768x100.png,32768,100 huge-1.html?100x100.png,32768,100 +== huge-1.html?100x32768.gif,100,100 huge-1.html?100x100.gif,100,100 +== huge-1.html?100x32768.gif,100,32768 huge-1.html?100x100.gif,100,32768 +== huge-1.html?32768x100.gif,100,100 huge-1.html?100x100.gif,100,100 +== huge-1.html?32768x100.gif,32768,100 huge-1.html?100x100.gif,32768,100 +== huge-1.html?100x32768.jpg,100,100 huge-1.html?100x100.jpg,100,100 +== huge-1.html?100x32768.jpg,100,32768 huge-1.html?100x100.jpg,100,32768 +== huge-1.html?32768x100.jpg,100,100 huge-1.html?100x100.jpg,100,100 +== huge-1.html?32768x100.jpg,32768,100 huge-1.html?100x100.jpg,32768,100 + +# Only need to run these with downscaling on +!= 1421191-1.html about:blank +== 1404366-1.html about:blank diff --git a/image/test/reftest/downscaling/top-to-bottom-16x16-24bpp.bmp b/image/test/reftest/downscaling/top-to-bottom-16x16-24bpp.bmp new file mode 100644 index 0000000000..bd18f85d48 Binary files /dev/null and b/image/test/reftest/downscaling/top-to-bottom-16x16-24bpp.bmp differ -- cgit v1.2.3