Bug 1081072, part 2: add reftest.

This commit is contained in:
Daniel Holbert 2014-10-19 23:36:46 -07:00
parent f3eefc5c8c
commit c0c4df5b6d
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<style>
.container {
border: 1px solid black;
}
</style>
</head>
<body>
<div class="container">
<div>T</div>
</div>
</body>
</html>

View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style>
.container {
display: flex;
overflow-y: auto;
border: 1px solid black;
}
</style>
<script type='text/javascript'>
window.addEventListener("MozReftestInvalidate", startTest);
function startTest() {
// NOTE: setTimeout in tests is evil, but it's necessary here -- we need
// to wait until the scrollbars have finished fading, and there's no
// event we can listen for to signal that, AFAIK. Fortunately, there
// shouldn't be *visible* scrollbars in this testcase, so even if our
// setTimeout fires too early/late, the test will still pass. (So, there
// shouldn't be spurious failures; any failures that happen will be real.)
setTimeout(endTest, 800);
}
function endTest() {
document.documentElement.removeAttribute("class");
}
</script>
</head>
<body>
<div class="container">
<div>T</div>
</div>
</body>
</html>

View File

@ -1837,4 +1837,5 @@ fails-if(Android) == 1062792-1.html 1062792-1-ref.html
test-pref(dom.webcomponents.enabled,true) == 1066554-1.html 1066554-1-ref.html test-pref(dom.webcomponents.enabled,true) == 1066554-1.html 1066554-1-ref.html
== 1069716-1.html 1069716-1-ref.html == 1069716-1.html 1069716-1-ref.html
== 1078262-1.html about:blank == 1078262-1.html about:blank
== 1081072-1.html 1081072-1-ref.html
== 1081185-1.html 1081185-1-ref.html == 1081185-1.html 1081185-1-ref.html