mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Bug 1081072, part 2: add reftest.
This commit is contained in:
parent
73c6a5631c
commit
b126bfeb83
15
layout/reftests/bugs/1081072-1-ref.html
Normal file
15
layout/reftests/bugs/1081072-1-ref.html
Normal 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>
|
34
layout/reftests/bugs/1081072-1.html
Normal file
34
layout/reftests/bugs/1081072-1.html
Normal 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>
|
@ -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
|
||||
== 1069716-1.html 1069716-1-ref.html
|
||||
== 1078262-1.html about:blank
|
||||
== 1081072-1.html 1081072-1-ref.html
|
||||
== 1081185-1.html 1081185-1-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user