mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 1285053 - New console frontend: use variables view link for object inspection. r=bgrins
MozReview-Commit-ID: I59OZXI2Qks
This commit is contained in:
parent
0b022f36d2
commit
c2f6635800
@ -8,10 +8,12 @@
|
|||||||
|
|
||||||
// React
|
// React
|
||||||
const {
|
const {
|
||||||
|
createFactory,
|
||||||
PropTypes
|
PropTypes
|
||||||
} = require("devtools/client/shared/vendor/react");
|
} = require("devtools/client/shared/vendor/react");
|
||||||
const { createFactories } = require("devtools/client/shared/components/reps/rep-utils");
|
const { createFactories } = require("devtools/client/shared/components/reps/rep-utils");
|
||||||
const { Rep } = createFactories(require("devtools/client/shared/components/reps/rep"));
|
const { Rep } = createFactories(require("devtools/client/shared/components/reps/rep"));
|
||||||
|
const VariablesViewLink = createFactory(require("devtools/client/webconsole/new-console-output/components/variables-view-link").VariablesViewLink);
|
||||||
const { Grip } = require("devtools/client/shared/components/reps/grip");
|
const { Grip } = require("devtools/client/shared/components/reps/grip");
|
||||||
|
|
||||||
GripMessageBody.displayName = "GripMessageBody";
|
GripMessageBody.displayName = "GripMessageBody";
|
||||||
@ -23,6 +25,7 @@ GripMessageBody.propTypes = {
|
|||||||
function GripMessageBody(props) {
|
function GripMessageBody(props) {
|
||||||
return Rep({
|
return Rep({
|
||||||
object: props.grip,
|
object: props.grip,
|
||||||
|
objectLink: VariablesViewLink,
|
||||||
defaultRep: Grip
|
defaultRep: Grip
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ testCommands.set("new Date()", {
|
|||||||
command: "new Date(448156800000)",
|
command: "new Date(448156800000)",
|
||||||
commandType: "evaluationResult",
|
commandType: "evaluationResult",
|
||||||
// @TODO should output: Date 1984-03-15T00:00:00.000Z
|
// @TODO should output: Date 1984-03-15T00:00:00.000Z
|
||||||
expectedText: "1984-03-15T00:00:00.000Z"
|
expectedText: "Date1984-03-15T00:00:00.000Z"
|
||||||
});
|
});
|
||||||
testCommands.set("pageError", {
|
testCommands.set("pageError", {
|
||||||
command: null,
|
command: null,
|
||||||
|
Loading…
Reference in New Issue
Block a user