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

Issue 2865573003: DevTools: support live coverage (Closed)

Created:
3 years, 7 months ago by caseq
Modified:
3 years, 7 months ago
Reviewers:
alph, dgozman
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, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: support live coverage - support polling in CoverageModel and CoverageView - support incremental updates in CoverageListView - revise the way decorators are shown, make a dummy decorator and then iterate over all lines in UISourceCode, map them to original file locations and check coverage - remove remains of mixed coverage decorators - assume whitespace is always unused BUG=719113 Review-Url: https://codereview.chromium.org/2865573003 Cr-Commit-Position: refs/heads/master@{#469856} Committed: https://chromium.googlesource.com/chromium/src/+/4c7e58d58127b87916dfbaf423e63bf6276d80e8

Patch Set 1 #

Patch Set 2 : fixed accidentally creating too many promises for one resource #

Total comments: 21

Patch Set 3 : Review comments addressed #

Patch Set 4 : Review comments addressed #

Total comments: 4

Patch Set 5 : reverted accidental change to CoverageDecorationsManager.update() #

Patch Set 6 : minor polish on corner cases #

Unified diffs Side-by-side diffs Delta from patch set Stats (+504 lines, -356 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-blink-features=LayoutNG View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/coverage/coverage-test.js View 2 chunks +2 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector/coverage/decorations-after-inplace-formatter.html View 1 chunk +0 lines, -41 lines 0 comments Download
D third_party/WebKit/LayoutTests/inspector/coverage/decorations-after-inplace-formatter-expected.txt View 1 chunk +0 lines, -30 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/coverage/decorations-after-script-formatter.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/coverage/decorations-after-script-formatter-expected.txt View 1 2 1 chunk +13 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/coverage/gutter-css-expected.txt View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/coverage/gutter-js-expected.txt View 1 2 1 chunk +10 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/coverage/multiple-instances-merge-expected.txt View 1 2 2 chunks +15 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/coverage/reveal-autoformat.html View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/coverage/reveal-autoformat-expected.txt View 1 2 4 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/devtools/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js View 1 2 3 4 5 1 chunk +218 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/coverage/CoverageListView.js View 1 2 5 chunks +38 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/coverage/CoverageModel.js View 1 2 9 chunks +148 lines, -109 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/coverage/CoverageView.js View 4 chunks +34 lines, -72 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/coverage/module.json View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/CSSModel.js View 1 2 1 chunk +9 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js View 1 chunk +0 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/text_editor/cmdevtools.css View 2 chunks +1 line, -6 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
caseq
3 years, 7 months ago (2017-05-04 23:50:28 UTC) #3
alph
https://codereview.chromium.org/2865573003/diff/40001/third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js File third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js (right): https://codereview.chromium.org/2865573003/diff/40001/third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js#newcode57 third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js:57: var startLocationsByProvider = new Map(startLocations.map(location => [location.contentProvider, location])); can ...
3 years, 7 months ago (2017-05-05 19:18:09 UTC) #4
dgozman
https://codereview.chromium.org/2865573003/diff/40001/third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js File third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js (right): https://codereview.chromium.org/2865573003/diff/40001/third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js#newcode1 third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js:1: // Copyright (c) 2017 The Chromium Authors. All rights ...
3 years, 7 months ago (2017-05-05 19:21:20 UTC) #5
caseq
On 2017/05/05 19:18:09, alph wrote: > https://codereview.chromium.org/2865573003/diff/40001/third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js > File > third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js > (right): > > ...
3 years, 7 months ago (2017-05-05 21:52:02 UTC) #6
caseq
On 2017/05/05 19:21:20, dgozman wrote: > https://codereview.chromium.org/2865573003/diff/40001/third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js > File > third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js > (right): > > ...
3 years, 7 months ago (2017-05-05 21:55:34 UTC) #7
alph
https://codereview.chromium.org/2865573003/diff/80001/third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js File third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js (right): https://codereview.chromium.org/2865573003/diff/80001/third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js#newcode65 third_party/WebKit/Source/devtools/front_end/coverage/CoverageDecorationManager.js:65: Coverage.CoverageDecorationManager._compareLocations(start, endLocations[endIndex]) >= 0) Shouldn't be ">" instead? start ...
3 years, 7 months ago (2017-05-05 22:50:37 UTC) #8
alph
lgtm
3 years, 7 months ago (2017-05-05 22:57:04 UTC) #9
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/2865573003/120001
3 years, 7 months ago (2017-05-05 23:23:05 UTC) #12
commit-bot: I haz the power
3 years, 7 months ago (2017-05-06 18:58:09 UTC) #17
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/4c7e58d58127b87916dfbaf423e6...

Powered by Google App Engine
This is Rietveld 408576698