Bug 1068881 (Part 2) - Add reftests for rounding image dest rects to zero size. r=roc
☠☠ backed out by ce2a46e97e38 ☠ ☠
authorSeth Fowler <mark.seth.fowler@gmail.com>
Tue, 21 Apr 2015 19:23:07 -0700
changeset 240456 dc6d37458b88dfcd3ada37248f40c6459d9ebf84
parent 240455 23ed444769a8431ba08e07f271a3bf06044290c9
child 240457 60bbc4230cd771c19974586d7c72b743c27b6e78
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
bugs1068881
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 1068881 (Part 2) - Add reftests for rounding image dest rects to zero size. r=roc
layout/reftests/invalidation/image-scrolling-zoom-1-notref.html
layout/reftests/invalidation/image-scrolling-zoom-1-ref.html
layout/reftests/invalidation/image-scrolling-zoom-1.html
layout/reftests/invalidation/one-pixel-wide-background.png
layout/reftests/invalidation/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/invalidation/image-scrolling-zoom-1-notref.html
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML>
+<!-- Any copyright is dedicated to the Public Domain.
+   - http://creativecommons.org/publicdomain/zero/1.0/ -->
+<html reftest-zoom="0.3">
+<head>
+  <style type="text/css">
+    #container {
+      height: 100px;
+      overflow: auto;
+    }
+    #container-background {
+      background-color: white;
+    }
+    #container-background > div {
+      line-height: 20px;
+    }
+  </style>
+</head>
+<body>
+  <div id="container">
+    <div id="container-background">
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+    </div>
+  </div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/invalidation/image-scrolling-zoom-1-ref.html
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML>
+<!-- Any copyright is dedicated to the Public Domain.
+   - http://creativecommons.org/publicdomain/zero/1.0/ -->
+<html reftest-zoom="0.3">
+<head>
+  <style type="text/css">
+    #container {
+      height: 100px;
+      overflow: auto;
+    }
+    #container-background {
+      background: url(one-pixel-wide-background.png);
+    }
+    #container-background > div {
+      line-height: 20px;
+    }
+  </style>
+</head>
+<body>
+  <div id="container">
+    <div id="container-background">
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+    </div>
+  </div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/invalidation/image-scrolling-zoom-1.html
@@ -0,0 +1,51 @@
+<!DOCTYPE HTML>
+<!-- Any copyright is dedicated to the Public Domain.
+   - http://creativecommons.org/publicdomain/zero/1.0/ -->
+<html class="reftest-wait" reftest-zoom="0.3">
+<head>
+  <style type="text/css">
+    #container {
+      height: 100px;
+      overflow: auto;
+    }
+    #container-background {
+      background: url(one-pixel-wide-background.png);
+    }
+    #container-background > div {
+      line-height: 20px;
+    }
+  </style>
+</head>
+<body>
+  <div id="container">
+    <div id="container-background">
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+      <div>Item</div>
+    </div>
+  </div>
+</body>
+<script>
+  var container = document.getElementById('container');
+
+  // Start scrolled all the way to the bottom.
+  container.scrollTop = container.scrollHeight;
+
+  // When we get MozReftestInvalidate, scroll to the top. This puts us at the
+  // same scroll position as the reference.
+  function doTest() {
+    container.scrollTop = 0;
+    document.documentElement.removeAttribute('class');
+  }
+
+  document.addEventListener("MozReftestInvalidate", doTest, false);
+</script>
+</html>
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..09f59e39ac05bad3f390aeecd72bf750069b738a
GIT binary patch
literal 1059
zc${^UL2J}N6vw9qN{#eX1W^kidQB$D?kYQEBX*<hf?Jn$h3w6AcUFT*Cd^FP^eTw>
z6-4kL=&krk^mBOdE?(-)CfkNI4NNlcz5j3CyqUa@qr?4e^|lHC*d84CWAWV(L*2S2
z-v54l-IWeD-robKKkxn)#`WxA$^f{rBgY2#^!XM5%J*mz@L>21%}8Q~b8>{uJjsB3
z+#HE%f_bRrNt`m2_w<zliMez`U0X@`+nyc_M_QjytaZ$`Y3ZJ-X_`yt3pDnhmbkEb
z`WwzO1mSYIG?y)t(AUuJcDvAWpyL=qVX%{whq;lmd&MH_b$rZbG|G5HQcc?75jo~P
zT`x7oQ|>d#&J(4qtV+}e^Du+9X~8ClM~g)>B_mg2IFGKtWTe2n3(ggLLqjr;7AJnl
zvFBKJ$FSOlV@>P_$ZDf*%Y`*fjqXz%azZDB#NH^%ahym~Ynd(6F4(G~0?Rtka~ffB
z!15S9A;09S>-!|hC}vE?I;FnqtLw*@k@#3H^)ijP=afjzU8klOaqr=psXFUG&;$g{
zfV>E_I;p^q5}dNK_C|l5>ywz!7g;#N=SaoXm}OeYVpY>jFQsu|?bj~)29}NEsp3M{
zP3WnAKHUE$`ts($e>~aRo&7yKd$gk{inB>=0O&Vm^UnJ(itOCMlSBV>@725irjk4L
--- a/layout/reftests/invalidation/reftest.list
+++ b/layout/reftests/invalidation/reftest.list
@@ -59,8 +59,10 @@ pref(layout.animated-image-layers.enable
 != masklayer-2.html about:blank
 != layer-splitting-1.html about:blank
 != layer-splitting-2.html about:blank
 != layer-splitting-3.html about:blank
 != layer-splitting-4.html about:blank
 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