зеркало из https://github.com/mozilla/pjs.git
Bug 569238 - Add some debugging information to determine what causes test_flush_on_paint.html to time out (temporary test-only change)
(transplanted from 9624407a729c81c531c7ab3a49e7209ede5525e0) --HG-- extra : transplant_source : %96%24%40zr%9C%81%C51%C7%AB%3AI%E7%20%9E%DEU%25%E0
This commit is contained in:
Родитель
6a7663e219
Коммит
dcaae118e1
|
@ -31,14 +31,15 @@ invalidationLoop();
|
||||||
|
|
||||||
function doIteration() {
|
function doIteration() {
|
||||||
lastPaintCount = plugin.getPaintCount();
|
lastPaintCount = plugin.getPaintCount();
|
||||||
|
ok(true, "Beginning iteration " + iterations + ", last paint count: " + lastPaintCount);
|
||||||
|
|
||||||
var v = 255 - iterations;
|
|
||||||
expectedWidth = 201 + iterations;
|
expectedWidth = 201 + iterations;
|
||||||
plugin.style.width = expectedWidth + "px";
|
plugin.style.width = expectedWidth + "px";
|
||||||
checkDone();
|
checkDone();
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkDone() {
|
function checkDone() {
|
||||||
|
ok(true, "Check to see if we're done: " + plugin.getPaintCount());
|
||||||
if (plugin.getPaintCount() == lastPaintCount) {
|
if (plugin.getPaintCount() == lastPaintCount) {
|
||||||
setTimeout(checkDone, 30);
|
setTimeout(checkDone, 30);
|
||||||
return;
|
return;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче