зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1ad1f7287c
Коммит
9070d2cc3b
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче