Bug 797639 - Part 4: Fix Network Monitor test leaks. r=vporof

This commit is contained in:
J. Ryan Stinnett 2014-05-14 14:30:02 -05:00
parent f0e7ce6951
commit d016a65051
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ function test() {
is(Prefs.filters[1], "bogus",
"The second filter type is invalid, but loaded anyway.");
waitForNetworkEvents(aMonitor, 7).then(() => {
waitForNetworkEvents(aMonitor, 8).then(() => {
testFilterButtons(aMonitor, "js");
ok(true, "Only the correct filter type was taken into consideration.");

View File

@ -25,7 +25,7 @@ function test() {
is(NetMonitorView.detailsPaneHidden, true,
"The details pane should be hidden when the frontend is opened.");
aMonitor.panelWin.once(aMonitor.panelWin.EVENTS.NETWORK_EVENT, () => {
waitForNetworkEvents(aMonitor, 1).then(() => {
is(document.querySelector("#details-pane-toggle")
.hasAttribute("disabled"), false,
"The pane toggle button should be enabled after the first request.");
@ -37,7 +37,7 @@ function test() {
is(NetMonitorView.detailsPaneHidden, true,
"The details pane should still be hidden after the first request.");
aMonitor.panelWin.once(aMonitor.panelWin.EVENTS.NETWORK_EVENT, () => {
waitForNetworkEvents(aMonitor, 1).then(() => {
is(document.querySelector("#details-pane-toggle")
.hasAttribute("disabled"), false,
"The pane toggle button should be still be enabled after a reload.");