mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
a365f19d19
commit
00ccf24ba8
@ -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
|
||||
|
@ -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();
|
||||
};
|
@ -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();
|
||||
};
|
@ -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();
|
||||
};
|
Loading…
Reference in New Issue
Block a user