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

Issue 1831423003: Audit test code callsites that need an explicit lifecycle update. (Closed)

Created:
4 years, 9 months ago by dglazkov
Modified:
4 years, 8 months ago
CC:
blink-reviews, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Audit test code callsites that need an explicit lifecycle update. 1) Introduce WebFrameContentDumper::dumpWebViewAsText, which explicitly forces a lifecycle update, and change all test code that relied on WebFrameContentDumper:dumpFrameTreeAsText to use it instead. 2) Rename WebFrameContentDumper::dumpFrameTreeAsText to WebFrameContentDumper::deprecatedDumpFrameTreeAsText. This is a meek step toward re-re-relanding https://codereview.chromium.org/1740173003, which only includes adding explicit lifecycle updates in places where they will become necessary, once TextIteratorAlgorithm doesn't force the layout update in its constructor. R=esprehn BUG=590295 Committed: https://crrev.com/232042e500104e908e2a1e40305130d480a11cae Cr-Commit-Position: refs/heads/master@{#385187}

Patch Set 1 #

Patch Set 2 : Changed to use two explicit methods. #

Patch Set 3 : Clean up. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -65 lines) Patch
M chrome/renderer/chrome_render_frame_observer.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 6 chunks +12 lines, -12 lines 0 comments Download
M content/renderer/render_view_browsertest_mac.mm View 1 5 chunks +9 lines, -8 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebFrameContentDumper.cpp View 1 3 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 19 chunks +26 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameContentDumper.h View 1 2 chunks +12 lines, -5 lines 0 comments Download

Messages

Total messages: 30 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831423003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831423003/1
4 years, 9 months ago (2016-03-25 23:10:15 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-26 00:18:23 UTC) #4
esprehn
Why not make dumpFrameTreeAsText do it as the first line? Seems like it should?
4 years, 9 months ago (2016-03-26 00:32:15 UTC) #5
dglazkov
On 2016/03/26 at 00:32:15, esprehn wrote: > Why not make dumpFrameTreeAsText do it as the ...
4 years, 9 months ago (2016-03-26 03:05:37 UTC) #6
dglazkov
Changed to use two explicit methods.
4 years, 8 months ago (2016-04-03 04:17:18 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831423003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831423003/20001
4 years, 8 months ago (2016-04-03 04:17:23 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-03 06:15:44 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831423003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831423003/40001
4 years, 8 months ago (2016-04-03 15:27:12 UTC) #13
dglazkov
esprehn, PTAL. I made it BETTER.
4 years, 8 months ago (2016-04-03 15:37:47 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-03 16:56:28 UTC) #17
esprehn
lgtm, okay lets start here. I think we want this all enforced with asserts though, ...
4 years, 8 months ago (2016-04-04 21:54:41 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831423003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831423003/40001
4 years, 8 months ago (2016-04-05 15:14:19 UTC) #20
dglazkov
On 2016/04/04 at 21:54:41, esprehn wrote: > lgtm, okay lets start here. I think we ...
4 years, 8 months ago (2016-04-05 15:14:22 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/164678)
4 years, 8 months ago (2016-04-05 15:22:38 UTC) #23
jochen (gone - plz use gerrit)
lgtm
4 years, 8 months ago (2016-04-05 15:24:19 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831423003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831423003/40001
4 years, 8 months ago (2016-04-05 15:25:23 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-05 16:24:50 UTC) #28
commit-bot: I haz the power
4 years, 8 months ago (2016-04-05 16:27:05 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/232042e500104e908e2a1e40305130d480a11cae
Cr-Commit-Position: refs/heads/master@{#385187}

Powered by Google App Engine
This is Rietveld 408576698