Bug 1553437 - Add cold-open talos DAMP test for jsdebugger, webconsole, netmonitor r=ochameau

Differential Revision: https://phabricator.services.mozilla.com/D32122

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Julian Descottes 2019-05-23 08:41:19 +00:00
parent a365f19d19
commit 00ccf24ba8
4 changed files with 76 additions and 1 deletions

View File

@ -20,10 +20,33 @@
*/
module.exports = [
// The first cold-open test is *colder* than the other cold-open tests, it will also
// assess the impact of loading shared DevTools modules for the first time.
// This test will assert the impact of base loader/Loader.jsm modules loading,
// typically gDevtools/gDevToolsBrowser/Framework modules, while the others will mostly
// track panel-specific modules (Browser loader, but not only).
{
name: "inspector.cold-open",
path: "inspector/cold-open.js",
description: "Measure first open toolbox on inspector panel",
description: "Measure first open toolbox on inspector panel (incl. shared modules)",
cold: true,
},
{
name: "debugger.cold-open",
path: "debugger/cold-open.js",
description: "Measure first open toolbox on debugger panel",
cold: true,
},
{
name: "webconsole.cold-open",
path: "webconsole/cold-open.js",
description: "Measure first open toolbox on webconsole panel",
cold: true,
},
{
name: "netmonitor.cold-open",
path: "netmonitor/cold-open.js",
description: "Measure first open toolbox on netmonitor panel",
cold: true,
},
// Run all tests against "simple" document

View File

@ -0,0 +1,22 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { closeToolbox, testSetup, testTeardown, SIMPLE_URL } = require("../head");
const { openDebuggerAndLog } = require("./debugger-helpers");
const EXPECTED = {
sources: 1,
file: "simple.html",
sourceURL: SIMPLE_URL,
text: "This is a simple page",
};
module.exports = async function() {
await testSetup(SIMPLE_URL);
await openDebuggerAndLog("cold", EXPECTED);
await closeToolbox();
await testTeardown();
};

View File

@ -0,0 +1,15 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { openToolboxAndLog, closeToolbox, testSetup,
testTeardown, SIMPLE_URL } = require("../head");
module.exports = async function() {
await testSetup(SIMPLE_URL);
await openToolboxAndLog("cold.netmonitor", "netmonitor");
await closeToolbox();
await testTeardown();
};

View File

@ -0,0 +1,15 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { openToolboxAndLog, closeToolbox, testSetup,
testTeardown, SIMPLE_URL } = require("../head");
module.exports = async function() {
await testSetup(SIMPLE_URL);
await openToolboxAndLog("cold.webconsole", "webconsole");
await closeToolbox();
await testTeardown();
};