mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 869278 fix intermittent failure in browser_social_mozSocial_API.js, r=felipe
This commit is contained in:
parent
d6b111e7b1
commit
7bfaa7f123
@ -28,15 +28,13 @@ var tests = {
|
||||
}
|
||||
|
||||
function triggerIconPanel() {
|
||||
let statusIcon = document.getElementById("social-provider-button").nextSibling;
|
||||
info("status icon is " + statusIcon);
|
||||
waitForCondition(function() {
|
||||
statusIcon = document.getElementById("social-provider-button").nextSibling;
|
||||
info("status icon is " + statusIcon);
|
||||
return !!statusIcon;
|
||||
let button = document.getElementById("social-toolbar-item");
|
||||
// by default, button has two children. wait for a 3rd to be added
|
||||
return button.childNodes.length > 2;
|
||||
}, function() {
|
||||
// Click the button to trigger its contentPanel
|
||||
let panel = document.getElementById("social-notification-panel");
|
||||
let statusIcon = document.getElementById("social-provider-button").nextSibling;
|
||||
EventUtils.synthesizeMouseAtCenter(statusIcon, {});
|
||||
}, "Status icon didn't become non-hidden");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user