Bug 862198 - Intermittent browser_net_json-long.js | Test timed out, found a tab, r=rcampbell

This commit is contained in:
Victor Porof 2013-05-28 18:19:21 +03:00
parent f710a9508c
commit 01b870a8f5

View File

@ -11,7 +11,7 @@ function test() {
// This is receiving over 80 KB of json and will populate over 6000 items
// in a variables view instance. Debug builds are slow.
requestLongerTimeout(3);
requestLongerTimeout(4);
let { document, L10N, SourceEditor, NetMonitorView } = aMonitor.panelWin;
let { RequestsMenu } = NetMonitorView;
@ -29,16 +29,16 @@ function test() {
time: true
});
EventUtils.sendMouseEvent({ type: "mousedown" },
document.getElementById("details-pane-toggle"));
EventUtils.sendMouseEvent({ type: "mousedown" },
document.querySelectorAll("#details-pane tab")[3]);
aMonitor.panelWin.once("NetMonitor:ResponseBodyAvailable", () => {
testResponseTab();
teardown(aMonitor).then(finish);
});
EventUtils.sendMouseEvent({ type: "mousedown" },
document.getElementById("details-pane-toggle"));
EventUtils.sendMouseEvent({ type: "mousedown" },
document.querySelectorAll("#details-pane tab")[3]);
function testResponseTab() {
let tab = document.querySelectorAll("#details-pane tab")[3];
let tabpanel = document.querySelectorAll("#details-pane tabpanel")[3];