Bug 1213043 - Make sure we kick off a paint in MozReftestInvalidate to ensure mozPaintCount is incremented eventually (to avoid test timeout). r=tn

This commit is contained in:
Mats Palmgren 2017-02-17 11:51:07 -07:00
Родитель 1ad1f7287c
Коммит 9070d2cc3b
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -5,12 +5,14 @@
var startPaintCount = 0;
function doTest() {
startPaintCount = window.mozPaintCount;
document.querySelector('#src').style.visibility='visible';
document.querySelector('#dest').style.visibility='visible';
setTimeout(check, 200);
}
var calls = 0;
function check() {
calls++;
if ((window.mozPaintCount - startPaintCount) > 2) {
if ((window.mozPaintCount - startPaintCount) > 3) {
finishSuccess();
return;
}
@ -46,11 +48,13 @@ div {
#src {
background-image: url('1114526-1.gif');
top: -500px;
visibility: hidden;
}
#dest {
background-image: -moz-element(#src);
top: 100px;
visibility: hidden;
}
</style>
</head>