Bug 1151145 - Add a reftest. r=jrmuizel, a=lizzard
authorMarkus Stange <mstange@themasta.com>
Sat, 04 Apr 2015 18:07:53 -0400
changeset 254980 77b9d633dfb9
parent 254979 969ad710b89e
child 254981 65ab6d27be5a
push id7914
push userryanvm@gmail.com
push date2015-04-13 18:28 +0000
treeherdermozilla-aurora@428734cf3a67 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel, lizzard
bugs1151145
milestone39.0a2
Bug 1151145 - Add a reftest. r=jrmuizel, a=lizzard
layout/reftests/bugs/1151145-1-ref.html
layout/reftests/bugs/1151145-1.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1151145-1-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html lang="en">
+<title>Reference for test for bug 1151145</title>
+
+<div style="height: 300px"></div>
+
+<div style="width: 33em; border: solid white; transform: translate(100px) rotate(20deg);"></div>
+
+<div style="height: 1000px"></div>
+
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1151145-1.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html lang="en" class="reftest-wait">
+<title>Test for bug 1151145</title>
+
+<div style="height: 300px"></div>
+
+<div style="width: 33em; border: solid white; transform: translate(100px) rotate(20deg);"></div>
+
+<div style="height: 1000px"></div>
+
+<script>
+
+function doTest() {
+  document.documentElement.scrollTop = 0;
+  document.documentElement.removeAttribute("class");
+}
+
+document.documentElement.scrollTop = 255;
+window.addEventListener("MozReftestInvalidate", doTest);
+
+</script>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1867,8 +1867,9 @@ skip-if(Mulet) == 1120431-2.html 1120431
 == 1121748-2.html 1121748-2-ref.html
 == 1127107-1a-nowrap.html 1127107-1-ref.html
 == 1127107-1b-pre.html 1127107-1-ref.html
 == 1127107-2-capitalize.html 1127107-2-capitalize-ref.html
 == 1127679-1a-inline-flex-relpos.html 1127679-1b-inline-flex-relpos.html
 == 1128354-1.html 1128354-1-ref.html
 == 1130231-1-button-padding-rtl.html 1130231-1-button-padding-rtl-ref.html
 == 1130231-2-button-padding-rtl.html 1130231-2-button-padding-rtl-ref.html
+== 1151145-1.html 1151145-1-ref.html