mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1081072, part 2: add reftest.
This commit is contained in:
parent
f3eefc5c8c
commit
c0c4df5b6d
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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user