mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Attempt intermittent orange fix. Bug 518274. reftest: dynamic--inline-resize-window-width.xhtml intermittently fails.
This commit is contained in:
parent
a8f534133a
commit
c727301a48
@ -33,12 +33,18 @@ var initial_height = top.innerHeight;
|
||||
|
||||
function restore_height()
|
||||
{
|
||||
document.removeEventListener("MozReftestInvalidate", restore_height, false);
|
||||
document.addEventListener("MozReftestInvalidate", finish_test, false);
|
||||
top.innerHeight = initial_height;
|
||||
setTimeout(function() { document.documentElement.removeAttribute('class'); }, 0);
|
||||
}
|
||||
|
||||
top.innerHeight /= 2;
|
||||
function finish_test()
|
||||
{
|
||||
document.documentElement.removeAttribute('class');
|
||||
}
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", restore_height, false);
|
||||
top.innerHeight /= 2;
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
@ -33,12 +33,18 @@ var initial_width = top.innerWidth;
|
||||
|
||||
function restore_width()
|
||||
{
|
||||
document.removeEventListener("MozReftestInvalidate", restore_width, false);
|
||||
document.addEventListener("MozReftestInvalidate", finish_test, false);
|
||||
top.innerWidth = initial_width;
|
||||
setTimeout(function() { document.documentElement.removeAttribute('class'); }, 0);
|
||||
}
|
||||
|
||||
top.innerWidth /= 2;
|
||||
function finish_test()
|
||||
{
|
||||
document.documentElement.removeAttribute('class');
|
||||
}
|
||||
|
||||
document.addEventListener("MozReftestInvalidate", restore_width, false);
|
||||
top.innerWidth /= 2;
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user