Bug 894931. Add reftest. r=dbaron

This commit is contained in:
Robert O'Callahan 2013-07-19 11:22:40 -04:00
parent 516c4c5af4
commit 399d3edad1
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,8 @@
<!DOCTYPE HTML>
<html>
<body>
<div style="position:relative; margin-top:100px;">
<div style="background:yellow; width:100px; height:100px; position:absolute"></div>
</div>
</body>
</html>

View File

@ -0,0 +1,15 @@
<!DOCTYPE HTML>
<html class="reftest-wait">
<body>
<div id="d" style="margin-top:100px;">
<div style="background:yellow; width:100px; height:100px; position:absolute; top:0; left:0"></div>
</div>
<script>
function doTest() {
document.getElementById("d").style.position = "relative";
document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", doTest, false);
</script>
</body>
</html>

View File

@ -1770,3 +1770,4 @@ random-if(Android&&AndroidVersion>=15) == 875060-1.html 875060-1-ref.html #Bug 8
== 883987-1e.html 883987-1-ref.html
== 883987-1f.html 883987-1-ref.html
== 890495-1.html 890495-1-ref.html
== 894931-1.html 894931-1-ref.html