Bug 1249550 (part 2) - Add a test. r=tn.
authorNicholas Nethercote <nnethercote@mozilla.com>
Tue, 23 Feb 2016 10:58:05 +1100
changeset 321572 98366ad0baa872b36df521e683b790ba7f768117
parent 321571 9f261bc166b2befa5cdd26c21ef85f62654f649c
child 321573 13f2bf958d0f2cd816b24aaebf4e2237263d4638
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstn
bugs1249550
milestone47.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 1249550 (part 2) - Add a test. r=tn.
image/test/reftest/downscaling/bmp-size-16x16-24bpp.png
image/test/reftest/downscaling/downscale-16px.html
image/test/reftest/downscaling/downscale-8px.html
image/test/reftest/downscaling/downscale-ff.html
image/test/reftest/downscaling/reftest.list
image/test/reftest/downscaling/top-to-bottom-16x16-24bpp.bmp
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..c04869e728ed01902838c869fc437bf07ad8c5f4
GIT binary patch
literal 879
zc$@)m1CacQP)<h;3K|Lk000e1NJLTq000mG000mO1^@s6AM^iV0009vNkl<ZIE@9t
zO>El)7=Yo=`DvWALSnHexX~t=dQBH+h}%MAer~kH5s1^G#?!d1ZQMzmXoVw<TN!ac
z+zLsGb{wmtid&_{W#TrePLbe(v={-Gv?-UD=aH-b=J@9-!SAy<ew`)wc{a!6S(5K&
zNxqyV`Rppiz1bX}Tqb#c7U!+YB+IioUb|FzWtu{!f5(U-A&i7zBKVQeiv({XwEq&E
zD25%ys7DI#M1m2;$VCaVlQi=$GsyHeg-Ixcp)d-CqfqFDf_EmkV+CidV229zP^gXt
zBaD$dQ_(`5%-QS6#q&5(AdCZH6bODG^aF)XAh?0x1j0rj)B?c_5*Vi$@}n%;Xo<|T
zW#r;mA@YT>FP!?q(NO3Og^n+{zOd~J8@@vAD2{oQq3rAA{YA8+BAKVRkc%H<M15i0
z7fuHX!+}EoQ1A|g_CRP2Vl)Q{tX>AQpXFA6iNc`B^}%fxdha3AZxo`A5O#!9PZ)NE
zfhTl5q3tO+UYuq}#p>u(y(P+Ck$m?yy0^xB=VRpZVS-6p7`wvA6?|71xI))eaNRhL
zo1y7mqweM~+eON5g+hA`-EFYoeu`W?P?$KvxFrOR;5$O!5jw3HUu>sowKO)IMJ#89
zs#C#m*2y~!G-r!U>j5&o7bm(aoZCWRD-3Ogz8$C2Oyk-bJN6Q`U8HVTFzq$Uc7uYw
ziQe30q4^M*eiS3BE1X*jztj|bD^9PL=IdIPwv}VYDq>p|toj<&dV`X6pL~4}&DtmP
z;kU^2-8d6dIA2u=stNq6O3%#VRdckfD>!Ba+x!5_Y*01tQ#L=RVD6)v-!s4Z7@5AQ
zFfoL%6yw=V6~C0FZ!FO<R&b5CaZ2knjXTtgEmq6B80CHP<pVV1Co-jD<YGC_q!8yU
zpC%|=V^~;ZP*}k$RB&&s;}ja)Eo@=scQJ1~!pI+xFFZldpD>?$j!ds7d6`uSHJw0P
z<XFGSp;n=*t<%;UY-^j?`W{yHE2`Q7CG810?F3DGK_+{S{F_$zQ%&(g)j3h~JWZAP
zL9Oygt+S^#*-Y<nC+)JXcB!a+it3Oz(j#6~$D~q!@IOD?Dem9#Mi~GA002ovPDHLk
FV1fXCqV@m)
rename from image/test/reftest/downscaling/downscale-ff.html
rename to image/test/reftest/downscaling/downscale-16px.html
new file mode 100644
--- /dev/null
+++ b/image/test/reftest/downscaling/downscale-8px.html
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML>
+<html class="reftest-wait">
+<head>
+<title>Image reftest wrapper</title>
+<style type="text/css">
+  #image1 { background-color: rgb(10, 250, 100); }
+</style>
+<script>
+  // The image is loaded async after the page loads.
+  // Wait for it to finish loading.
+  function onImageLoad() {
+    document.documentElement.removeAttribute("class");
+  };
+</script>
+</head>
+<body>
+<img width="8px" id="image1">
+<script>
+  // Use as "wrapper.html?image.png"
+  var imgURL = document.location.search.substr(1);
+  document.images[0].onload = onImageLoad;
+  document.images[0].onerror = onImageLoad;
+  document.images[0].alt = "";
+  document.images[0].src = imgURL;
+</script>
+</body>
+</html>
--- a/image/test/reftest/downscaling/reftest.list
+++ b/image/test/reftest/downscaling/reftest.list
@@ -86,18 +86,21 @@ fuzzy(20,999) != downscale-2b.html?205,5
 fuzzy(20,999) != downscale-2c.html?205,53,bottom about:blank
 fuzzy(20,999) != downscale-2d.html?205,53,bottom about:blank
 fuzzy(20,999) fails-if(OSX>=1008&&!skiaContent) != downscale-2e.html?205,53,bottom about:blank
 
 == 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-ff.html?ff-0RGB.ico downscale-ff.html?ff-0RGB.png
-fuzzy(1,1) == downscale-ff.html?ff-ARGB.ico downscale-ff.html?ff-ARGB.png
+== downscale-16px.html?ff-0RGB.ico downscale-16px.html?ff-0RGB.png
+fuzzy(1,1) == 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
 
 # RUN TESTS WITH DOWNSCALE-DURING-DECODE ENABLED:
 # ===============================================
 default-preferences pref(image.downscale-during-decode.enabled,true)
 
 fuzzy(31,127) fuzzy-if(d2d,31,147) == downscale-1.html downscale-1-ref.html # intermittently 147 pixels on win7 accelerated only (not win8)
 
 fuzzy(20,999) != downscale-2a.html?203,52,left about:blank
@@ -155,10 +158,14 @@ fuzzy(20,999) != downscale-2c.html?205,5
 fuzzy(20,999) != downscale-2d.html?205,53,bottom about:blank
 fuzzy(20,999) != downscale-2e.html?205,53,bottom about:blank
 fuzzy(20,999) != downscale-2f.html?205,53,bottom about:blank
 
 == 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(1,3) == downscale-ff.html?ff-0RGB.ico downscale-ff.html?ff-0RGB.png
-fuzzy(3,32) == downscale-ff.html?ff-ARGB.ico downscale-ff.html?ff-ARGB.png
+fuzzy(1,3) == downscale-16px.html?ff-0RGB.ico downscale-16px.html?ff-0RGB.png
+fuzzy(3,32) == 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
+
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..bd18f85d485b6330584fe4470a776ee82109c010
GIT binary patch
literal 822
zc$_uKJ#5@$9DwovYu|_ML>1JptFn<hyUKd$*+pzMvH6e~$Z@tnOg-gXm90tcO(iB0
z@meZdDE5Ka0%r$xEIpqhCL;A5Dz-|og9HmwZPa%0#bF5%6_50r9{qidh5ypdEuMSj
z+>5ibGX$4kj`RP^g_r)X_RneM^m(oPqf-7>D}Sz*_p9Z1)$+^w>1Va_R`ui)wtTO8
z@@B1E<W4Tviwn%N0`eU41hN?N2=WnRKK$)6Ibm`K<u>GRGr3yHn|vk;Pv_9@1tb|H
z2_#cU#*mEQ$VVwfDM5(?i4Cd2Br12*loI^fk-$ElL7YRJLOg{yLU91G2Qh`1K)ecZ
zw-TGep(;-0#uP6;643q(q8y?WqC=RBVKRcqgNQ=3fudD*+!e;A6ln{Q+#2I+4+ZAO
z83Z{5DGCo!IDx$Y_IwCkCLC14zA&=Hz-$E9TA^}1y!7s99(_}QmxGspe+a_~_#ya1
z<h!g-IIk~xR>L=1zIJ^mulUl(-dyGG3Ah>16zCLa1T;i+$Wkg$a*_6%)NZ+^PPG+R
z=~3xZI*;zmfMhU8fy6)}AOSP*_>C{{V6Z?|mx!ekqeIjlk=F^nGZ5HY1>DTRIYv&5
zoC)g$eBZ+kZ8)1P$I%^o#W8!1w&o~Xed%t0p82Ric8;uL)cuvUBECBkyI(ggw`FbW
zma}48J=?f#wYP0~$HL!!D6sDoU}k9fxMIYd5sBugY4}TqtDEEl)9IPkZPWPN)OJke
zdsDi<Jcr&WK+TwT!d-nNwxfm`EUDgGD($q%4Yj|ncDJ<U9ZlWU<eyZ$-xk=#8LMQx
zd~{KX7nI4866%WIxk7siSyygu$=1Cq=B}(hP~-zydfc3=UMe{8sf3dS9AB08b-dTX
z!=B`>;f-y{`AW2QvGD-64{-Ad#>b+7_!o8VFNu31a|c@ep~3xNbNBk(_9nkZ`5Qy7
T6L9*3YfbsrQ|{G2>-B#Dyi_s5