Bug 1085783 (Part 2) - Add a test for rounding behavior when high-quality downscaling. r=roc
authorSeth Fowler <mark.seth.fowler@gmail.com>
Wed, 22 Apr 2015 13:04:06 -0700
changeset 240600 1088d4ec5fadcd9c99a214db64b1d19e37da868d
parent 240599 b339f54f20f6d586c45f1514dd28f709c83098ac
child 240601 53058615e7a38c90715912127a14d113a9939f17
push id28636
push userkwierso@gmail.com
push dateThu, 23 Apr 2015 00:16:12 +0000
treeherdermozilla-central@a5af73b32ac8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs1085783
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1085783 (Part 2) - Add a test for rounding behavior when high-quality downscaling. r=roc
layout/reftests/pixel-rounding/green-circle-with-blue-border.png
layout/reftests/pixel-rounding/image-high-quality-scaling-1-ref.html
layout/reftests/pixel-rounding/image-high-quality-scaling-1.html
layout/reftests/pixel-rounding/reftest.list
new file mode 100644
index 0000000000000000000000000000000000000000..570fd24944a815efd7026eea8df31326a206e52d
GIT binary patch
literal 12279
zc${^51z4NQwsryyl%OqEpisQHySqzpFK)%%A(SG;9g1ry?he7FP^7d4N`T;6io5-^
zd!KX9zwf!<^W@1lYu<Ow%$ixVW|H*|q9Th4CI$ll08Du~DfNf%Qvd+S^cd;kEjh)^
z^x+HWrY<W1s2YF1{ZK%2meX?s0MK!Ne}I6DtY-iKa+$5BuDh<Xl7P9B1B<DJlbI!p
zw}Ug__ao#j@bKzj>26By?O^ZdCg3eh`3E8J@cvuON=g0);%+BQsjCbjmvnNqB<E(~
zVqv2c0h5!H3%OcY38+iS{7ru-2~*m*yE_Z8vU+)Wv3PN^IJsK0vh(xvv$Aopa&Ry|
zAeh~J9NkU5nH}Az{!;QUJyMo#=B~ER?zT>j<iE?NW=<aN!jzPMWBz*n?x%zEzZ-IN
z`+HOm<74$Ub!KH}VPpMoBzI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qW#ISo$lH^?K(R=zz
zp5oloE>H*Fba$N<TswE*M+LiVbbXE1Z*9oewPzoAR&2K!^%|_uzfuriPIJl_S@=1{
z)K%-FI)0UAXio`*6a^dn&NRg={fa(RE3>zpk~ob!qIH_DiB?3$_6bSiY|&jjkMcFI
ilQ@^4R+ixEJ+i-{b)a+_^S9sG`0~;!QdJTrZ~h<Dd^~jk
new file mode 100644
--- /dev/null
+++ b/layout/reftests/pixel-rounding/image-high-quality-scaling-1-ref.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<!-- Any copyright is dedicated to the Public Domain.
+   - http://creativecommons.org/publicdomain/zero/1.0/ -->
+<html class="reftest-wait">
+<head>
+  <script>
+    // We add an artificial delay before the reftest snapshot to increase the
+    // chance that we're snapshotting the high-quality downscaled version of
+    // the image. This is necessary because high-quality downscaling is
+    // currently an async process. Bug 1045926 will eliminate the need for this
+    // delay.
+    function snapshot() {
+      document.documentElement.removeAttribute('class');
+    }
+  </script>
+</head>
+<body onload="setTimeout(snapshot, 250)">
+<div style="padding: 1em 3em; font-size: 80%; width: 300px; text-align: center;">
+  <img src="green-circle-with-blue-border.png" width="179" height="220">
+</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/pixel-rounding/image-high-quality-scaling-1.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<!-- Any copyright is dedicated to the Public Domain.
+   - http://creativecommons.org/publicdomain/zero/1.0/ -->
+<html class="reftest-wait">
+<head>
+  <script>
+    // We add an artificial delay before the reftest snapshot to increase the
+    // chance that we're snapshotting the high-quality downscaled version of
+    // the image. This is necessary because high-quality downscaling is
+    // currently an async process. Bug 1045926 will eliminate the need for this
+    // delay.
+    function snapshot() {
+      document.documentElement.removeAttribute('class');
+    }
+  </script>
+</head>
+<body onload="setTimeout(snapshot, 250)">
+<div style="padding: 1em 3em; font-size: 80%; width: 300px; text-align: center;">
+  <img src="green-circle-with-blue-border.png" height="220">
+</div>
+</body>
+</html>
--- a/layout/reftests/pixel-rounding/reftest.list
+++ b/layout/reftests/pixel-rounding/reftest.list
@@ -118,16 +118,20 @@ fails == collapsed-border-top-6.html bor
 == image-left-width-6.html image-width-6.html
 == image-height-top-4.html image-height-4.html
 == image-height-top-5.html image-height-5.html
 == image-height-top-6.html image-height-6.html
 == image-width-left-4.html image-width-4.html
 == image-width-left-5.html image-width-5.html
 == image-width-left-6.html image-width-6.html
 
+
+skip pref(image.high_quality_downscaling.enabled,true) == image-high-quality-scaling-1.html image-high-quality-scaling-1-ref.html
+
+
 != offscreen-0-ref.html offscreen-10-ref.html
 == offscreen-background-color-pos-4.html offscreen-0-ref.html
 == offscreen-background-color-pos-5.html offscreen-10-ref.html
 == offscreen-background-color-pos-6.html offscreen-10-ref.html
 == offscreen-background-color-size-4.html offscreen-0-ref.html
 == offscreen-background-color-size-5.html offscreen-10-ref.html
 == offscreen-background-color-size-6.html offscreen-10-ref.html
 == offscreen-image-pos-4.html offscreen-0-ref.html