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
|
||||
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
|
||||
});
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user