Closed
Bug 1284673
Opened 8 years ago
Closed 8 years ago
Reps: add a cropLimit property to string rep
Categories
(DevTools :: Shared Components, enhancement, P1)
DevTools
Shared Components
Tracking
(firefox50 fixed)
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: linclark, Assigned: gasolin)
References
Details
(Whiteboard: [reserve-html])
Attachments
(1 file)
There is a limit param in cropString() but no way to set it from the outside
https://dxr.mozilla.org/mozilla-central/source/devtools/client/shared/components/reps/string.js#60
Honza said:
I think we could do two things here:
1) Create a new property in StringRep called: cropLimit (or something like that) and pass it into: cropMultipleLines(text, this.prop.cropLimit).
2) Cover that in a test.
Updated•8 years ago
|
Blocks: devtools-html-2
Updated•8 years ago
|
Flags: qe-verify-
Priority: -- → P3
Whiteboard: [devtools-html] [triage] → [reserve-html]
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → gasolin
Assignee | ||
Comment 1•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/63446/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/63446/
Attachment #8769620 -
Flags: review?(lclark)
Assignee | ||
Updated•8 years ago
|
Status: NEW → ASSIGNED
Reporter | ||
Updated•8 years ago
|
Attachment #8769620 -
Flags: review?(lclark) → review+
Reporter | ||
Comment 2•8 years ago
|
||
Comment on attachment 8769620 [details]
Bug 1284673 - Reps: add a cropLimit property to string rep;
https://reviewboard.mozilla.org/r/63446/#review60324
Overall this looks good! Only one nit below, once that's done I think this should be good to go. I triggered a try build.
::: devtools/client/shared/components/reps/string.js:33
(Diff revision 1)
> "\"" + text + "\""
> )
> );
> }
>
> + let cropLimitStr = this.props.cropLimit ?
The variable name was a little confusing to me. I'd say something like croppedString here.
Assignee | ||
Comment 3•8 years ago
|
||
Comment on attachment 8769620 [details]
Bug 1284673 - Reps: add a cropLimit property to string rep;
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/63446/diff/1-2/
Assignee | ||
Comment 4•8 years ago
|
||
Thanks for review! variable name changed and all test passed.
Keywords: checkin-needed
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/14881be4f436
Reps: add a cropLimit property to string rep; r=linclark
Keywords: checkin-needed
Comment 6•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
Updated•8 years ago
|
Iteration: --- → 50.3 - Jul 18
Priority: P3 → P1
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•