mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 869278 fix intermittent mozSocial test failure, r=felipe
This commit is contained in:
parent
02f4f0c46c
commit
b749138852
@ -29,9 +29,11 @@ var tests = {
|
||||
|
||||
function triggerIconPanel() {
|
||||
waitForCondition(function() {
|
||||
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;
|
||||
let mButton = document.getElementById("social-mark-button");
|
||||
let pButton = document.getElementById("social-provider-button");
|
||||
// wait for a new button to be inserted inbetween the provider and mark
|
||||
// button
|
||||
return pButton.nextSibling != mButton;
|
||||
}, function() {
|
||||
// Click the button to trigger its contentPanel
|
||||
let statusIcon = document.getElementById("social-provider-button").nextSibling;
|
||||
|
Loading…
Reference in New Issue
Block a user