зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1298012 - update references to devtools/client/shared/l10n -> devtools/shared/l10n;r=bgrins
MozReview-Commit-ID: 6p5ADjlbsHu --HG-- extra : rebase_source : b56c4e40820c5c14a9a0761639e772964d818e30 extra : intermediate-source : 3416f2e554aeebce04723fab282c5bac73bfb1bc extra : source : e46c6780770414844e138b2a69cf7a6a9da4192e
This commit is contained in:
Родитель
fa1078eae2
Коммит
e5437139db
|
@ -21,7 +21,7 @@ loader.lazyRequireGetter(this, "promise");
|
|||
loader.lazyRequireGetter(this, "EventEmitter", "devtools/shared/event-emitter");
|
||||
loader.lazyRequireGetter(this, "AnimationsFront", "devtools/shared/fronts/animation", true);
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
|
||||
const STRINGS_URI = "devtools/locale/animationinspector.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {createNode, TimeScale} = require("devtools/client/animationinspector/utils");
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
|
||||
const STRINGS_URI = "devtools/locale/animationinspector.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {createNode} = require("devtools/client/animationinspector/utils");
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
|
||||
const STRINGS_URI = "devtools/locale/animationinspector.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const STRINGS_URI = "global/locale/layout_errors.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ requestLongerTimeout(2);
|
|||
|
||||
// Test that the panel shows no animation data for invalid or not animated nodes
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
|
||||
const STRINGS_URI = "devtools/locale/animationinspector.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
|
|
@ -9,7 +9,7 @@ requestLongerTimeout(2);
|
|||
// Test that when animations displayed in the timeline are running on the
|
||||
// compositor, they get a special icon and information in the tooltip.
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
|
||||
const STRINGS_URI = "devtools/locale/animationinspector.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
loader.lazyRequireGetter(this, "EventEmitter", "devtools/shared/event-emitter");
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
|
||||
const STRINGS_URI = "devtools/locale/animationinspector.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
|
|
@ -15,7 +15,7 @@ const { CallWatcherFront } = require("devtools/shared/fronts/call-watcher");
|
|||
const { CanvasFront } = require("devtools/shared/fronts/canvas");
|
||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
const flags = require("devtools/shared/flags");
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const { Heritage, WidgetMethods, setNamedTimeout, clearNamedTimeout,
|
||||
setConditionalTimeout } = require("devtools/client/shared/widgets/view-helpers");
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ var Editor = require("devtools/client/sourceeditor/editor");
|
|||
var DebuggerEditor = require("devtools/client/sourceeditor/debugger");
|
||||
var {Tooltip} = require("devtools/client/shared/widgets/Tooltip");
|
||||
var FastListWidget = require("devtools/client/shared/widgets/FastListWidget");
|
||||
var {LocalizationHelper, ELLIPSIS} = require("devtools/client/shared/l10n");
|
||||
var {LocalizationHelper, ELLIPSIS} = require("devtools/shared/l10n");
|
||||
var {PrefsHelper} = require("devtools/client/shared/prefs");
|
||||
var {Task} = require("devtools/shared/task");
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
const TAB_URL = EXAMPLE_URL + "doc_recursion-stack.html";
|
||||
const { ELLIPSIS } = require("devtools/client/shared/l10n");
|
||||
const { ELLIPSIS } = require("devtools/shared/l10n");
|
||||
|
||||
function test() {
|
||||
let gTab, gPanel, gDebugger;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"use strict";
|
||||
|
||||
const TAB_URL = EXAMPLE_URL + "doc_large-array-buffer.html";
|
||||
const {ELLIPSIS} = require("devtools/client/shared/l10n");
|
||||
const {ELLIPSIS} = require("devtools/shared/l10n");
|
||||
|
||||
|
||||
var gTab, gPanel, gDebugger, gVariables;
|
||||
|
|
|
@ -19,7 +19,7 @@ const require = BrowserLoader({
|
|||
XPCOMUtils.defineConstant(this, "require", require);
|
||||
|
||||
// Localization
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
this.l10n = new LocalizationHelper("devtools/locale/dom.properties");
|
||||
|
||||
// Load DOM panel content
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
const promise = require("promise");
|
||||
|
||||
const {ELLIPSIS} = require("devtools/client/shared/l10n");
|
||||
const {ELLIPSIS} = require("devtools/shared/l10n");
|
||||
|
||||
const MAX_LABEL_LENGTH = 40;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ const {Task} = require("devtools/shared/task");
|
|||
const {InplaceEditor, editableItem} =
|
||||
require("devtools/client/shared/inplace-editor");
|
||||
const {ReflowFront} = require("devtools/shared/fronts/layout");
|
||||
const {LocalizationHelper} = require("devtools/client/shared/l10n");
|
||||
const {LocalizationHelper} = require("devtools/shared/l10n");
|
||||
const {getCssProperties} = require("devtools/shared/fronts/css-properties");
|
||||
|
||||
const STRINGS_URI = "devtools/locale/shared.properties";
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
const {Task} = require("devtools/shared/task");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {createNode} = require("devtools/client/animationinspector/utils");
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
|
||||
const STRINGS_URI = "devtools/locale/inspector.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const { Cu, Cc, Ci } = require("chrome");
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const STRINGS_URI = "devtools/locale/memory.properties";
|
||||
const L10N = exports.L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"use strict";
|
||||
|
||||
const { defer, all } = require("promise");
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const Services = require("Services");
|
||||
const appInfo = Services.appinfo;
|
||||
const { CurlUtils } = require("devtools/client/shared/curl");
|
||||
|
|
|
@ -26,7 +26,7 @@ const {HTMLTooltip} = require("devtools/client/shared/widgets/HTMLTooltip");
|
|||
const {setImageTooltip, getImageDimensions} =
|
||||
require("devtools/client/shared/widgets/tooltip/ImageTooltipHelper");
|
||||
const { testing: isTesting } = require("devtools/shared/flags");
|
||||
const {LocalizationHelper} = require("devtools/client/shared/l10n");
|
||||
const {LocalizationHelper} = require("devtools/shared/l10n");
|
||||
const {PrefsHelper} = require("devtools/client/shared/prefs");
|
||||
const {ViewHelpers, Heritage, WidgetMethods, setNamedTimeout} =
|
||||
require("devtools/client/shared/widgets/view-helpers");
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const STRINGS_URI = "devtools/locale/jit-optimizations.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const STRINGS_URI = "devtools/locale/jit-optimizations.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
const { MultiLocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { MultiLocalizationHelper } = require("devtools/shared/l10n");
|
||||
const { PrefsHelper } = require("devtools/client/shared/prefs");
|
||||
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
* This file contains helper functions for internationalizing projecteditor strings
|
||||
*/
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const ITCHPAD_STRINGS_URI = "devtools/locale/projecteditor.properties";
|
||||
const L10N = new LocalizationHelper(ITCHPAD_STRINGS_URI);
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const STRINGS_URI = "devtools/locale/responsive.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ var flags = require("devtools/shared/flags");
|
|||
var Services = require("Services");
|
||||
var EventEmitter = require("devtools/shared/event-emitter");
|
||||
var {ViewHelpers} = require("devtools/client/shared/widgets/view-helpers");
|
||||
var { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
var { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
var { EmulationFront } = require("devtools/shared/fronts/emulation");
|
||||
|
||||
loader.lazyImporter(this, "SystemAppProxy",
|
||||
|
|
|
@ -13,7 +13,7 @@ const Services = require("Services");
|
|||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {Tooltip} = require("devtools/client/shared/widgets/Tooltip");
|
||||
const Editor = require("devtools/client/sourceeditor/editor");
|
||||
const {LocalizationHelper} = require("devtools/client/shared/l10n");
|
||||
const {LocalizationHelper} = require("devtools/shared/l10n");
|
||||
const {Heritage, WidgetMethods, setNamedTimeout} =
|
||||
require("devtools/client/shared/widgets/view-helpers");
|
||||
const {Task} = require("devtools/shared/task");
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
const { DOM: dom, createClass, PropTypes } = require("devtools/client/shared/vendor/react");
|
||||
const { getSourceNames, parseURL,
|
||||
isScratchpadScheme, getSourceMappedFile } = require("devtools/client/shared/source-utils");
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
|
||||
const l10n = new LocalizationHelper("devtools/locale/components.properties");
|
||||
const webl10n = new LocalizationHelper("devtools/locale/webconsole.properties");
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
const React = require("devtools/client/shared/vendor/react");
|
||||
const { DOM: dom, createClass, createFactory, PropTypes } = React;
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const Frame = createFactory(require("./frame"));
|
||||
|
||||
const l10n = new LocalizationHelper("devtools/locale/webconsole.properties");
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
|
||||
const l10n = new LocalizationHelper("devtools/locale/components.properties");
|
||||
const UNKNOWN_SOURCE_STRING = l10n.getStr("frame.unknownSource");
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
const {CSSFilterEditorWidget} = require("devtools/client/shared/widgets/FilterWidget");
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const STRINGS_URI = "devtools/locale/filterwidget.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
const {CSSFilterEditorWidget} = require("devtools/client/shared/widgets/FilterWidget");
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const STRINGS_URI = "devtools/locale/filterwidget.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
const {CSSFilterEditorWidget} = require("devtools/client/shared/widgets/FilterWidget");
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const STRINGS_URI = "devtools/locale/filterwidget.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Tests that text metrics in the flame graph widget work properly.
|
||||
|
||||
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
||||
var {ELLIPSIS} = require("devtools/client/shared/l10n");
|
||||
var {ELLIPSIS} = require("devtools/shared/l10n");
|
||||
var {FlameGraph} = require("devtools/client/shared/widgets/FlameGraph");
|
||||
var {FLAME_GRAPH_BLOCK_TEXT_FONT_SIZE} = require("devtools/client/shared/widgets/FlameGraph");
|
||||
var {FLAME_GRAPH_BLOCK_TEXT_FONT_FAMILY} = require("devtools/client/shared/widgets/FlameGraph");
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
// Tests that the localization utils work properly.
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
|
||||
function test() {
|
||||
let l10n = new LocalizationHelper();
|
||||
|
|
|
@ -19,7 +19,7 @@ const HOVERED_SLICE_TRANSLATE_DISTANCE_RATIO = 20;
|
|||
const { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
const { XPCOMUtils } = require("resource://gre/modules/XPCOMUtils.jsm");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["Chart"];
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ const EventEmitter = require("devtools/shared/event-emitter");
|
|||
const { Cc, Ci } = require("chrome");
|
||||
const XHTML_NS = "http://www.w3.org/1999/xhtml";
|
||||
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const STRINGS_URI = "devtools/locale/filterwidget.properties";
|
||||
const L10N = new LocalizationHelper(STRINGS_URI);
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
const { Task } = require("devtools/shared/task");
|
||||
const { ViewHelpers, setNamedTimeout } = require("devtools/client/shared/widgets/view-helpers");
|
||||
const { ELLIPSIS } = require("devtools/client/shared/l10n");
|
||||
const { ELLIPSIS } = require("devtools/shared/l10n");
|
||||
|
||||
loader.lazyRequireGetter(this, "defer", "devtools/shared/defer");
|
||||
loader.lazyRequireGetter(this, "EventEmitter",
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
const { Task } = require("devtools/shared/task");
|
||||
const { Heritage } = require("devtools/client/shared/widgets/view-helpers");
|
||||
const { AbstractCanvasGraph, CanvasGraphUtils } = require("devtools/client/shared/widgets/Graphs");
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
|
||||
const HTML_NS = "http://www.w3.org/1999/xhtml";
|
||||
const L10N = new LocalizationHelper("devtools/locale/graphs.properties");
|
||||
|
|
|
@ -12,7 +12,7 @@ const SHARED_STRINGS_URI = "devtools/locale/shared.properties";
|
|||
|
||||
const { require } = Cu.import("resource://devtools/shared/Loader.jsm", {});
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const { ViewHelpers } = require("devtools/client/shared/widgets/view-helpers");
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["SideMenuWidget"];
|
||||
|
|
|
@ -29,7 +29,7 @@ const { Heritage, ViewHelpers, setNamedTimeout } =
|
|||
const { Task } = require("devtools/shared/task");
|
||||
const nodeConstants = require("devtools/shared/dom-node-constants");
|
||||
const {KeyCodes} = require("devtools/client/shared/keycodes");
|
||||
const {ELLIPSIS} = require("devtools/client/shared/l10n");
|
||||
const {ELLIPSIS} = require("devtools/shared/l10n");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "PluralForm",
|
||||
"resource://gre/modules/PluralForm.jsm");
|
||||
|
|
|
@ -13,7 +13,7 @@ var {VariablesView} = require("resource://devtools/client/shared/widgets/Variabl
|
|||
var Services = require("Services");
|
||||
var promise = require("promise");
|
||||
var defer = require("devtools/shared/defer");
|
||||
var {LocalizationHelper, ELLIPSIS} = require("devtools/client/shared/l10n");
|
||||
var {LocalizationHelper, ELLIPSIS} = require("devtools/shared/l10n");
|
||||
|
||||
Object.defineProperty(this, "WebConsoleUtils", {
|
||||
get: function () {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const {LocalizationHelper, ELLIPSIS} = require("devtools/client/shared/l10n");
|
||||
const {LocalizationHelper, ELLIPSIS} = require("devtools/shared/l10n");
|
||||
const {KeyShortcuts} = require("devtools/client/shared/key-shortcuts");
|
||||
const JSOL = require("devtools/client/shared/vendor/jsol");
|
||||
const {KeyCodes} = require("devtools/client/shared/keycodes");
|
||||
|
|
|
@ -14,7 +14,7 @@ const EventEmitter = require("devtools/shared/event-emitter");
|
|||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
const Services = require("Services");
|
||||
const { gDevTools } = require("devtools/client/framework/devtools");
|
||||
const { LocalizationHelper } = require("devtools/client/shared/l10n");
|
||||
const { LocalizationHelper } = require("devtools/shared/l10n");
|
||||
const { ViewHelpers } = require("devtools/client/shared/widgets/view-helpers");
|
||||
|
||||
const STRINGS_URI = "devtools/locale/webaudioeditor.properties";
|
||||
|
|
|
@ -29,7 +29,7 @@ const l10n = new WebConsoleUtils.L10n(STRINGS_URI);
|
|||
const nodeConstants = require("devtools/shared/dom-node-constants");
|
||||
|
||||
const MAX_STRING_GRIP_LENGTH = 36;
|
||||
const {ELLIPSIS} = require("devtools/client/shared/l10n");
|
||||
const {ELLIPSIS} = require("devtools/shared/l10n");
|
||||
|
||||
const validProtocols = /^(http|https|ftp|data|javascript|resource|chrome):/i;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ const NetRequest = require("./net-request");
|
|||
const { loadSheet } = require("sdk/stylesheet/utils");
|
||||
|
||||
// Localization
|
||||
const {LocalizationHelper} = require("devtools/client/shared/l10n");
|
||||
const {LocalizationHelper} = require("devtools/shared/l10n");
|
||||
const L10N = new LocalizationHelper("devtools/locale/netmonitor.properties");
|
||||
|
||||
// Stylesheets
|
||||
|
|
|
@ -25,7 +25,7 @@ requireHacker.global_hook("default", path => {
|
|||
switch (path) {
|
||||
case "devtools/client/webconsole/utils":
|
||||
return `module.exports = require("devtools/client/webconsole/new-console-output/test/fixtures/WebConsoleUtils")`;
|
||||
case "devtools/client/shared/l10n":
|
||||
case "devtools/shared/l10n":
|
||||
return `module.exports = require("devtools/client/webconsole/new-console-output/test/fixtures/LocalizationHelper")`;
|
||||
case "Services":
|
||||
case "Services.default":
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"use strict";
|
||||
|
||||
const TEST_URI = "data:text/html;charset=utf8,test for console output - 05";
|
||||
const {ELLIPSIS} = require("devtools/client/shared/l10n");
|
||||
const {ELLIPSIS} = require("devtools/shared/l10n");
|
||||
|
||||
// March, 1960: The first implementation of Lisp. From Wikipedia:
|
||||
//
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
// Test the webconsole output for various arrays.
|
||||
|
||||
const TEST_URI = "data:text/html;charset=utf8,test for console output - 06";
|
||||
const {ELLIPSIS} = require("devtools/client/shared/l10n");
|
||||
const {ELLIPSIS} = require("devtools/shared/l10n");
|
||||
|
||||
const testStrIn = "SHOW\\nALL\\nOF\\nTHIS\\nON\\nA\\nSINGLE" +
|
||||
"\\nLINE ONLY. ESCAPE ALL NEWLINE";
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
const {Cc, Ci, Cu, components} = require("chrome");
|
||||
const Services = require("Services");
|
||||
const {LocalizationHelper} = require("devtools/client/shared/l10n");
|
||||
const {LocalizationHelper} = require("devtools/shared/l10n");
|
||||
|
||||
// Match the function name from the result of toString() or toSource().
|
||||
//
|
||||
|
|
Загрузка…
Ссылка в новой задаче