Bug 1068881 (Part 2) - Add reftests for rounding image dest rects to zero size. r=roc, a=sledru
authorSeth Fowler <mark.seth.fowler@gmail.com>
Wed, 22 Apr 2015 13:04:01 -0700
changeset 267190 6c398172355ca8e9ce492fc62de47d58b4ee12db
parent 267189 f93c62719fe59271f6f749358ecdec1142fa205d
child 267191 43532ecc2aa398118cc460fc850a434b1f9d5295
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, sledru
bugs1068881
milestone39.0a2
Bug 1068881 (Part 2) - Add reftests for rounding image dest rects to zero size. r=roc, a=sledru
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
@@ -52,8 +52,10 @@ pref(layout.animated-image-layers.enable
 != paintedlayer-recycling-2.html about:blank
 != paintedlayer-recycling-3.html about:blank
 != paintedlayer-recycling-4.html about:blank
 != paintedlayer-recycling-5.html about:blank
 != paintedlayer-recycling-6.html about:blank
 != paintedlayer-recycling-7.html about:blank
 != masklayer-1.html about:blank
 != masklayer-2.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