Bug 524925 - Reftest that checks whether dynamic transform changes result in the correct scrollable overflow being propagated through parent frames. part=6/6 r=dbaron
authorChris Lord <chrislord.net@gmail.com>
Wed, 18 Jan 2012 21:04:51 +0100
changeset 86037 016472ad4a74e76441c6d3dc8017242b7a263aab
parent 86036 a915d5820eb886e53bebdc7cc95f403a97db6fe0
child 86038 38271572005b735b177b4b7039962486f07435f0
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs524925
milestone12.0a1
Bug 524925 - Reftest that checks whether dynamic transform changes result in the correct scrollable overflow being propagated through parent frames. part=6/6 r=dbaron
layout/generic/test/Makefile.in
layout/generic/test/test_bug524925.html
--- a/layout/generic/test/Makefile.in
+++ b/layout/generic/test/Makefile.in
@@ -121,16 +121,17 @@ include $(topsrcdir)/config/rules.mk
   test_bug522632.html \
   test_bug589621.html \
   test_bug589623.html \
   test_bug633762.html \
   bug633762_iframe.html \
   $(srcdir)/../../reftests/backgrounds/blue-32x32.png \
   $(srcdir)/../../reftests/backgrounds/fuchsia-32x32.png \
   test_selection_splitText-normalize.html \
+  test_bug524925.html \
   $(NULL)
 
 _CHROME_FILES = \
   test_bug632379.xul \
   test_bug508115.xul \
   test_bug469613.xul \
   test_bug469774.xul \
   test_backspace_delete.xul \
new file mode 100644
--- /dev/null
+++ b/layout/generic/test/test_bug524925.html
@@ -0,0 +1,35 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=524925
+-->
+
+<head>
+  <title>Test for Bug 524925</title>
+  <script type="application/javascript" src="/MochiKit/MochiKit.js"></script>
+  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
+</head>
+
+<body>
+
+<div id="container" style="width: 100px; height: 100px; overflow: auto;">
+  <div id="container2" style="width: 100px; height: 100px; overflow: visible;">
+    <div id="block" style="width: 50px; height: 50px; background-color: #000; -moz-transform:translatey(0px);"></div>
+  </div>
+</div>
+
+<pre id="test">
+  <script type="application/javascript">
+    // Move 'block' 100 pixels downwards.
+    var block = document.getElementById("block");
+    block.style.MozTransform = "translatey(100px)";
+
+    // Check the result is correct and finish the test
+    var container = document.getElementById("container");
+    is(container.scrollHeight, 150, "Overflow areas should update after dynamic transform changes");
+  </script>
+</pre>
+
+</body>
+</html>