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