Bug 1300494 - New console frontend: Fix rep spacing for console. r=Honza
MozReview-Commit-ID: HJzmmck9SfH
--- a/devtools/client/shared/components/reps/grip.js
+++ b/devtools/client/shared/components/reps/grip.js
@@ -29,17 +29,17 @@ define(function (require, exports, modul
mode: React.PropTypes.string,
isInterestingProp: React.PropTypes.func
},
getTitle: function (object) {
if (this.props.objectLink) {
return this.props.objectLink({
object: object
- }, object.class + " ");
+ }, object.class);
}
return object.class || "Object";
},
safePropIterator: function (object, max) {
max = (typeof max === "undefined") ? 3 : max;
try {
return this.propIterator(object, max);
--- a/devtools/client/shared/components/reps/object.js
+++ b/devtools/client/shared/components/reps/object.js
@@ -25,17 +25,17 @@ define(function (require, exports, modul
object: React.PropTypes.object,
mode: React.PropTypes.string,
},
getTitle: function (object) {
if (this.props.objectLink) {
return this.props.objectLink({
object: object
- }, object.class + " ");
+ }, object.class);
}
return "Object";
},
safePropIterator: function (object, max) {
max = (typeof max === "undefined") ? 3 : max;
try {
return this.propIterator(object, max);
--- a/devtools/client/shared/components/reps/stylesheet.js
+++ b/devtools/client/shared/components/reps/stylesheet.js
@@ -27,17 +27,17 @@ define(function (require, exports, modul
},
getTitle: function (grip) {
let title = "StyleSheet ";
if (this.props.objectLink) {
return DOM.span({className: "objectBox"},
this.props.objectLink({
object: grip
- }, title + " ")
+ }, title)
);
}
return title;
},
getLocation: function (grip) {
// Embedded stylesheets don't have URL and so, no preview.
let url = grip.preview ? grip.preview.url : "";
--- a/devtools/client/webconsole/new-console-output/test/components/evaluation-result.test.js
+++ b/devtools/client/webconsole/new-console-output/test/components/evaluation-result.test.js
@@ -15,16 +15,16 @@ describe("EvaluationResult component:",
it("renders a grip result", () => {
const message = stubPreparedMessages.get("new Date(0)");
const props = {
message
};
const rendered = renderComponent(EvaluationResult, props);
const messageBody = getMessageBody(rendered);
- expect(messageBody.textContent).toBe("Date1970-01-01T00:00:00.000Z");
+ expect(messageBody.textContent).toBe("Date 1970-01-01T00:00:00.000Z");
});
});
function getMessageBody(rendered) {
const queryPath = "div.message span.message-body-wrapper span.message-body";
return rendered.querySelector(queryPath);
}