зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1328553
- Part 2: Add a netmonitor.requestsFinished timing to DAMP tests r=jryans
MozReview-Commit-ID: 1v7yIUfEwan --HG-- extra : rebase_source : 9092bea6ac3d59952b07b316450709597f180e61
This commit is contained in:
Родитель
23dbd28f5f
Коммит
53fd6f6e23
|
@ -114,6 +114,17 @@ Damp.prototype = {
|
|||
return Promise.resolve();
|
||||
},
|
||||
|
||||
waitForNetworkRequests: Task.async(function*(label, toolbox) {
|
||||
const { NetMonitorController } = toolbox.getCurrentPanel().panelWin;
|
||||
const start = performance.now();
|
||||
yield NetMonitorController.waitForAllRequestsFinished();
|
||||
const end = performance.now();
|
||||
this._results.push({
|
||||
name: label + ".requestsFinished.DAMP",
|
||||
value: end - start
|
||||
});
|
||||
}),
|
||||
|
||||
_consoleBulkLoggingTest: Task.async(function*() {
|
||||
let TOTAL_MESSAGES = 10;
|
||||
let tab = yield this.testSetup(SIMPLE_URL);
|
||||
|
@ -310,8 +321,10 @@ Damp.prototype = {
|
|||
|
||||
netmonitorOpen: Task.async(function*() {
|
||||
yield this.testSetup(url);
|
||||
yield openToolboxAndLog(label + ".netmonitor", "netmonitor");
|
||||
const toolbox = yield openToolboxAndLog(label + ".netmonitor", "netmonitor");
|
||||
const requestsDone = this.waitForNetworkRequests(label + ".netmonitor", toolbox);
|
||||
yield reloadPageAndLog(label + ".netmonitor");
|
||||
yield requestsDone;
|
||||
yield closeToolboxAndLog(label + ".netmonitor");
|
||||
yield this.testTeardown();
|
||||
}),
|
||||
|
|
Двоичные данные
testing/talos/talos/tests/devtools/addon/devtools-signed.xpi
Двоичные данные
testing/talos/talos/tests/devtools/addon/devtools-signed.xpi
Двоичный файл не отображается.
|
@ -3,7 +3,7 @@
|
|||
<!-- Required Items -->
|
||||
<em:id>bug1150215@mozilla.org</em:id>
|
||||
<em:name>DAMP - Devtools At Maximum Performance</em:name>
|
||||
<em:version>0.0.5</em:version>
|
||||
<em:version>0.0.6</em:version>
|
||||
|
||||
<em:targetApplication>
|
||||
<Description>
|
||||
|
|
Загрузка…
Ссылка в новой задаче