Bug 1753614 - [devtools] Rename mdn-utils file r=nchevobbe

Differential Revision: https://phabricator.services.mozilla.com/D138410
This commit is contained in:
Jan Odvarko 2022-02-11 17:18:41 +00:00
parent 956deb07a1
commit 340fc67179
16 changed files with 15 additions and 15 deletions

View File

@ -28,7 +28,7 @@ const {
const { L10N } = require("devtools/client/netmonitor/src/utils/l10n");
const {
getPerformanceAnalysisURL,
} = require("devtools/client/netmonitor/src/utils/mdn-utils");
} = require("devtools/client/netmonitor/src/utils/doc-utils");
const {
fetchNetworkUpdatePacket,
} = require("devtools/client/netmonitor/src/utils/request-utils");

View File

@ -43,7 +43,7 @@ loader.lazyRequireGetter(
// MDN
const {
getFilterBoxURL,
} = require("devtools/client/netmonitor/src/utils/mdn-utils");
} = require("devtools/client/netmonitor/src/utils/doc-utils");
const LEARN_MORE_URL = getFilterBoxURL();
// Components

View File

@ -23,7 +23,7 @@ const {
getHeadersURL,
getTrackingProtectionURL,
getHTTPStatusCodeURL,
} = require("devtools/client/netmonitor/src/utils/mdn-utils");
} = require("devtools/client/netmonitor/src/utils/doc-utils");
const {
fetchNetworkUpdatePacket,
writeHeaderText,

View File

@ -18,7 +18,7 @@ const {
} = require("devtools/client/netmonitor/src/utils/request-utils");
const {
getCORSErrorURL,
} = require("devtools/client/netmonitor/src/utils/mdn-utils");
} = require("devtools/client/netmonitor/src/utils/doc-utils");
const {
Filters,
} = require("devtools/client/netmonitor/src/utils/filter-predicates");

View File

@ -13,7 +13,7 @@ const dom = require("devtools/client/shared/vendor/react-dom-factories");
const { L10N } = require("devtools/client/netmonitor/src/utils/l10n");
const {
getNetMonitorTimingsURL,
} = require("devtools/client/netmonitor/src/utils/mdn-utils");
} = require("devtools/client/netmonitor/src/utils/doc-utils");
const {
fetchNetworkUpdatePacket,
} = require("devtools/client/netmonitor/src/utils/request-utils");

View File

@ -18,7 +18,7 @@ const { ACTIVITY_TYPE } = require("devtools/client/netmonitor/src/constants");
const { L10N } = require("devtools/client/netmonitor/src/utils/l10n");
const {
getPerformanceAnalysisURL,
} = require("devtools/client/netmonitor/src/utils/mdn-utils");
} = require("devtools/client/netmonitor/src/utils/doc-utils");
// Components
const MDNLink = createFactory(

View File

@ -9,13 +9,13 @@ DIRS += [
DevToolsModules(
"context-menu-utils.js",
"doc-utils.js",
"filter-autocomplete-provider.js",
"filter-predicates.js",
"filter-text-utils.js",
"format-utils.js",
"headers-provider.js",
"l10n.js",
"mdn-utils.js",
"open-request-in-tab.js",
"prefs.js",
"request-blocking.js",

View File

@ -20,7 +20,7 @@ add_task(async function() {
);
const {
getHeadersURL,
} = require("devtools/client/netmonitor/src/utils/mdn-utils");
} = require("devtools/client/netmonitor/src/utils/doc-utils");
store.dispatch(Actions.batchEnable(false));

View File

@ -1,7 +1,7 @@
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
// Test for mdn-utils
// Test for doc-utils
"use strict";
@ -24,7 +24,7 @@ function run_test() {
getNetMonitorTimingsURL,
getPerformanceAnalysisURL,
getFilterBoxURL,
} = require("devtools/client/netmonitor/src/utils/mdn-utils");
} = require("devtools/client/netmonitor/src/utils/doc-utils");
info("Checking for supported headers");
equal(

View File

@ -4,6 +4,6 @@ head =
firefox-appdir = browser
skip-if = toolkit == 'android'
[test_mdn-utils.js]
[test_doc-utils.js]
[test_request-utils-fetchNetworkUpdatePacket.js]
[test_request-utils-js-getFormattedProtocol.js]

View File

@ -8,7 +8,7 @@
"use strict";
const getStorageTypeURL = require("devtools/client/storage/utils/mdn-utils");
const getStorageTypeURL = require("devtools/client/storage/utils/doc-utils");
const storeItems = [
"Cache",

View File

@ -9,7 +9,7 @@ const KeyShortcuts = require("devtools/client/shared/key-shortcuts");
const { parseItemValue } = require("devtools/shared/storage/utils");
const { KeyCodes } = require("devtools/client/shared/keycodes");
const { getUnicodeHostname } = require("devtools/client/shared/unicode-url");
const getStorageTypeURL = require("devtools/client/storage/utils/mdn-utils");
const getStorageTypeURL = require("devtools/client/storage/utils/doc-utils");
// GUID to be used as a separator in compound keys. This must match the same
// constant in devtools/server/actors/storage.js,

View File

@ -3,6 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
DevToolsModules(
"doc-utils.js",
"l10n.js",
"mdn-utils.js",
)

View File

@ -27,7 +27,7 @@ loader.lazyRequireGetter(
);
const {
getHTTPStatusCodeURL,
} = require("devtools/client/netmonitor/src/utils/mdn-utils");
} = require("devtools/client/netmonitor/src/utils/doc-utils");
const { getUnicodeUrl } = require("devtools/client/shared/unicode-url");
loader.lazyRequireGetter(
this,