mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 544537. Attempt to fix random orange by adding some extra mouse events before the real test because they seem to make painting actually happen on OS X.
This commit is contained in:
parent
9511d287cb
commit
6f938dbf48
@ -60,6 +60,12 @@ function runTests()
|
|||||||
//XXX We need to make sure a paint has happened on the images because that is
|
//XXX We need to make sure a paint has happened on the images because that is
|
||||||
// when the image maps actually get setup.
|
// when the image maps actually get setup.
|
||||||
|
|
||||||
|
// There's no way to force painting to happen on OS X, maybe some synthesized
|
||||||
|
// mouse events will do the job?
|
||||||
|
synthesizeMouse($("image"), 5, 5, { type: "mousedown" });
|
||||||
|
synthesizeMouse($("otherelement"), 5, 5, { type: "mousemove" });
|
||||||
|
synthesizeMouse($("image"), 5, 5, { type: "mouseup" });
|
||||||
|
|
||||||
// Flush layout
|
// Flush layout
|
||||||
document.body.offsetWidth;
|
document.body.offsetWidth;
|
||||||
// Flush out invalidation
|
// Flush out invalidation
|
||||||
@ -68,7 +74,13 @@ function runTests()
|
|||||||
getInterface(Components.interfaces.nsIDOMWindowUtils);
|
getInterface(Components.interfaces.nsIDOMWindowUtils);
|
||||||
utils.processUpdates();
|
utils.processUpdates();
|
||||||
|
|
||||||
setTimeout(finishTests, 0);
|
// There's no way to force painting to happen on OS X, maybe a synthesized
|
||||||
|
// mouse click will do the job?
|
||||||
|
synthesizeMouse($("image"), 5, 5, { type: "mousedown" });
|
||||||
|
synthesizeMouse($("otherelement"), 5, 5, { type: "mousemove" });
|
||||||
|
synthesizeMouse($("image"), 5, 5, { type: "mouseup" });
|
||||||
|
|
||||||
|
setTimeout(finishTests, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
function finishTests() {
|
function finishTests() {
|
||||||
|
Loading…
Reference in New Issue
Block a user