зеркало из https://github.com/mozilla/gecko-dev.git
Bug 614643 - Cause a repaint no matter what so that the test becomes more robust; r=neil a=test-only
This commit is contained in:
Родитель
577f388b52
Коммит
79053b3876
|
@ -71,7 +71,6 @@ function test()
|
|||
|
||||
waitForExplicitFinish();
|
||||
var dataUri = 'data:text/html,<body><style type="text/css">div { display: inline-block; }</style>\
|
||||
<div id="forceredraw" style="height: 1px"></div>\
|
||||
<div id="a" style="width: 100px; height: 100px; overflow: hidden;"><div style="width: 200px; height: 200px;"></div></div>\
|
||||
<div id="b" style="width: 100px; height: 100px; overflow: auto;"><div style="width: 200px; height: 200px;"></div></div>\
|
||||
<div id="c" style="width: 100px; height: 100px; overflow-x: auto; overflow-y: hidden;"><div style="width: 200px; height: 200px;"></div></div>\
|
||||
|
@ -98,7 +97,7 @@ function test()
|
|||
doc = gBrowser.contentDocument;
|
||||
// force redraws, so we actually get AfterPaint events
|
||||
window.addEventListener("MozBeforePaint", function(ev) {
|
||||
doc.getElementById("forceredraw").style.left = ev.timeStamp % 100;
|
||||
doc.body.appendChild(doc.createTextNode('.'));
|
||||
}, false);
|
||||
nextTest();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче