1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-06-10 10:28:34 +00:00
Files
UXP/devtools/client/netmonitor/test/browser_net_aaa_leaktest.js
T

29 lines
1.0 KiB
JavaScript

/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
/**
* Tests if the network monitor leaks on initialization and sudden destruction.
* You can also use this initialization format as a template for other tests.
*/
add_task(function* () {
let { tab, monitor } = yield initNetMonitor(SIMPLE_URL);
info("Starting test... ");
let { document, NetMonitorView, NetMonitorController } = monitor.panelWin;
let { RequestsMenu, NetworkDetails } = NetMonitorView;
ok(tab, "Should have a tab available.");
ok(monitor, "Should have a network monitor pane available.");
ok(document, "Should have a document available.");
ok(NetMonitorView, "Should have a NetMonitorView object available.");
ok(NetMonitorController, "Should have a NetMonitorController object available.");
ok(RequestsMenu, "Should have a RequestsMenu object available.");
ok(NetworkDetails, "Should have a NetworkDetails object available.");
yield teardown(monitor);
});