forked from mirrors/gecko-dev
Bug 1669956 - [devtools] Enable eslint for devtools/client/shared/components/reps. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93370
This commit is contained in:
parent
15547ae76c
commit
cd1c9e51c2
157 changed files with 1029 additions and 439 deletions
|
|
@ -66,9 +66,6 @@ devtools/client/debugger/images/
|
||||||
devtools/client/debugger/test/
|
devtools/client/debugger/test/
|
||||||
devtools/client/debugger/index.html
|
devtools/client/debugger/index.html
|
||||||
|
|
||||||
# Ignore devtools imported repositories
|
|
||||||
devtools/client/shared/components/reps/
|
|
||||||
|
|
||||||
# Ignore devtools preferences files
|
# Ignore devtools preferences files
|
||||||
devtools/client/preferences/
|
devtools/client/preferences/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,23 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { MODE } = require("./reps/constants");
|
"use strict";
|
||||||
const { REPS, getRep } = require("./reps/rep");
|
|
||||||
const objectInspector = require("./object-inspector/index");
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
const {
|
||||||
|
REPS,
|
||||||
|
getRep,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep");
|
||||||
|
const objectInspector = require("devtools/client/shared/components/reps/object-inspector/index");
|
||||||
|
|
||||||
const {
|
const {
|
||||||
parseURLEncodedText,
|
parseURLEncodedText,
|
||||||
parseURLParams,
|
parseURLParams,
|
||||||
maybeEscapePropertyName,
|
maybeEscapePropertyName,
|
||||||
getGripPreviewItems,
|
getGripPreviewItems,
|
||||||
} = require("./reps/rep-utils");
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
REPS,
|
REPS,
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { loadItemProperties } = require("./utils/load-properties");
|
const { loadItemProperties } = require("devtools/client/shared/components/reps/object-inspector/utils/load-properties");
|
||||||
const {
|
const {
|
||||||
getPathExpression,
|
getPathExpression,
|
||||||
getParentFront,
|
getParentFront,
|
||||||
|
|
@ -10,8 +10,8 @@ const {
|
||||||
getValue,
|
getValue,
|
||||||
nodeIsBucket,
|
nodeIsBucket,
|
||||||
getFront,
|
getFront,
|
||||||
} = require("./utils/node");
|
} = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
const { getLoadedProperties, getWatchpoints } = require("./reducer");
|
const { getLoadedProperties, getWatchpoints } = require("devtools/client/shared/components/reps/object-inspector/reducer");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This action is responsible for expanding a given node, which also means that
|
* This action is responsible for expanding a given node, which also means that
|
||||||
|
|
|
||||||
|
|
@ -8,17 +8,17 @@ const {
|
||||||
createElement,
|
createElement,
|
||||||
} = require("devtools/client/shared/vendor/react");
|
} = require("devtools/client/shared/vendor/react");
|
||||||
const { connect } = require("devtools/client/shared/vendor/react-redux");
|
const { connect } = require("devtools/client/shared/vendor/react-redux");
|
||||||
const actions = require("../actions");
|
const actions = require("devtools/client/shared/components/reps/object-inspector/actions");
|
||||||
|
|
||||||
const selectors = require("../reducer");
|
const selectors = require("devtools/client/shared/components/reps/object-inspector/reducer");
|
||||||
|
|
||||||
import Components from "devtools-components";
|
import Components from "devtools-components";
|
||||||
const Tree = createFactory(Components.Tree);
|
const Tree = createFactory(Components.Tree);
|
||||||
require("./ObjectInspector.css");
|
require("devtools/client/shared/components/reps/object-inspector/components/ObjectInspector.css");
|
||||||
|
|
||||||
const ObjectInspectorItem = createFactory(require("./ObjectInspectorItem"));
|
const ObjectInspectorItem = createFactory(require("devtools/client/shared/components/reps/object-inspector/components/ObjectInspectorItem"));
|
||||||
|
|
||||||
const Utils = require("../utils/index");
|
const Utils = require("devtools/client/shared/components/reps/object-inspector/utils/index");
|
||||||
const { renderRep, shouldRenderRootsInReps } = Utils;
|
const { renderRep, shouldRenderRootsInReps } = Utils;
|
||||||
const {
|
const {
|
||||||
getChildrenWithEvaluations,
|
getChildrenWithEvaluations,
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,11 @@ const dom = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
const Services = require("Services");
|
const Services = require("Services");
|
||||||
const isMacOS = Services.appinfo.OS === "Darwin";
|
const isMacOS = Services.appinfo.OS === "Darwin";
|
||||||
|
|
||||||
const { MODE } = require("../../reps/constants");
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
|
||||||
const Utils = require("../utils/index");
|
const Utils = require("devtools/client/shared/components/reps/object-inspector/utils/index");
|
||||||
|
|
||||||
const {
|
const {
|
||||||
getValue,
|
getValue,
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const ObjectInspector = require("./components/ObjectInspector");
|
const ObjectInspector = require("devtools/client/shared/components/reps/object-inspector/components/ObjectInspector");
|
||||||
const utils = require("./utils/index");
|
const utils = require("devtools/client/shared/components/reps/object-inspector/utils/index");
|
||||||
const reducer = require("./reducer");
|
const reducer = require("devtools/client/shared/components/reps/object-inspector/reducer");
|
||||||
const actions = require("./actions");
|
const actions = require("devtools/client/shared/components/reps/object-inspector/actions");
|
||||||
|
|
||||||
module.exports = { ObjectInspector, utils, actions, reducer };
|
module.exports = { ObjectInspector, utils, actions, reducer };
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
/* Any copyright is dedicated to the Public Domain.
|
||||||
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
env: {
|
||||||
|
jest: true,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { mountObjectInspector } = require("../test-utils");
|
const { mountObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
const { mount } = require("enzyme");
|
const { mount } = require("enzyme");
|
||||||
const { createNode, NODE_TYPES } = require("../../utils/node");
|
const { createNode, NODE_TYPES } = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
const repsPath = "../../../reps";
|
const repsPath = "../../../reps";
|
||||||
const { MODE } = require(`${repsPath}/constants`);
|
const { MODE } = require(`${repsPath}/constants`);
|
||||||
const { Rep } = require(`${repsPath}/rep`);
|
const { Rep } = require(`${repsPath}/rep`);
|
||||||
|
|
@ -12,8 +12,8 @@ const {
|
||||||
formatObjectInspector,
|
formatObjectInspector,
|
||||||
waitForDispatch,
|
waitForDispatch,
|
||||||
waitForLoadedProperties,
|
waitForLoadedProperties,
|
||||||
} = require("../test-utils");
|
} = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
const ObjectFront = require("../__mocks__/object-front");
|
const ObjectFront = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/object-front");
|
||||||
const gripRepStubs = require(`${repsPath}/stubs/grip`);
|
const gripRepStubs = require(`${repsPath}/stubs/grip`);
|
||||||
|
|
||||||
function generateDefaults(overrides) {
|
function generateDefaults(overrides) {
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const ObjectFront = require("../__mocks__/object-front");
|
const ObjectFront = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/object-front");
|
||||||
const { mountObjectInspector } = require("../test-utils");
|
const { mountObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
|
|
||||||
function generateDefaults(overrides) {
|
function generateDefaults(overrides) {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@
|
||||||
|
|
||||||
/* global jest */
|
/* global jest */
|
||||||
|
|
||||||
const { mountObjectInspector } = require("../test-utils");
|
const { mountObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
const ObjectFront = require("../__mocks__/object-front");
|
const ObjectFront = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/object-front");
|
||||||
const { LongStringFront } = require("../__mocks__/string-front");
|
const { LongStringFront } = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/string-front");
|
||||||
|
|
||||||
const repsPath = "../../../reps";
|
const repsPath = "../../../reps";
|
||||||
const longStringStubs = require(`${repsPath}/stubs/long-string`);
|
const longStringStubs = require(`${repsPath}/stubs/long-string`);
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,14 @@
|
||||||
|
|
||||||
/* global jest */
|
/* global jest */
|
||||||
|
|
||||||
const { mountObjectInspector } = require("../test-utils");
|
const { mountObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
const ObjectFront = require("../__mocks__/object-front");
|
const ObjectFront = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/object-front");
|
||||||
|
|
||||||
const {
|
const {
|
||||||
createNode,
|
createNode,
|
||||||
makeNodesForEntries,
|
makeNodesForEntries,
|
||||||
makeNumericalBuckets,
|
makeNumericalBuckets,
|
||||||
} = require("../../utils/node");
|
} = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
|
|
||||||
const repsPath = "../../../reps";
|
const repsPath = "../../../reps";
|
||||||
const gripRepStubs = require(`${repsPath}/stubs/grip`);
|
const gripRepStubs = require(`${repsPath}/stubs/grip`);
|
||||||
|
|
|
||||||
|
|
@ -4,16 +4,16 @@
|
||||||
|
|
||||||
/* global jest */
|
/* global jest */
|
||||||
|
|
||||||
const { mountObjectInspector } = require("../test-utils");
|
const { mountObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
const { MODE } = require("../../../reps/constants");
|
const { MODE } = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
const {
|
const {
|
||||||
formatObjectInspector,
|
formatObjectInspector,
|
||||||
waitForDispatch,
|
waitForDispatch,
|
||||||
waitForLoadedProperties,
|
waitForLoadedProperties,
|
||||||
} = require("../test-utils");
|
} = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
const gripMapRepStubs = require("../../../reps/stubs/grip-map");
|
const gripMapRepStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-map");
|
||||||
const mapStubs = require("../../stubs/map");
|
const mapStubs = require("devtools/client/shared/components/reps/object-inspector/stubs/map");
|
||||||
const ObjectFront = require("../__mocks__/object-front");
|
const ObjectFront = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/object-front");
|
||||||
|
|
||||||
function generateDefaults(overrides) {
|
function generateDefaults(overrides) {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@
|
||||||
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
/* global jest */
|
/* global jest */
|
||||||
const { mountObjectInspector } = require("../test-utils");
|
const { mountObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
|
|
||||||
const gripRepStubs = require("../../../reps/stubs/grip");
|
const gripRepStubs = require("devtools/client/shared/components/reps/reps/stubs/grip");
|
||||||
const ObjectFront = require("../__mocks__/object-front");
|
const ObjectFront = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/object-front");
|
||||||
|
|
||||||
function generateDefaults(overrides) {
|
function generateDefaults(overrides) {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,22 @@
|
||||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
/* 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
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
const { mountObjectInspector } = require("../test-utils");
|
const { mountObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
|
|
||||||
const repsPath = "../../../reps";
|
const repsPath = "../../../reps";
|
||||||
const { MODE } = require(`${repsPath}/constants`);
|
const { MODE } = require(`${repsPath}/constants`);
|
||||||
const ObjectFront = require("../__mocks__/object-front");
|
const ObjectFront = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/object-front");
|
||||||
const gripRepStubs = require(`${repsPath}/stubs/grip`);
|
const gripRepStubs = require(`${repsPath}/stubs/grip`);
|
||||||
const gripPropertiesStubs = require("../../stubs/grip");
|
const gripPropertiesStubs = require("devtools/client/shared/components/reps/object-inspector/stubs/grip");
|
||||||
const {
|
const {
|
||||||
formatObjectInspector,
|
formatObjectInspector,
|
||||||
storeHasExactExpandedPaths,
|
storeHasExactExpandedPaths,
|
||||||
storeHasExpandedPath,
|
storeHasExpandedPath,
|
||||||
storeHasLoadedProperty,
|
storeHasLoadedProperty,
|
||||||
waitForDispatch,
|
waitForDispatch,
|
||||||
} = require("../test-utils");
|
} = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
const { createNode, NODE_TYPES } = require("../../utils/node");
|
const { createNode, NODE_TYPES } = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
const { getExpandedPaths } = require("../../reducer");
|
const { getExpandedPaths } = require("devtools/client/shared/components/reps/object-inspector/reducer");
|
||||||
|
|
||||||
const protoStub = {
|
const protoStub = {
|
||||||
prototype: {
|
prototype: {
|
||||||
|
|
@ -48,7 +48,7 @@ function generateDefaults(overrides) {
|
||||||
...overrides,
|
...overrides,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const { LongStringFront } = require("../__mocks__/string-front");
|
const { LongStringFront } = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/string-front");
|
||||||
|
|
||||||
function getClient(overrides = {}) {
|
function getClient(overrides = {}) {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { mountObjectInspector } = require("../test-utils");
|
const { mountObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
const { MODE } = require("../../../reps/constants");
|
const { MODE } = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
const { createNode } = require("../../utils/node");
|
const { createNode } = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
|
|
||||||
const functionStubs = require("../../../reps/stubs/function");
|
const functionStubs = require("devtools/client/shared/components/reps/reps/stubs/function");
|
||||||
const ObjectFront = require("../__mocks__/object-front");
|
const ObjectFront = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/object-front");
|
||||||
|
|
||||||
function generateDefaults(overrides) {
|
function generateDefaults(overrides) {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,16 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { MODE } = require("../../../reps/constants");
|
const { MODE } = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
const {
|
const {
|
||||||
formatObjectInspector,
|
formatObjectInspector,
|
||||||
waitForLoadedProperties,
|
waitForLoadedProperties,
|
||||||
mountObjectInspector,
|
mountObjectInspector,
|
||||||
} = require("../test-utils");
|
} = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
|
|
||||||
const { makeNodesForProperties } = require("../../utils/node");
|
const { makeNodesForProperties } = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
const accessorStubs = require("../../../reps/stubs/accessor");
|
const accessorStubs = require("devtools/client/shared/components/reps/reps/stubs/accessor");
|
||||||
const ObjectFront = require("../__mocks__/object-front");
|
const ObjectFront = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/object-front");
|
||||||
|
|
||||||
function generateDefaults(overrides) {
|
function generateDefaults(overrides) {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { mountObjectInspector } = require("../test-utils");
|
const { mountObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
const repsPath = "../../../reps";
|
const repsPath = "../../../reps";
|
||||||
const { MODE } = require(`${repsPath}/constants`);
|
const { MODE } = require(`${repsPath}/constants`);
|
||||||
|
|
||||||
const { formatObjectInspector, waitForDispatch } = require("../test-utils");
|
const { formatObjectInspector, waitForDispatch } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
const ObjectFront = require("../__mocks__/object-front");
|
const ObjectFront = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/object-front");
|
||||||
const gripRepStubs = require(`${repsPath}/stubs/grip`);
|
const gripRepStubs = require(`${repsPath}/stubs/grip`);
|
||||||
|
|
||||||
function generateDefaults(overrides) {
|
function generateDefaults(overrides) {
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
|
|
||||||
/* global jest */
|
/* global jest */
|
||||||
|
|
||||||
const { mountObjectInspector } = require("../test-utils");
|
const { mountObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
const gripRepStubs = require("../../../reps/stubs/grip");
|
const gripRepStubs = require("devtools/client/shared/components/reps/reps/stubs/grip");
|
||||||
const ObjectFront = require("../__mocks__/object-front");
|
const ObjectFront = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/object-front");
|
||||||
|
|
||||||
const { formatObjectInspector } = require("../test-utils");
|
const { formatObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
|
|
||||||
function generateDefaults(overrides) {
|
function generateDefaults(overrides) {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -3,15 +3,15 @@
|
||||||
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
/* global jest */
|
/* global jest */
|
||||||
const { mountObjectInspector } = require("../test-utils");
|
const { mountObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
|
|
||||||
const { MODE } = require("../../../reps/constants");
|
const { MODE } = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
const gripStubs = require("../../../reps/stubs/grip");
|
const gripStubs = require("devtools/client/shared/components/reps/reps/stubs/grip");
|
||||||
const stub = gripStubs.get("testProxy");
|
const stub = gripStubs.get("testProxy");
|
||||||
const proxySlots = gripStubs.get("testProxySlots");
|
const proxySlots = gripStubs.get("testProxySlots");
|
||||||
const { formatObjectInspector } = require("../test-utils");
|
const { formatObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
|
|
||||||
const ObjectFront = require("../__mocks__/object-front");
|
const ObjectFront = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/object-front");
|
||||||
function generateDefaults(overrides) {
|
function generateDefaults(overrides) {
|
||||||
return {
|
return {
|
||||||
roots: [
|
roots: [
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@
|
||||||
|
|
||||||
/* global jest */
|
/* global jest */
|
||||||
|
|
||||||
const { mountObjectInspector } = require("../test-utils");
|
const { mountObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
const ObjectFront = require("../__mocks__/object-front");
|
const ObjectFront = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/object-front");
|
||||||
const { LongStringFront } = require("../__mocks__/string-front");
|
const { LongStringFront } = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/string-front");
|
||||||
|
|
||||||
const repsPath = "../../../reps";
|
const repsPath = "../../../reps";
|
||||||
const longStringStubs = require(`${repsPath}/stubs/long-string`);
|
const longStringStubs = require(`${repsPath}/stubs/long-string`);
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { createNode } = require("../../utils/node");
|
const { createNode } = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
const { waitForDispatch, mountObjectInspector } = require("../test-utils");
|
const { waitForDispatch, mountObjectInspector } = require("devtools/client/shared/components/reps/object-inspector/tests/test-utils");
|
||||||
|
|
||||||
const gripWindowStubs = require("../../../reps/stubs/window");
|
const gripWindowStubs = require("devtools/client/shared/components/reps/reps/stubs/window");
|
||||||
const ObjectFront = require("../__mocks__/object-front");
|
const ObjectFront = require("devtools/client/shared/components/reps/object-inspector/tests/__mocks__/object-front");
|
||||||
const windowNode = createNode({
|
const windowNode = createNode({
|
||||||
name: "window",
|
name: "window",
|
||||||
contents: { value: gripWindowStubs.get("Window") },
|
contents: { value: gripWindowStubs.get("Window") },
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@ const { createFactory } = require("devtools/client/shared/vendor/react");
|
||||||
const { Provider } = require("devtools/client/shared/vendor/react-redux");
|
const { Provider } = require("devtools/client/shared/vendor/react-redux");
|
||||||
const { combineReducers } = require("devtools/client/shared/vendor/redux");
|
const { combineReducers } = require("devtools/client/shared/vendor/redux");
|
||||||
|
|
||||||
const { thunk } = require("../../shared/redux/middleware/thunk");
|
const { thunk } = require("devtools/client/shared/components/reps/shared/redux/middleware/thunk");
|
||||||
const {
|
const {
|
||||||
waitUntilService,
|
waitUntilService,
|
||||||
} = require("../../shared/redux/middleware/waitUntilService");
|
} = require("devtools/client/shared/components/reps/shared/redux/middleware/waitUntilService");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Redux store utils
|
* Redux store utils
|
||||||
|
|
@ -20,19 +20,19 @@ const {
|
||||||
|
|
||||||
import { createStore, applyMiddleware } from "redux";
|
import { createStore, applyMiddleware } from "redux";
|
||||||
|
|
||||||
const objectInspector = require("../index");
|
const objectInspector = require("devtools/client/shared/components/reps/object-inspector/index");
|
||||||
const {
|
const {
|
||||||
getLoadedProperties,
|
getLoadedProperties,
|
||||||
getLoadedPropertyKeys,
|
getLoadedPropertyKeys,
|
||||||
getExpandedPaths,
|
getExpandedPaths,
|
||||||
getExpandedPathKeys,
|
getExpandedPathKeys,
|
||||||
} = require("../reducer");
|
} = require("devtools/client/shared/components/reps/object-inspector/reducer");
|
||||||
|
|
||||||
const ObjectInspector = createFactory(objectInspector.ObjectInspector);
|
const ObjectInspector = createFactory(objectInspector.ObjectInspector);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
WAIT_UNTIL_TYPE,
|
WAIT_UNTIL_TYPE,
|
||||||
} = require("../../shared/redux/middleware/waitUntilService");
|
} = require("devtools/client/shared/components/reps/shared/redux/middleware/waitUntilService");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Takes an Enzyme wrapper (obtained with mount/shallow/…) and
|
* Takes an Enzyme wrapper (obtained with mount/shallow/…) and
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { createNode, NODE_TYPES } = require("../../utils/node");
|
const { createNode, NODE_TYPES } = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
|
|
||||||
describe("createNode", () => {
|
describe("createNode", () => {
|
||||||
it("returns null when contents is undefined", () => {
|
it("returns null when contents is undefined", () => {
|
||||||
|
|
|
||||||
|
|
@ -2,19 +2,19 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const accessorStubs = require("../../../reps/stubs/accessor");
|
const accessorStubs = require("devtools/client/shared/components/reps/reps/stubs/accessor");
|
||||||
const performanceStubs = require("../../stubs/performance");
|
const performanceStubs = require("devtools/client/shared/components/reps/object-inspector/stubs/performance");
|
||||||
const gripMapStubs = require("../../../reps/stubs/grip-map");
|
const gripMapStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-map");
|
||||||
const gripArrayStubs = require("../../../reps/stubs/grip-array");
|
const gripArrayStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-array");
|
||||||
const gripMapEntryStubs = require("../../../reps/stubs/grip-map-entry");
|
const gripMapEntryStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-map-entry");
|
||||||
const gripStubs = require("../../../reps/stubs/grip");
|
const gripStubs = require("devtools/client/shared/components/reps/reps/stubs/grip");
|
||||||
|
|
||||||
const {
|
const {
|
||||||
createNode,
|
createNode,
|
||||||
getChildren,
|
getChildren,
|
||||||
getValue,
|
getValue,
|
||||||
makeNodesForProperties,
|
makeNodesForProperties,
|
||||||
} = require("../../utils/node");
|
} = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
|
|
||||||
function createRootNodeWithAccessorProperty(accessorStub) {
|
function createRootNodeWithAccessorProperty(accessorStub) {
|
||||||
const node = { name: "root", path: "rootpath" };
|
const node = { name: "root", path: "rootpath" };
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ const {
|
||||||
getClosestGripNode,
|
getClosestGripNode,
|
||||||
makeNodesForEntries,
|
makeNodesForEntries,
|
||||||
makeNumericalBuckets,
|
makeNumericalBuckets,
|
||||||
} = require("../../utils/node");
|
} = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
|
|
||||||
const repsPath = "../../../reps";
|
const repsPath = "../../../reps";
|
||||||
const gripRepStubs = require(`${repsPath}/stubs/grip`);
|
const gripRepStubs = require(`${repsPath}/stubs/grip`);
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { getValue } = require("../../utils/node");
|
const { getValue } = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
|
|
||||||
describe("getValue", () => {
|
describe("getValue", () => {
|
||||||
it("get the value from contents.value", () => {
|
it("get the value from contents.value", () => {
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ const {
|
||||||
nodeIsEntries,
|
nodeIsEntries,
|
||||||
nodeIsMapEntry,
|
nodeIsMapEntry,
|
||||||
nodeIsPrototype,
|
nodeIsPrototype,
|
||||||
} = require("../../utils/node");
|
} = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
const gripArrayStubs = require("../../../reps/stubs/grip-array");
|
const gripArrayStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-array");
|
||||||
|
|
||||||
const root = {
|
const root = {
|
||||||
path: "root",
|
path: "root",
|
||||||
|
|
@ -227,7 +227,7 @@ describe("makeNodesForProperties", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("object with entries", () => {
|
it("object with entries", () => {
|
||||||
const gripMapStubs = require("../../../reps/stubs/grip-map");
|
const gripMapStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-map");
|
||||||
|
|
||||||
const mapNode = createNode({
|
const mapNode = createNode({
|
||||||
name: "map",
|
name: "map",
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { createNode, makeNumericalBuckets } = require("../../utils/node");
|
const { createNode, makeNumericalBuckets } = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
const gripArrayStubs = require("../../../reps/stubs/grip-array");
|
const gripArrayStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-array");
|
||||||
|
|
||||||
describe("makeNumericalBuckets", () => {
|
describe("makeNumericalBuckets", () => {
|
||||||
it("handles simple numerical buckets", () => {
|
it("handles simple numerical buckets", () => {
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const gripArrayStubs = require("../../../reps/stubs/grip-array");
|
const gripArrayStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-array");
|
||||||
const gripMapStubs = require("../../../reps/stubs/grip-map");
|
const gripMapStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-map");
|
||||||
|
|
||||||
const { createNode, nodeHasEntries } = require("../../utils/node");
|
const { createNode, nodeHasEntries } = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
|
|
||||||
const createRootNode = value =>
|
const createRootNode = value =>
|
||||||
createNode({ name: "root", contents: { value } });
|
createNode({ name: "root", contents: { value } });
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const gripWindowStubs = require("../../../reps/stubs/window");
|
const gripWindowStubs = require("devtools/client/shared/components/reps/reps/stubs/window");
|
||||||
|
|
||||||
const { createNode, nodeIsWindow } = require("../../utils/node");
|
const { createNode, nodeIsWindow } = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
|
|
||||||
const createRootNode = value =>
|
const createRootNode = value =>
|
||||||
createNode({ name: "root", contents: { value } });
|
createNode({ name: "root", contents: { value } });
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ const {
|
||||||
createNode,
|
createNode,
|
||||||
makeNodesForEntries,
|
makeNodesForEntries,
|
||||||
nodeSupportsNumericalBucketing,
|
nodeSupportsNumericalBucketing,
|
||||||
} = require("../../utils/node");
|
} = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
|
|
||||||
const createRootNode = stub =>
|
const createRootNode = stub =>
|
||||||
createNode({
|
createNode({
|
||||||
|
|
@ -14,8 +14,8 @@ const createRootNode = stub =>
|
||||||
contents: { value: stub },
|
contents: { value: stub },
|
||||||
});
|
});
|
||||||
|
|
||||||
const gripArrayStubs = require("../../../reps/stubs/grip-array");
|
const gripArrayStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-array");
|
||||||
const gripMapStubs = require("../../../reps/stubs/grip-map");
|
const gripMapStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-map");
|
||||||
|
|
||||||
describe("nodeSupportsNumericalBucketing", () => {
|
describe("nodeSupportsNumericalBucketing", () => {
|
||||||
it("returns true for Arrays", () => {
|
it("returns true for Arrays", () => {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
const {
|
const {
|
||||||
makeNodesForPromiseProperties,
|
makeNodesForPromiseProperties,
|
||||||
nodeIsPromise,
|
nodeIsPromise,
|
||||||
} = require("../../utils/node");
|
} = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
|
|
||||||
describe("promises utils function", () => {
|
describe("promises utils function", () => {
|
||||||
it("is promise", () => {
|
it("is promise", () => {
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,14 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const Utils = require("../../utils/index");
|
const Utils = require("devtools/client/shared/components/reps/object-inspector/utils/index");
|
||||||
const { createNode, getChildren, makeNodesForEntries } = Utils.node;
|
const { createNode, getChildren, makeNodesForEntries } = Utils.node;
|
||||||
|
|
||||||
const { shouldLoadItemEntries } = Utils.loadProperties;
|
const { shouldLoadItemEntries } = Utils.loadProperties;
|
||||||
|
|
||||||
const gripMapStubs = require("../../../reps/stubs/grip-map");
|
const gripMapStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-map");
|
||||||
const gripArrayStubs = require("../../../reps/stubs/grip-array");
|
const gripArrayStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-array");
|
||||||
const gripStubs = require("../../../reps/stubs/grip");
|
const gripStubs = require("devtools/client/shared/components/reps/reps/stubs/grip");
|
||||||
|
|
||||||
describe("shouldLoadItemEntries", () => {
|
describe("shouldLoadItemEntries", () => {
|
||||||
it("returns true for an entries node", () => {
|
it("returns true for an entries node", () => {
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const Utils = require("../../utils/index");
|
const Utils = require("devtools/client/shared/components/reps/object-inspector/utils/index");
|
||||||
const { createNode } = Utils.node;
|
const { createNode } = Utils.node;
|
||||||
const { shouldLoadItemFullText } = Utils.loadProperties;
|
const { shouldLoadItemFullText } = Utils.loadProperties;
|
||||||
|
|
||||||
const longStringStubs = require("../../../reps/stubs/long-string");
|
const longStringStubs = require("devtools/client/shared/components/reps/reps/stubs/long-string");
|
||||||
const symbolStubs = require("../../../reps/stubs/symbol");
|
const symbolStubs = require("devtools/client/shared/components/reps/reps/stubs/symbol");
|
||||||
|
|
||||||
describe("shouldLoadItemFullText", () => {
|
describe("shouldLoadItemFullText", () => {
|
||||||
it("returns true for a longString node with unloaded full text", () => {
|
it("returns true for a longString node with unloaded full text", () => {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const Utils = require("../../utils/index");
|
const Utils = require("devtools/client/shared/components/reps/object-inspector/utils/index");
|
||||||
const {
|
const {
|
||||||
createNode,
|
createNode,
|
||||||
createGetterNode,
|
createGetterNode,
|
||||||
|
|
@ -14,12 +14,12 @@ const {
|
||||||
|
|
||||||
const { shouldLoadItemIndexedProperties } = Utils.loadProperties;
|
const { shouldLoadItemIndexedProperties } = Utils.loadProperties;
|
||||||
|
|
||||||
const GripMapEntryRep = require("../../../reps/grip-map-entry");
|
const GripMapEntryRep = require("devtools/client/shared/components/reps/reps/grip-map-entry");
|
||||||
const accessorStubs = require("../../../reps/stubs/accessor");
|
const accessorStubs = require("devtools/client/shared/components/reps/reps/stubs/accessor");
|
||||||
const gripMapStubs = require("../../../reps/stubs/grip-map");
|
const gripMapStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-map");
|
||||||
const gripArrayStubs = require("../../../reps/stubs/grip-array");
|
const gripArrayStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-array");
|
||||||
const gripStubs = require("../../../reps/stubs/grip");
|
const gripStubs = require("devtools/client/shared/components/reps/reps/stubs/grip");
|
||||||
const windowStubs = require("../../../reps/stubs/window");
|
const windowStubs = require("devtools/client/shared/components/reps/reps/stubs/window");
|
||||||
|
|
||||||
describe("shouldLoadItemIndexedProperties", () => {
|
describe("shouldLoadItemIndexedProperties", () => {
|
||||||
it("returns true for an array", () => {
|
it("returns true for an array", () => {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const Utils = require("../../utils/index");
|
const Utils = require("devtools/client/shared/components/reps/object-inspector/utils/index");
|
||||||
const {
|
const {
|
||||||
createNode,
|
createNode,
|
||||||
createGetterNode,
|
createGetterNode,
|
||||||
|
|
@ -14,12 +14,12 @@ const {
|
||||||
|
|
||||||
const { shouldLoadItemNonIndexedProperties } = Utils.loadProperties;
|
const { shouldLoadItemNonIndexedProperties } = Utils.loadProperties;
|
||||||
|
|
||||||
const GripMapEntryRep = require("../../../reps/grip-map-entry");
|
const GripMapEntryRep = require("devtools/client/shared/components/reps/reps/grip-map-entry");
|
||||||
const accessorStubs = require("../../../reps/stubs/accessor");
|
const accessorStubs = require("devtools/client/shared/components/reps/reps/stubs/accessor");
|
||||||
const gripMapStubs = require("../../../reps/stubs/grip-map");
|
const gripMapStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-map");
|
||||||
const gripArrayStubs = require("../../../reps/stubs/grip-array");
|
const gripArrayStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-array");
|
||||||
const gripStubs = require("../../../reps/stubs/grip");
|
const gripStubs = require("devtools/client/shared/components/reps/reps/stubs/grip");
|
||||||
const windowStubs = require("../../../reps/stubs/window");
|
const windowStubs = require("devtools/client/shared/components/reps/reps/stubs/window");
|
||||||
|
|
||||||
describe("shouldLoadItemNonIndexedProperties", () => {
|
describe("shouldLoadItemNonIndexedProperties", () => {
|
||||||
it("returns true for an array", () => {
|
it("returns true for an array", () => {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const Utils = require("../../utils/index");
|
const Utils = require("devtools/client/shared/components/reps/object-inspector/utils/index");
|
||||||
const {
|
const {
|
||||||
createNode,
|
createNode,
|
||||||
createGetterNode,
|
createGetterNode,
|
||||||
|
|
@ -14,12 +14,12 @@ const {
|
||||||
|
|
||||||
const { shouldLoadItemPrototype } = Utils.loadProperties;
|
const { shouldLoadItemPrototype } = Utils.loadProperties;
|
||||||
|
|
||||||
const GripMapEntryRep = require("../../../reps/grip-map-entry");
|
const GripMapEntryRep = require("devtools/client/shared/components/reps/reps/grip-map-entry");
|
||||||
const accessorStubs = require("../../../reps/stubs/accessor");
|
const accessorStubs = require("devtools/client/shared/components/reps/reps/stubs/accessor");
|
||||||
const gripMapStubs = require("../../../reps/stubs/grip-map");
|
const gripMapStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-map");
|
||||||
const gripArrayStubs = require("../../../reps/stubs/grip-array");
|
const gripArrayStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-array");
|
||||||
const gripStubs = require("../../../reps/stubs/grip");
|
const gripStubs = require("devtools/client/shared/components/reps/reps/stubs/grip");
|
||||||
const windowStubs = require("../../../reps/stubs/window");
|
const windowStubs = require("devtools/client/shared/components/reps/reps/stubs/window");
|
||||||
|
|
||||||
describe("shouldLoadItemPrototype", () => {
|
describe("shouldLoadItemPrototype", () => {
|
||||||
it("returns true for an array", () => {
|
it("returns true for an array", () => {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const Utils = require("../../utils/index");
|
const Utils = require("devtools/client/shared/components/reps/object-inspector/utils/index");
|
||||||
const {
|
const {
|
||||||
createNode,
|
createNode,
|
||||||
createGetterNode,
|
createGetterNode,
|
||||||
|
|
@ -14,12 +14,12 @@ const {
|
||||||
|
|
||||||
const { shouldLoadItemSymbols } = Utils.loadProperties;
|
const { shouldLoadItemSymbols } = Utils.loadProperties;
|
||||||
|
|
||||||
const GripMapEntryRep = require("../../../reps/grip-map-entry");
|
const GripMapEntryRep = require("devtools/client/shared/components/reps/reps/grip-map-entry");
|
||||||
const accessorStubs = require("../../../reps/stubs/accessor");
|
const accessorStubs = require("devtools/client/shared/components/reps/reps/stubs/accessor");
|
||||||
const gripMapStubs = require("../../../reps/stubs/grip-map");
|
const gripMapStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-map");
|
||||||
const gripArrayStubs = require("../../../reps/stubs/grip-array");
|
const gripArrayStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-array");
|
||||||
const gripStubs = require("../../../reps/stubs/grip");
|
const gripStubs = require("devtools/client/shared/components/reps/reps/stubs/grip");
|
||||||
const windowStubs = require("../../../reps/stubs/window");
|
const windowStubs = require("devtools/client/shared/components/reps/reps/stubs/window");
|
||||||
|
|
||||||
describe("shouldLoadItemSymbols", () => {
|
describe("shouldLoadItemSymbols", () => {
|
||||||
it("returns true for an array", () => {
|
it("returns true for an array", () => {
|
||||||
|
|
|
||||||
|
|
@ -2,17 +2,17 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const Utils = require("../../utils/index");
|
const Utils = require("devtools/client/shared/components/reps/object-inspector/utils/index");
|
||||||
const { shouldRenderRootsInReps } = Utils;
|
const { shouldRenderRootsInReps } = Utils;
|
||||||
|
|
||||||
const nullStubs = require("../../../reps/stubs/null");
|
const nullStubs = require("devtools/client/shared/components/reps/reps/stubs/null");
|
||||||
const numberStubs = require("../../../reps/stubs/number");
|
const numberStubs = require("devtools/client/shared/components/reps/reps/stubs/number");
|
||||||
const undefinedStubs = require("../../../reps/stubs/undefined");
|
const undefinedStubs = require("devtools/client/shared/components/reps/reps/stubs/undefined");
|
||||||
const gripStubs = require("../../../reps/stubs/grip");
|
const gripStubs = require("devtools/client/shared/components/reps/reps/stubs/grip");
|
||||||
const gripArrayStubs = require("../../../reps/stubs/grip-array");
|
const gripArrayStubs = require("devtools/client/shared/components/reps/reps/stubs/grip-array");
|
||||||
const symbolStubs = require("../../../reps/stubs/symbol");
|
const symbolStubs = require("devtools/client/shared/components/reps/reps/stubs/symbol");
|
||||||
const errorStubs = require("../../../reps/stubs/error");
|
const errorStubs = require("devtools/client/shared/components/reps/reps/stubs/error");
|
||||||
const bigIntStubs = require("../../../reps/stubs/big-int");
|
const bigIntStubs = require("devtools/client/shared/components/reps/reps/stubs/big-int");
|
||||||
|
|
||||||
describe("shouldRenderRootsInReps", () => {
|
describe("shouldRenderRootsInReps", () => {
|
||||||
it("returns true for a string", () => {
|
it("returns true for a string", () => {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { getValue, nodeHasFullText } = require("../utils/node");
|
const { getValue, nodeHasFullText } = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
|
|
||||||
async function enumIndexedProperties(objectFront, start, end) {
|
async function enumIndexedProperties(objectFront, start, end) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,16 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const client = require("./client");
|
const client = require("devtools/client/shared/components/reps/object-inspector/utils/client");
|
||||||
const loadProperties = require("./load-properties");
|
const loadProperties = require("devtools/client/shared/components/reps/object-inspector/utils/load-properties");
|
||||||
const node = require("./node");
|
const node = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
const { nodeIsError, nodeIsPrimitive } = node;
|
const { nodeIsError, nodeIsPrimitive } = node;
|
||||||
const selection = require("./selection");
|
const selection = require("devtools/client/shared/components/reps/object-inspector/utils/selection");
|
||||||
|
|
||||||
const { MODE } = require("../../reps/constants");
|
const { MODE } = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
const {
|
const {
|
||||||
REPS: { Rep, Grip },
|
REPS: { Rep, Grip },
|
||||||
} = require("../../reps/rep");
|
} = require("devtools/client/shared/components/reps/reps/rep");
|
||||||
|
|
||||||
function shouldRenderRootsInReps(roots, props = {}) {
|
function shouldRenderRootsInReps(roots, props = {}) {
|
||||||
if (roots.length !== 1) {
|
if (roots.length !== 1) {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ const {
|
||||||
enumSymbols,
|
enumSymbols,
|
||||||
getFullText,
|
getFullText,
|
||||||
getProxySlots,
|
getProxySlots,
|
||||||
} = require("./client");
|
} = require("devtools/client/shared/components/reps/object-inspector/utils/client");
|
||||||
|
|
||||||
const {
|
const {
|
||||||
getClosestGripNode,
|
getClosestGripNode,
|
||||||
|
|
@ -27,7 +27,7 @@ const {
|
||||||
nodeIsProxy,
|
nodeIsProxy,
|
||||||
nodeNeedsNumericalBuckets,
|
nodeNeedsNumericalBuckets,
|
||||||
nodeIsLongString,
|
nodeIsLongString,
|
||||||
} = require("./node");
|
} = require("devtools/client/shared/components/reps/object-inspector/utils/node");
|
||||||
|
|
||||||
function loadItemProperties(item, client, loadedProperties) {
|
function loadItemProperties(item, client, loadedProperties) {
|
||||||
const gripItem = getClosestGripNode(item);
|
const gripItem = getClosestGripNode(item);
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,14 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { maybeEscapePropertyName } = require("../../reps/rep-utils");
|
const { maybeEscapePropertyName } = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
const ArrayRep = require("../../reps/array");
|
const ArrayRep = require("devtools/client/shared/components/reps/reps/array");
|
||||||
const GripArrayRep = require("../../reps/grip-array");
|
const GripArrayRep = require("devtools/client/shared/components/reps/reps/grip-array");
|
||||||
const GripMap = require("../../reps/grip-map");
|
const GripMap = require("devtools/client/shared/components/reps/reps/grip-map");
|
||||||
const GripMapEntryRep = require("../../reps/grip-map-entry");
|
const GripMapEntryRep = require("devtools/client/shared/components/reps/reps/grip-map-entry");
|
||||||
const ErrorRep = require("../../reps/error");
|
const ErrorRep = require("devtools/client/shared/components/reps/reps/error");
|
||||||
const BigIntRep = require("../../reps/big-int");
|
const BigIntRep = require("devtools/client/shared/components/reps/reps/big-int");
|
||||||
const { isLongString } = require("../../reps/string");
|
const { isLongString } = require("devtools/client/shared/components/reps/reps/string");
|
||||||
|
|
||||||
const MAX_NUMERICAL_PROPERTIES = 100;
|
const MAX_NUMERICAL_PROPERTIES = 100;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// ReactJS
|
// ReactJS
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const {
|
const {
|
||||||
|
|
@ -10,8 +12,13 @@ const {
|
||||||
} = require("devtools/client/shared/vendor/react-dom-factories");
|
} = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
const { isGrip, wrapRender } = require("./rep-utils");
|
const {
|
||||||
const { rep: StringRep } = require("./string");
|
isGrip,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
const {
|
||||||
|
rep: StringRep,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/string");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders Accessible object.
|
* Renders Accessible object.
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,20 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const {
|
const {
|
||||||
button,
|
button,
|
||||||
span,
|
span,
|
||||||
} = require("devtools/client/shared/vendor/react-dom-factories");
|
} = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { wrapRender } = require("./rep-utils");
|
const {
|
||||||
const { MODE } = require("./constants");
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders an object. An object is represented by a list of its
|
* Renders an object. An object is represented by a list of its
|
||||||
|
|
@ -31,7 +37,10 @@ function Accessor(props) {
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
if (evaluation) {
|
if (evaluation) {
|
||||||
const { Rep, Grip } = require("./rep");
|
const {
|
||||||
|
Rep,
|
||||||
|
Grip,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep");
|
||||||
return span(
|
return span(
|
||||||
{
|
{
|
||||||
className: "objectBox objectBox-accessor objectTitle",
|
className: "objectBox objectBox-accessor objectTitle",
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,17 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { wrapRender } = require("./rep-utils");
|
const {
|
||||||
const { MODE } = require("./constants");
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
|
||||||
const ModePropType = PropTypes.oneOf(
|
const ModePropType = PropTypes.oneOf(
|
||||||
// @TODO Change this to Object.values when supported in Node's version of V8
|
// @TODO Change this to Object.values when supported in Node's version of V8
|
||||||
|
|
@ -125,7 +131,7 @@ ItemRep.propTypes = {
|
||||||
};
|
};
|
||||||
|
|
||||||
function ItemRep(props) {
|
function ItemRep(props) {
|
||||||
const { Rep } = require("./rep");
|
const { Rep } = require("devtools/client/shared/components/reps/reps/rep");
|
||||||
|
|
||||||
const { object, delim, mode } = props;
|
const { object, delim, mode } = props;
|
||||||
return span(
|
return span(
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,21 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// ReactJS
|
// ReactJS
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
// Reps
|
// Reps
|
||||||
const { getGripType, isGrip, wrapRender } = require("./rep-utils");
|
const {
|
||||||
const { rep: StringRep } = require("./string");
|
getGripType,
|
||||||
|
isGrip,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
const {
|
||||||
|
rep: StringRep,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/string");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders DOM attribute
|
* Renders DOM attribute
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,16 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
|
|
||||||
const { getGripType, wrapRender } = require("./rep-utils");
|
const {
|
||||||
|
getGripType,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a BigInt Number
|
* Renders a BigInt Number
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,15 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
const { wrapRender } = require("./rep-utils");
|
const {
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a caption. This template is used by other components
|
* Renders a caption. This template is used by other components
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
@ -10,9 +12,11 @@ const {
|
||||||
cropString,
|
cropString,
|
||||||
cropMultipleLines,
|
cropMultipleLines,
|
||||||
wrapRender,
|
wrapRender,
|
||||||
} = require("./rep-utils");
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
const { MODE } = require("./constants");
|
const {
|
||||||
const nodeConstants = require("../shared/dom-node-constants");
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
const nodeConstants = require("devtools/client/shared/components/reps/shared/dom-node-constants");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders DOM comment node.
|
* Renders DOM comment node.
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
MODE: {
|
MODE: {
|
||||||
TINY: Symbol("TINY"),
|
TINY: Symbol("TINY"),
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,18 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// ReactJS
|
// ReactJS
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
// Reps
|
// Reps
|
||||||
const { getGripType, isGrip, wrapRender } = require("./rep-utils");
|
const {
|
||||||
|
getGripType,
|
||||||
|
isGrip,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to render JS built-in Date() object.
|
* Used to render JS built-in Date() object.
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,18 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// ReactJS
|
// ReactJS
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
// Reps
|
// Reps
|
||||||
const { getGripType, isGrip, wrapRender } = require("./rep-utils");
|
const {
|
||||||
|
getGripType,
|
||||||
|
isGrip,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders DOM documentType object.
|
* Renders DOM documentType object.
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// ReactJS
|
// ReactJS
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
@ -12,7 +14,7 @@ const {
|
||||||
isGrip,
|
isGrip,
|
||||||
getURLDisplayString,
|
getURLDisplayString,
|
||||||
wrapRender,
|
wrapRender,
|
||||||
} = require("./rep-utils");
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders DOM document object.
|
* Renders DOM document object.
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// ReactJS
|
// ReactJS
|
||||||
const {
|
const {
|
||||||
button,
|
button,
|
||||||
|
|
@ -10,9 +12,17 @@ const {
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
const { isGrip, wrapRender } = require("./rep-utils");
|
const {
|
||||||
const { rep: StringRep, isLongString } = require("./string");
|
isGrip,
|
||||||
const { MODE } = require("./constants");
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
const {
|
||||||
|
rep: StringRep,
|
||||||
|
isLongString,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/string");
|
||||||
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
const nodeConstants = require("devtools/shared/dom-node-constants");
|
const nodeConstants = require("devtools/shared/dom-node-constants");
|
||||||
|
|
||||||
const MAX_ATTRIBUTE_LENGTH = 50;
|
const MAX_ATTRIBUTE_LENGTH = 50;
|
||||||
|
|
|
||||||
|
|
@ -2,15 +2,26 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// ReactJS
|
// ReactJS
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
const { isGrip, wrapRender } = require("./rep-utils");
|
const {
|
||||||
const { cleanFunctionName } = require("./function");
|
isGrip,
|
||||||
const { isLongString } = require("./string");
|
wrapRender,
|
||||||
const { MODE } = require("./constants");
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
const {
|
||||||
|
cleanFunctionName,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/function");
|
||||||
|
const {
|
||||||
|
isLongString,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/string");
|
||||||
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
|
||||||
const IGNORED_SOURCE_URLS = ["debugger eval code"];
|
const IGNORED_SOURCE_URLS = ["debugger eval code"];
|
||||||
|
|
||||||
|
|
@ -77,7 +88,7 @@ function ErrorRep(props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mode !== MODE.TINY) {
|
if (mode !== MODE.TINY) {
|
||||||
const { Rep } = require("./rep");
|
const { Rep } = require("devtools/client/shared/components/reps/reps/rep");
|
||||||
content.push(
|
content.push(
|
||||||
Rep({
|
Rep({
|
||||||
...props,
|
...props,
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,21 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// ReactJS
|
// ReactJS
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
|
|
||||||
// Reps
|
// Reps
|
||||||
const { isGrip, wrapRender } = require("./rep-utils");
|
const {
|
||||||
|
isGrip,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
const { MODE } = require("./constants");
|
const {
|
||||||
const { rep } = require("./grip");
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
const { rep } = require("devtools/client/shared/components/reps/reps/grip");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders DOM event objects.
|
* Renders DOM event objects.
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// ReactJS
|
// ReactJS
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const {
|
const {
|
||||||
|
|
@ -10,8 +12,15 @@ const {
|
||||||
} = require("devtools/client/shared/vendor/react-dom-factories");
|
} = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
// Reps
|
// Reps
|
||||||
const { getGripType, isGrip, cropString, wrapRender } = require("./rep-utils");
|
const {
|
||||||
const { MODE } = require("./constants");
|
getGripType,
|
||||||
|
isGrip,
|
||||||
|
cropString,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
|
||||||
const IGNORED_SOURCE_URLS = ["debugger eval code"];
|
const IGNORED_SOURCE_URLS = ["debugger eval code"];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,21 +2,29 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
const { lengthBubble } = require("../shared/grip-length-bubble");
|
const {
|
||||||
|
lengthBubble,
|
||||||
|
} = require("devtools/client/shared/components/reps/shared/grip-length-bubble");
|
||||||
const {
|
const {
|
||||||
interleave,
|
interleave,
|
||||||
getGripType,
|
getGripType,
|
||||||
isGrip,
|
isGrip,
|
||||||
wrapRender,
|
wrapRender,
|
||||||
ellipsisElement,
|
ellipsisElement,
|
||||||
} = require("./rep-utils");
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
const { MODE } = require("./constants");
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
|
||||||
const { ModePropType } = require("./array");
|
const {
|
||||||
|
ModePropType,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/array");
|
||||||
const DEFAULT_TITLE = "Array";
|
const DEFAULT_TITLE = "Array";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -157,7 +165,7 @@ function getPreviewItems(grip) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function arrayIterator(props, grip, max) {
|
function arrayIterator(props, grip, max) {
|
||||||
const { Rep } = require("./rep");
|
const { Rep } = require("devtools/client/shared/components/reps/reps/rep");
|
||||||
|
|
||||||
let items = [];
|
let items = [];
|
||||||
const gripLength = getLength(grip);
|
const gripLength = getLength(grip);
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,19 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
// Utils
|
// Utils
|
||||||
const { wrapRender } = require("./rep-utils");
|
const {
|
||||||
const PropRep = require("./prop-rep");
|
wrapRender,
|
||||||
const { MODE } = require("./constants");
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
const PropRep = require("devtools/client/shared/components/reps/reps/prop-rep");
|
||||||
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
/**
|
/**
|
||||||
* Renders an map entry. A map entry is represented by its key,
|
* Renders an map entry. A map entry is represented by its key,
|
||||||
* a column and its value.
|
* a column and its value.
|
||||||
|
|
|
||||||
|
|
@ -2,20 +2,28 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
const { lengthBubble } = require("../shared/grip-length-bubble");
|
const {
|
||||||
|
lengthBubble,
|
||||||
|
} = require("devtools/client/shared/components/reps/shared/grip-length-bubble");
|
||||||
const {
|
const {
|
||||||
interleave,
|
interleave,
|
||||||
isGrip,
|
isGrip,
|
||||||
wrapRender,
|
wrapRender,
|
||||||
ellipsisElement,
|
ellipsisElement,
|
||||||
} = require("./rep-utils");
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
const PropRep = require("./prop-rep");
|
const PropRep = require("devtools/client/shared/components/reps/reps/prop-rep");
|
||||||
const { MODE } = require("./constants");
|
const {
|
||||||
const { ModePropType } = require("./array");
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
const {
|
||||||
|
ModePropType,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/array");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders an map. A map is represented by a list of its
|
* Renders an map. A map is represented by a list of its
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,22 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// ReactJS
|
// ReactJS
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const { interleave, isGrip, wrapRender } = require("./rep-utils");
|
const {
|
||||||
const PropRep = require("./prop-rep");
|
interleave,
|
||||||
const { MODE } = require("./constants");
|
isGrip,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
const PropRep = require("devtools/client/shared/components/reps/reps/prop-rep");
|
||||||
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders generic grip. Grip is client representation
|
* Renders generic grip. Grip is client representation
|
||||||
|
|
@ -142,7 +150,7 @@ function safePropIterator(props, object, max) {
|
||||||
|
|
||||||
function propIterator(props, object, max) {
|
function propIterator(props, object, max) {
|
||||||
if (object.preview && Object.keys(object.preview).includes("wrappedValue")) {
|
if (object.preview && Object.keys(object.preview).includes("wrappedValue")) {
|
||||||
const { Rep } = require("./rep");
|
const { Rep } = require("devtools/client/shared/components/reps/reps/rep");
|
||||||
|
|
||||||
return [
|
return [
|
||||||
Rep({
|
Rep({
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,16 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
const { getGripType, wrapRender } = require("./rep-utils");
|
const {
|
||||||
|
getGripType,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a Infinity object
|
* Renders a Infinity object
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,17 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
|
|
||||||
const { getGripType, wrapRender } = require("./rep-utils");
|
const {
|
||||||
|
getGripType,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a NaN object
|
* Renders a NaN object
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,16 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
|
|
||||||
const { wrapRender } = require("./rep-utils");
|
const {
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders null value
|
* Renders null value
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,16 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
const { getGripType, wrapRender } = require("./rep-utils");
|
const {
|
||||||
|
getGripType,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a number
|
* Renders a number
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,20 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// ReactJS
|
// ReactJS
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
// Reps
|
// Reps
|
||||||
const { isGrip, wrapRender } = require("./rep-utils");
|
const {
|
||||||
|
isGrip,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
const String = require("./string").rep;
|
const String = require("devtools/client/shared/components/reps/reps/string")
|
||||||
|
.rep;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a grip object with textual data.
|
* Renders a grip object with textual data.
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,18 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// ReactJS
|
// ReactJS
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
// Reps
|
// Reps
|
||||||
const { isGrip, getURLDisplayString, wrapRender } = require("./rep-utils");
|
const {
|
||||||
|
isGrip,
|
||||||
|
getURLDisplayString,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a grip object with URL data.
|
* Renders a grip object with URL data.
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,20 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
const { wrapRender, ellipsisElement } = require("./rep-utils");
|
const {
|
||||||
const PropRep = require("./prop-rep");
|
wrapRender,
|
||||||
const { MODE } = require("./constants");
|
ellipsisElement,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
const PropRep = require("devtools/client/shared/components/reps/reps/prop-rep");
|
||||||
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
|
||||||
const DEFAULT_TITLE = "Object";
|
const DEFAULT_TITLE = "Object";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,15 +2,23 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// ReactJS
|
// ReactJS
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const { getGripType, isGrip, wrapRender } = require("./rep-utils");
|
const {
|
||||||
|
getGripType,
|
||||||
|
isGrip,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
const PropRep = require("./prop-rep");
|
const PropRep = require("devtools/client/shared/components/reps/reps/prop-rep");
|
||||||
const { MODE } = require("./constants");
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a DOM Promise object.
|
* Renders a DOM Promise object.
|
||||||
|
|
@ -38,7 +46,7 @@ function PromiseRep(props) {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (props.mode === MODE.TINY) {
|
if (props.mode === MODE.TINY) {
|
||||||
const { Rep } = require("./rep");
|
const { Rep } = require("devtools/client/shared/components/reps/reps/rep");
|
||||||
|
|
||||||
return span(
|
return span(
|
||||||
config,
|
config,
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,19 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
const { maybeEscapePropertyName, wrapRender } = require("./rep-utils");
|
const {
|
||||||
const { MODE } = require("./constants");
|
maybeEscapePropertyName,
|
||||||
|
wrapRender,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property for Obj (local JS objects), Grip (remote JS objects)
|
* Property for Obj (local JS objects), Grip (remote JS objects)
|
||||||
|
|
@ -40,8 +47,8 @@ PropRep.propTypes = {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function PropRep(props) {
|
function PropRep(props) {
|
||||||
const Grip = require("./grip");
|
const Grip = require("devtools/client/shared/components/reps/reps/grip");
|
||||||
const { Rep } = require("./rep");
|
const { Rep } = require("devtools/client/shared/components/reps/reps/rep");
|
||||||
const shouldRenderTooltip = props.shouldRenderTooltip;
|
const shouldRenderTooltip = props.shouldRenderTooltip;
|
||||||
|
|
||||||
let { name, mode, equal, suppressQuotes } = props;
|
let { name, mode, equal, suppressQuotes } = props;
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,19 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// ReactJS
|
// ReactJS
|
||||||
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
|
||||||
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
|
||||||
|
|
||||||
// Reps
|
// Reps
|
||||||
const { getGripType, isGrip, wrapRender, ELLIPSIS } = require("./rep-utils");
|
const {
|
||||||
|
getGripType,
|
||||||
|
isGrip,
|
||||||
|
wrapRender,
|
||||||
|
ELLIPSIS,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a grip object with regular expression.
|
* Renders a grip object with regular expression.
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const validProtocols = /(http|https|ftp|data|resource|chrome):/i;
|
const validProtocols = /(http|https|ftp|data|resource|chrome):/i;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,41 +2,43 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Load all existing rep templates
|
// Load all existing rep templates
|
||||||
const Undefined = require("./undefined");
|
const Undefined = require("devtools/client/shared/components/reps/reps/undefined");
|
||||||
const Null = require("./null");
|
const Null = require("devtools/client/shared/components/reps/reps/null");
|
||||||
const StringRep = require("./string");
|
const StringRep = require("devtools/client/shared/components/reps/reps/string");
|
||||||
const Number = require("./number");
|
const Number = require("devtools/client/shared/components/reps/reps/number");
|
||||||
const ArrayRep = require("./array");
|
const ArrayRep = require("devtools/client/shared/components/reps/reps/array");
|
||||||
const Obj = require("./object");
|
const Obj = require("devtools/client/shared/components/reps/reps/object");
|
||||||
const SymbolRep = require("./symbol");
|
const SymbolRep = require("devtools/client/shared/components/reps/reps/symbol");
|
||||||
const InfinityRep = require("./infinity");
|
const InfinityRep = require("devtools/client/shared/components/reps/reps/infinity");
|
||||||
const NaNRep = require("./nan");
|
const NaNRep = require("devtools/client/shared/components/reps/reps/nan");
|
||||||
const Accessor = require("./accessor");
|
const Accessor = require("devtools/client/shared/components/reps/reps/accessor");
|
||||||
|
|
||||||
// DOM types (grips)
|
// DOM types (grips)
|
||||||
const Accessible = require("./accessible");
|
const Accessible = require("devtools/client/shared/components/reps/reps/accessible");
|
||||||
const Attribute = require("./attribute");
|
const Attribute = require("devtools/client/shared/components/reps/reps/attribute");
|
||||||
const BigInt = require("./big-int");
|
const BigInt = require("devtools/client/shared/components/reps/reps/big-int");
|
||||||
const DateTime = require("./date-time");
|
const DateTime = require("devtools/client/shared/components/reps/reps/date-time");
|
||||||
const Document = require("./document");
|
const Document = require("devtools/client/shared/components/reps/reps/document");
|
||||||
const DocumentType = require("./document-type");
|
const DocumentType = require("devtools/client/shared/components/reps/reps/document-type");
|
||||||
const Event = require("./event");
|
const Event = require("devtools/client/shared/components/reps/reps/event");
|
||||||
const Func = require("./function");
|
const Func = require("devtools/client/shared/components/reps/reps/function");
|
||||||
const PromiseRep = require("./promise");
|
const PromiseRep = require("devtools/client/shared/components/reps/reps/promise");
|
||||||
const RegExp = require("./regexp");
|
const RegExp = require("devtools/client/shared/components/reps/reps/regexp");
|
||||||
const StyleSheet = require("./stylesheet");
|
const StyleSheet = require("devtools/client/shared/components/reps/reps/stylesheet");
|
||||||
const CommentNode = require("./comment-node");
|
const CommentNode = require("devtools/client/shared/components/reps/reps/comment-node");
|
||||||
const ElementNode = require("./element-node");
|
const ElementNode = require("devtools/client/shared/components/reps/reps/element-node");
|
||||||
const TextNode = require("./text-node");
|
const TextNode = require("devtools/client/shared/components/reps/reps/text-node");
|
||||||
const ErrorRep = require("./error");
|
const ErrorRep = require("devtools/client/shared/components/reps/reps/error");
|
||||||
const Window = require("./window");
|
const Window = require("devtools/client/shared/components/reps/reps/window");
|
||||||
const ObjectWithText = require("./object-with-text");
|
const ObjectWithText = require("devtools/client/shared/components/reps/reps/object-with-text");
|
||||||
const ObjectWithURL = require("./object-with-url");
|
const ObjectWithURL = require("devtools/client/shared/components/reps/reps/object-with-url");
|
||||||
const GripArray = require("./grip-array");
|
const GripArray = require("devtools/client/shared/components/reps/reps/grip-array");
|
||||||
const GripMap = require("./grip-map");
|
const GripMap = require("devtools/client/shared/components/reps/reps/grip-map");
|
||||||
const GripMapEntry = require("./grip-map-entry");
|
const GripMapEntry = require("devtools/client/shared/components/reps/reps/grip-map-entry");
|
||||||
const Grip = require("./grip");
|
const Grip = require("devtools/client/shared/components/reps/reps/grip");
|
||||||
|
|
||||||
// List of all registered template.
|
// List of all registered template.
|
||||||
// XXX there should be a way for extensions to register a new
|
// XXX there should be a way for extensions to register a new
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
const {
|
const {
|
||||||
a,
|
a,
|
||||||
|
|
@ -19,7 +21,7 @@ const {
|
||||||
ELLIPSIS,
|
ELLIPSIS,
|
||||||
uneatLastUrlCharsRegex,
|
uneatLastUrlCharsRegex,
|
||||||
urlRegex,
|
urlRegex,
|
||||||
} = require("./rep-utils");
|
} = require("devtools/client/shared/components/reps/reps/rep-utils");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a string. String value is enclosed within quotes.
|
* Renders a string. String value is enclosed within quotes.
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("Document", {
|
stubs.set("Document", {
|
||||||
actor: "server1.conn1.child1/accessible31",
|
actor: "server1.conn1.child1/accessible31",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
|
|
||||||
stubs.set("getter", {
|
stubs.set("getter", {
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("Attribute", {
|
stubs.set("Attribute", {
|
||||||
type: "object",
|
type: "object",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("1n", {
|
stubs.set("1n", {
|
||||||
type: "BigInt",
|
type: "BigInt",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("Comment", {
|
stubs.set("Comment", {
|
||||||
type: "object",
|
type: "object",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("DateTime", {
|
stubs.set("DateTime", {
|
||||||
type: "object",
|
type: "object",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("html", {
|
stubs.set("html", {
|
||||||
type: "object",
|
type: "object",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("Document", {
|
stubs.set("Document", {
|
||||||
type: "object",
|
type: "object",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("BodyNode", {
|
stubs.set("BodyNode", {
|
||||||
type: "object",
|
type: "object",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("SimpleError", {
|
stubs.set("SimpleError", {
|
||||||
type: "object",
|
type: "object",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
|
|
||||||
stubs.set("testEvent", {
|
stubs.set("testEvent", {
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("Failure", {
|
stubs.set("Failure", {
|
||||||
type: "object",
|
type: "object",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("Named", {
|
stubs.set("Named", {
|
||||||
type: "object",
|
type: "object",
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,14 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { MODE } = require("../constants");
|
"use strict";
|
||||||
const { maxLengthMap } = require("../grip-array");
|
|
||||||
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
const {
|
||||||
|
maxLengthMap,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/grip-array");
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
|
|
||||||
stubs.set("testBasic", {
|
stubs.set("testBasic", {
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("A → 0", {
|
stubs.set("A → 0", {
|
||||||
type: "mapEntry",
|
type: "mapEntry",
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,14 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { MODE } = require("../constants");
|
"use strict";
|
||||||
const { maxLengthMap } = require("../grip-map");
|
|
||||||
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
const {
|
||||||
|
maxLengthMap,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/grip-map");
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,14 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
const { MODE } = require("../constants");
|
"use strict";
|
||||||
const { maxLengthMap } = require("../grip");
|
|
||||||
|
const {
|
||||||
|
MODE,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/constants");
|
||||||
|
const {
|
||||||
|
maxLengthMap,
|
||||||
|
} = require("devtools/client/shared/components/reps/reps/grip");
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("Infinity", {
|
stubs.set("Infinity", {
|
||||||
type: "Infinity",
|
type: "Infinity",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const multilineFullText = `a\n${Array(20000)
|
const multilineFullText = `a\n${Array(20000)
|
||||||
.fill("a")
|
.fill("a")
|
||||||
.join("")}`;
|
.join("")}`;
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("NaN", {
|
stubs.set("NaN", {
|
||||||
type: "NaN",
|
type: "NaN",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("Null", {
|
stubs.set("Null", {
|
||||||
type: "null",
|
type: "null",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("Int", 5);
|
stubs.set("Int", 5);
|
||||||
stubs.set("True", true);
|
stubs.set("True", true);
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("ShadowRule", {
|
stubs.set("ShadowRule", {
|
||||||
type: "object",
|
type: "object",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("ObjectWithUrl", {
|
stubs.set("ObjectWithUrl", {
|
||||||
type: "object",
|
type: "object",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/>. */
|
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const stubs = new Map();
|
const stubs = new Map();
|
||||||
stubs.set("Pending", {
|
stubs.set("Pending", {
|
||||||
type: "object",
|
type: "object",
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue