Attempt intermittent orange fix. Bug 518274. reftest: dynamic--inline-resize-window-width.xhtml intermittently fails.

--HG--
extra : rebase_source : 53ae20830f886d5076538c04bac8f6344ac5b4e3
This commit is contained in:
Jonathan Watt 2009-09-23 13:15:54 +02:00
Родитель 877e274090
Коммит 373942fcbf
2 изменённых файлов: 3 добавлений и 15 удалений

Просмотреть файл

@ -30,25 +30,19 @@ html, body, div {
<script type="text/javascript">
var initial_height = top.innerHeight;
top.innerHeight /= 2;
function restore_height()
{
document.removeEventListener("MozReftestInvalidate", restore_height, false);
document.addEventListener("MozReftestInvalidate", finish_test, false);
top.innerHeight = initial_height;
}
function finish_test()
{
document.documentElement.removeAttribute('class');
}
document.addEventListener("MozReftestInvalidate", restore_height, false);
top.innerHeight /= 2;
</script>
</head>
<body onload="restore_height()">
<body>
<svg xmlns="http://www.w3.org/2000/svg" width="5000" height="100%">
<rect width="100%" height="100%" fill="lime"/>

Просмотреть файл

@ -30,21 +30,15 @@ html, body, div {
<script type="text/javascript">
var initial_width = top.innerWidth;
top.innerWidth /= 2;
function restore_width()
{
document.removeEventListener("MozReftestInvalidate", restore_width, false);
document.addEventListener("MozReftestInvalidate", finish_test, false);
top.innerWidth = initial_width;
}
function finish_test()
{
document.documentElement.removeAttribute('class');
}
document.addEventListener("MozReftestInvalidate", restore_width, false);
top.innerWidth /= 2;
</script>
</head>