Bug 1285053 - New console frontend: use variables view link for object inspection. r=bgrins

MozReview-Commit-ID: I59OZXI2Qks
This commit is contained in:
Lin Clark 2016-07-14 06:21:00 -04:00
parent 0b022f36d2
commit c2f6635800
2 changed files with 4 additions and 1 deletions

View File

@ -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
}); });
} }

View File

@ -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,