Bug 1434849 - Track HAR export in DAMP; r=ochameau

MozReview-Commit-ID: BuSNVV3etf2

--HG--
extra : rebase_source : 24face50b6fae9eb6da1859295151fae831d6332
This commit is contained in:
Jan Odvarko 2018-03-01 12:23:09 +01:00
Родитель 31d41c573e
Коммит 66f0d65df5
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -802,6 +802,15 @@ async _consoleOpenWithCachedMessagesTest() {
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");
@ -1091,6 +1100,7 @@ async _consoleOpenWithCachedMessagesTest() {
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();
},