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

Issue 2348583004: DevTools: remove unused ConsoleViewMessage.toString() (Closed)

Created:
4 years, 3 months ago by luoe
Modified:
4 years, 3 months ago
Reviewers:
lushnikov
CC:
chromium-reviews, caseq+blink_chromium.org, tfarina, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: remove unused ConsoleViewMessage.toString() Some inspector LayoutTests were using ConsoleViewMessage.toString() to check that a message included a substring. Most of the function logic was not necessary and some cases could be replaced with the .text getter. BUG= Committed: https://crrev.com/5d76410721baf333f57d382d8015f200e74e8219 Cr-Commit-Position: refs/heads/master@{#419910}

Patch Set 1 #

Patch Set 2 : remove unrelated files #

Total comments: 2

Patch Set 3 : use deeptextcontent for all #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -113 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/console-resource-errors.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-xpath.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js View 1 chunk +0 lines, -110 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
luoe
4 years, 3 months ago (2016-09-16 01:11:42 UTC) #3
lushnikov
https://codereview.chromium.org/2348583004/diff/20001/third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception.html File third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception.html (right): https://codereview.chromium.org/2348583004/diff/20001/third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception.html#newcode13 third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception.html:13: if (viewMessage.text.indexOf("setTimeout") !== -1) let's not use the .text ...
4 years, 3 months ago (2016-09-16 16:47:50 UTC) #4
luoe
Changed all 3 instances to use element().deepTextContent(). https://codereview.chromium.org/2348583004/diff/20001/third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception.html File third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception.html (right): https://codereview.chromium.org/2348583004/diff/20001/third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception.html#newcode13 third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception.html:13: if (viewMessage.text.indexOf("setTimeout") ...
4 years, 3 months ago (2016-09-16 18:58:45 UTC) #5
lushnikov
lgtm
4 years, 3 months ago (2016-09-20 17:59:55 UTC) #6
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/2348583004/40001
4 years, 3 months ago (2016-09-20 18:53:00 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/282867)
4 years, 3 months ago (2016-09-20 19:38:09 UTC) #10
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/2348583004/40001
4 years, 3 months ago (2016-09-21 00:05:48 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-21 00:12:17 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 00:14:42 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5d76410721baf333f57d382d8015f200e74e8219
Cr-Commit-Position: refs/heads/master@{#419910}

Powered by Google App Engine
This is Rietveld 408576698