Bug 1125750 - Add auto test to detect error when using mOuter to check overflow area of a scrollable frame. r=dbaron, a=bajaj
authorEthan Lin <etlin@mozilla.com>
Tue, 03 Mar 2015 17:46:00 +0100
changeset 237566 b0a59fd8763535ccdebf6ff1b10783792c5acb19
parent 237565 30a9e827a04e3dc30bf8cfb3707d28f15d978d8f
child 237567 5a8abcedad3be0f52489dbd33b2e706842965de1
push id301
push userryanvm@gmail.com
push dateWed, 11 Mar 2015 02:14:36 +0000
treeherdermozilla-b2g37_v2_2@004fa1cb1dd4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron, bajaj
bugs1125750
milestone37.0
Bug 1125750 - Add auto test to detect error when using mOuter to check overflow area of a scrollable frame. r=dbaron, a=bajaj
layout/reftests/scrolling/move-item-ref.html
layout/reftests/scrolling/move-item.html
layout/reftests/scrolling/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/scrolling/move-item-ref.html
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+    <meta charset="utf-8">
+    <style type="text/css">
+      #a_box {
+        overflow:auto;
+        width:100px;
+        height:100px;
+        border:1px solid black;
+      }
+      #item {
+        transform: translate(80px, 80px);
+        width:40px;
+        height:40px;
+        position:relative;
+        background-color:#666;
+      }
+    </style>
+</head>
+<body>
+  <div id="a_box">
+    <div id="item"></div>
+  </div>
+</script>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/scrolling/move-item.html
@@ -0,0 +1,31 @@
+<!DOCTYPE HTML>
+<html class="reftest-wait">
+<head>
+    <meta charset="utf-8">
+    <style type="text/css">
+      #a_box {
+        overflow:auto;
+        width:100px;
+        height:100px;
+        border:1px solid black;
+      }
+      #item {
+        width:40px;
+        height:40px;
+        position:relative;
+        background-color:#666;
+      }
+    </style>
+</head>
+<body onload="runTest();">
+  <div id="a_box">
+    <div id="item"></div>
+  </div>
+<script>
+  function runTest() {
+    document.getElementById("item").style.transform = "translate(80px, 80px)";
+    document.documentElement.removeAttribute("class");
+  }
+</script>
+</body>
+</html>
--- a/layout/reftests/scrolling/reftest.list
+++ b/layout/reftests/scrolling/reftest.list
@@ -28,8 +28,9 @@ fuzzy-if(Android,5,20000) == uncovering-
 fuzzy-if(Android,5,20000) == uncovering-2.html uncovering-2-ref.html
 skip-if(B2G) == less-than-scrollbar-height.html less-than-scrollbar-height-ref.html
 skip-if(B2G) == huge-horizontal-overflow.html huge-horizontal-overflow-ref.html
 skip-if(B2G) == huge-vertical-overflow.html huge-vertical-overflow-ref.html
 == iframe-scrolling-attr-1.html iframe-scrolling-attr-ref.html
 skip-if(B2G&&browserIsRemote) == iframe-scrolling-attr-2.html iframe-scrolling-attr-ref.html
 == frame-scrolling-attr-1.html frame-scrolling-attr-ref.html
 == frame-scrolling-attr-2.html frame-scrolling-attr-ref.html
+== move-item.html move-item-ref.html # bug 1125750