Bug 907332 - Intermittent browser_webconsole_bug_594477_clickable_output.js | Timed out while waiting for: network message displayed; r=me

This commit is contained in:
Mihai Sucan 2013-09-05 22:14:02 +03:00
parent f76064cb97
commit 7d2a201970

View File

@ -27,22 +27,22 @@ function consoleOpened(aHud) {
function tabLoad2(aEvent) {
browser.removeEventListener(aEvent.type, tabLoad2, true);
waitForSuccess({
name: "network message displayed",
validatorFn: function()
{
return outputNode.querySelector(".hud-networkinfo .hud-clickable");
},
successFn: function() {
outputItem = outputNode.querySelector(".hud-networkinfo .hud-clickable");
ok(outputItem, "found a network message");
document.addEventListener("popupshown", networkPanelShown, false);
waitForMessages({
webconsole: HUD,
messages: [{
text: "test-console.html",
category: CATEGORY_NETWORK,
severity: SEVERITY_LOG,
}],
}).then(([result]) => {
let msg = [...result.matched][0];
outputItem = msg.querySelector(".hud-clickable");
ok(outputItem, "found a network message");
document.addEventListener("popupshown", networkPanelShown, false);
// Send the mousedown and click events such that the network panel opens.
EventUtils.sendMouseEvent({type: "mousedown"}, outputItem);
EventUtils.sendMouseEvent({type: "click"}, outputItem);
},
failureFn: finishTest,
// Send the mousedown and click events such that the network panel opens.
EventUtils.sendMouseEvent({type: "mousedown"}, outputItem);
EventUtils.sendMouseEvent({type: "click"}, outputItem);
});
}