# HG changeset patch # User Jan Odvarko # Date 1519903389 -3600 # Node ID f749f8d424c44b23815245374522c77f982e66bf # Parent 78d918dfa49050d09434d1b9e9f4fc303222f7a2 Bug 1434849 - Track HAR export in DAMP; r=ochameau MozReview-Commit-ID: BuSNVV3etf2 diff --git a/testing/talos/talos/tests/devtools/addon/content/damp.js b/testing/talos/talos/tests/devtools/addon/content/damp.js --- a/testing/talos/talos/tests/devtools/addon/content/damp.js +++ b/testing/talos/talos/tests/devtools/addon/content/damp.js @@ -797,16 +797,25 @@ async _consoleOpenWithCachedMessagesTest await this.reloadPage(onReload); test.done(); test = this.runTest(name + ".reload.settle.DAMP"); await this.waitForPendingPaints(toolbox); test.done(); }, + async exportHar(label, toolbox) { + let test = this.runTest(label + ".exportHar"); + + // Export HAR from the Network panel. + await toolbox.getHARFromNetMonitor(); + + test.done(); + }, + async _coldInspectorOpen() { await this.testSetup(SIMPLE_URL); await this.openToolboxAndLog("cold.inspector", "inspector"); await this.closeToolbox(); await this.testTeardown(); }, async _panelsInBackgroundReload() { @@ -1086,16 +1095,17 @@ async _consoleOpenWithCachedMessagesTest }, async netmonitor() { await this.testSetup(url); const toolbox = await this.openToolboxAndLog(label + ".netmonitor", "netmonitor"); const requestsDone = this.waitForNetworkRequests(label + ".netmonitor", toolbox, expectedRequests); await this.reloadPageAndLog(label + ".netmonitor", toolbox); await requestsDone; + await this.exportHar(label + ".netmonitor", toolbox); await this.closeToolboxAndLog(label + ".netmonitor", toolbox); await this.testTeardown(); }, async saveAndReadHeapSnapshot() { await this.testSetup(url); const toolbox = await this.openToolboxAndLog(label + ".memory", "memory"); await this.reloadPageAndLog(label + ".memory", toolbox);