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
const {
createFactory,
PropTypes
} = require("devtools/client/shared/vendor/react");
const { createFactories } = require("devtools/client/shared/components/reps/rep-utils");
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");
GripMessageBody.displayName = "GripMessageBody";
@ -23,6 +25,7 @@ GripMessageBody.propTypes = {
function GripMessageBody(props) {
return Rep({
object: props.grip,
objectLink: VariablesViewLink,
defaultRep: Grip
});
}

View File

@ -39,7 +39,7 @@ testCommands.set("new Date()", {
command: "new Date(448156800000)",
commandType: "evaluationResult",
// @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", {
command: null,