зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1026290: Delay mochitest-chrome redirect until after MozAfterPaint; r=jmaher
This commit is contained in:
Родитель
df394801a2
Коммит
e92ff6ecab
|
@ -17,9 +17,20 @@
|
|||
document.dispatchEvent(event);
|
||||
}
|
||||
|
||||
function onLoad() {
|
||||
function redirectToHarness()
|
||||
{
|
||||
redirect("chrome://mochikit/content/harness.xul");
|
||||
}
|
||||
|
||||
function onLoad() {
|
||||
// Wait for MozAfterPaint, since the listener in browser-test.js is not
|
||||
// added until then.
|
||||
window.addEventListener("MozAfterPaint", function testOnMozAfterPaint() {
|
||||
window.removeEventListener("MozAfterPaint", testOnMozAfterPaint);
|
||||
setTimeout(redirectToHarness, 0);
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче