Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Issue 2139043002: DevTools: show alternate title onexpand of object in console (Closed)

Created:
4 years, 5 months ago by luoe
Modified:
3 years, 10 months ago
Reviewers:
lushnikov
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: show alternate title onexpand of object in console Results logged in the console with an expandable arrow will show a full preview title when collapsed and a description when expanded. For example, an array "[1, 2, 3]" might expand into "Array[3]". BUG=607682 Committed: https://crrev.com/e3bc1d8cebf65a51bb23abf204cf1ba059f1e865 Cr-Commit-Position: refs/heads/master@{#410100}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address patch comments #

Patch Set 3 : Amend unicode test with double expand #

Patch Set 4 : Remove wasExpandable bool, update auto-expand for internal entries #

Patch Set 5 : DevTools: show alternate title onexpand of object in console #

Patch Set 6 : add visibility check to test #

Patch Set 7 : DevTools: show alternate title onexpand of object in console #

Patch Set 8 : Update info note text #

Patch Set 9 : Remove unnecessary treeoutline changes #

Patch Set 10 : DevTools: show alternate title onexpand of object in console #

Total comments: 6

Patch Set 11 : rebase #

Patch Set 12 : Address comments #

Total comments: 13

Patch Set 13 : Address comments #

Patch Set 14 : Fix tests #

Patch Set 15 : Undo swap children #

Patch Set 16 : rebase #

Patch Set 17 : Remove complex value editing from tests #

Total comments: 14

Patch Set 18 : Address comments #

Total comments: 2

Patch Set 19 : Reuse dump() in tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+670 lines, -190 lines) Patch
M third_party/WebKit/LayoutTests/inspector/console/console-call-getter-on-proto-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/inspector/console/console-edit-property-value.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +79 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/console/console-edit-property-value-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-format.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-format-array-prototype.html View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +14 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-format-es6.html View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-format-es6-2.html View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-format-es6-2-expected.txt View 1 16 chunks +56 lines, -23 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-format-es6-expected.txt View 1 2 chunks +87 lines, -34 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-format-expected.txt View 1 14 chunks +245 lines, -67 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-object-preview.html View 1 1 chunk +9 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-object-preview-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +44 lines, -16 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-proxy.html View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-proxy-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-uncaught-promise-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/worker-eval-contains-stack-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +102 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/consoleView.css View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 29 (9 generated)
luoe
This CL should actually pass LayoutTests! Please take a look.
4 years, 5 months ago (2016-07-11 23:08:06 UTC) #3
lushnikov
Let's maybe try Node.replace() instead hiding elements - this will keep tests clean + we'll ...
4 years, 5 months ago (2016-07-12 02:51:55 UTC) #4
luoe
Thanks for the comments! Patches 2+3 need review, here is a summary of changes: - ...
4 years, 5 months ago (2016-07-13 18:06:28 UTC) #5
luoe
Summary of patches 4+5+6+7: - When editing a property via double click, a property's valueElement ...
4 years, 5 months ago (2016-07-14 21:51:34 UTC) #6
luoe
Removed unrelated changes.
4 years, 5 months ago (2016-07-14 23:45:09 UTC) #7
lushnikov
https://codereview.chromium.org/2139043002/diff/180001/third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js File third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js (right): https://codereview.chromium.org/2139043002/diff/180001/third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js#newcode38 third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js:38: WebInspector.ObjectPropertiesSection = function(object, title, expandedTitle, linkifier, emptyPlaceholder, ignoreHasOwnProperty, extraProperties) ...
4 years, 5 months ago (2016-07-20 23:54:26 UTC) #8
luoe
Comments addressed. 1 additional change: needsAlternateTitle() has been modified so that objects with type === ...
4 years, 5 months ago (2016-07-22 22:30:58 UTC) #9
luoe
Gentle ping :)
4 years, 4 months ago (2016-07-26 19:09:12 UTC) #10
lushnikov
Thanks, I like this much more! https://codereview.chromium.org/2139043002/diff/220001/third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html File third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html (right): https://codereview.chromium.org/2139043002/diff/220001/third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html#newcode49 third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html:49: function nestedObjectFilter(treeElement) can ...
4 years, 4 months ago (2016-07-30 00:29:50 UTC) #11
luoe
Ptal. https://codereview.chromium.org/2139043002/diff/220001/third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html File third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html (right): https://codereview.chromium.org/2139043002/diff/220001/third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html#newcode49 third_party/WebKit/LayoutTests/inspector/console/console-format-broken-unicode.html:49: function nestedObjectFilter(treeElement) On 2016/07/30 00:29:49, lushnikov wrote: > ...
4 years, 4 months ago (2016-07-30 01:46:38 UTC) #12
lushnikov
https://codereview.chromium.org/2139043002/diff/220001/third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js File third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js (right): https://codereview.chromium.org/2139043002/diff/220001/third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js#newcode357 third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js:357: this.valueElement.removeChildren(); On 2016/07/30 01:46:37, luoe wrote: > On 2016/07/30 ...
4 years, 4 months ago (2016-08-02 17:08:07 UTC) #13
luoe
Switched back to simpler replaceChild() method of toggling. Also removed complex values from the editing ...
4 years, 4 months ago (2016-08-02 22:49:35 UTC) #14
lushnikov
https://codereview.chromium.org/2139043002/diff/320001/third_party/WebKit/LayoutTests/inspector/console/console-edit-property-value-expected.txt File third_party/WebKit/LayoutTests/inspector/console/console-edit-property-value-expected.txt (right): https://codereview.chromium.org/2139043002/diff/320001/third_party/WebKit/LayoutTests/inspector/console/console-edit-property-value-expected.txt#newcode5 third_party/WebKit/LayoutTests/inspector/console/console-edit-property-value-expected.txt:5: console-edit-property-value.html:10 Objecta: 3b: "foo"c: Array[3]__proto__: Object can we use ...
4 years, 4 months ago (2016-08-03 22:34:49 UTC) #15
luoe
Thanks for the comments. Ptal Notes: - instead of "setExpandedValueElement", maybe "showExpandedValueElement" is a better ...
4 years, 4 months ago (2016-08-05 01:12:47 UTC) #16
lushnikov
https://codereview.chromium.org/2139043002/diff/340001/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js File third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js (right): https://codereview.chromium.org/2139043002/diff/340001/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js#newcode79 third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js:79: InspectorTest.dumpConsoleMessagesWithObjectProperties = function(messageElement, consoleMessage) let's reuse the existing infrastructure ...
4 years, 4 months ago (2016-08-05 01:42:04 UTC) #17
luoe
dump() reused https://codereview.chromium.org/2139043002/diff/340001/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js File third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js (right): https://codereview.chromium.org/2139043002/diff/340001/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js#newcode79 third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js:79: InspectorTest.dumpConsoleMessagesWithObjectProperties = function(messageElement, consoleMessage) On 2016/08/05 01:42:04, ...
4 years, 4 months ago (2016-08-05 01:48:10 UTC) #18
lushnikov
lgtm
4 years, 4 months ago (2016-08-05 01:54:37 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2139043002/360001
4 years, 4 months ago (2016-08-05 17:38:36 UTC) #25
commit-bot: I haz the power
Committed patchset #19 (id:360001)
4 years, 4 months ago (2016-08-05 17:43:46 UTC) #27
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 17:45:55 UTC) #29
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/e3bc1d8cebf65a51bb23abf204cf1ba059f1e865
Cr-Commit-Position: refs/heads/master@{#410100}

Powered by Google App Engine
This is Rietveld 408576698