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

Issue 271793007: Fix webkit_unit_tests to use the threaded parser and enable everywhere. (Closed)

Created:
6 years, 7 months ago by dcheng
Modified:
5 years, 3 months ago
CC:
eseidel
Visibility:
Public.

Description

Fix webkit_unit_tests to use the threaded parser and enable everywhere. In order to support the threaded parser, FrameTestHelpers utilities has been updated to magically wait for loads to finish. There are also several new helpers for other common operations in tests that understand how to wait for the threaded parser to complete. Tests that need to interleave more complicated operations can fall back to pumpPendingRequestsDoNotUse(). Most tests should prefer the new helper utilities though. BUG=366354 R=abarth@chromium.org, eseidel@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173731 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173771

Patch Set 1 #

Patch Set 2 : Fix a few more tests #

Patch Set 3 : Closer... #

Patch Set 4 : Mostly fixed #

Patch Set 5 : Improved? #

Patch Set 6 : Remove stray reset #

Patch Set 7 : Rebased #

Patch Set 8 : Add a sanity assert #

Patch Set 9 : Fix Mac #

Patch Set 10 : Some more comments #

Patch Set 11 : Compile fix #

Patch Set 12 : Another Mac Fix #

Patch Set 13 : Reupload? #

Total comments: 4

Patch Set 14 : Restructure #

Patch Set 15 : Cleanup #

Patch Set 16 : More fixing #

Patch Set 17 : Fix style nits #

Patch Set 18 : Patch for relanding #

Patch Set 19 : Add loadHistoryItem wrapper #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -221 lines) Patch
M Source/core/frame/Settings.in View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/AssociatedURLLoaderTest.cpp View 1 2 3 4 5 1 chunk +1 line, -5 lines 0 comments Download
M Source/web/tests/CompositedLayerMappingTest.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/tests/FrameTestHelpers.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +32 lines, -3 lines 1 comment Download
M Source/web/tests/FrameTestHelpers.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +177 lines, -5 lines 0 comments Download
M Source/web/tests/MHTMLTest.cpp View 1 2 3 4 1 chunk +1 line, -6 lines 0 comments Download
M Source/web/tests/PageSerializerTest.cpp View 1 2 3 4 2 chunks +1 line, -12 lines 0 comments Download
M Source/web/tests/PinchViewportTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +2 lines, -12 lines 0 comments Download
M Source/web/tests/PopupMenuTest.cpp View 5 chunks +1 line, -13 lines 0 comments Download
M Source/web/tests/PrerenderingTest.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/tests/ScrollingCoordinatorChromiumTest.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/tests/ViewportTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 47 chunks +93 lines, -113 lines 0 comments Download
M Source/web/tests/WebPageNewSerializerTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +1 line, -23 lines 0 comments Download
M Source/web/tests/WebPageSerializerTest.cpp View 1 2 3 4 5 6 2 chunks +1 line, -12 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +21 lines, -12 lines 0 comments Download

Messages

Total messages: 16 (2 generated)
dcheng
I've gone through and audited existing usages of: - FrameTestHelpers::loadFrame to make sure test semantics ...
6 years, 7 months ago (2014-05-08 22:13:54 UTC) #1
abarth-chromium
LGTM Glad to see such ugly code go! https://codereview.chromium.org/271793007/diff/230001/Source/web/tests/FrameTestHelpers.cpp File Source/web/tests/FrameTestHelpers.cpp (right): https://codereview.chromium.org/271793007/diff/230001/Source/web/tests/FrameTestHelpers.cpp#newcode91 Source/web/tests/FrameTestHelpers.cpp:91: explicit ...
6 years, 7 months ago (2014-05-09 03:00:52 UTC) #2
eseidel
lgtm Thank you so much for taking this on.
6 years, 7 months ago (2014-05-09 03:08:35 UTC) #3
dcheng
I restructured some of the helpers a bit (specifically, I made pumpPendingRequests enter the run ...
6 years, 7 months ago (2014-05-09 06:00:00 UTC) #4
dcheng
Committed patchset #17 manually as r173731 (presubmit successful).
6 years, 7 months ago (2014-05-09 06:49:12 UTC) #5
falken
A revert of this CL has been created in https://codereview.chromium.org/272143002/ by falken@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-09 08:36:27 UTC) #6
falken
On 2014/05/09 08:36:27, falken wrote: > A revert of this CL has been created in ...
6 years, 7 months ago (2014-05-09 13:18:13 UTC) #7
dcheng
Committed patchset #19 manually as r173771 (presubmit successful).
6 years, 7 months ago (2014-05-09 19:23:41 UTC) #8
Nico
https://codereview.chromium.org/271793007/diff/350001/Source/web/tests/FrameTestHelpers.h File Source/web/tests/FrameTestHelpers.h (right): https://codereview.chromium.org/271793007/diff/350001/Source/web/tests/FrameTestHelpers.h#newcode64 Source/web/tests/FrameTestHelpers.h:64: // this. Use one of the above helpers. I ...
5 years, 3 months ago (2015-08-29 22:07:49 UTC) #10
abarth-chromium
On 2015/08/29 at 22:07:49, thakis wrote: > https://codereview.chromium.org/271793007/diff/350001/Source/web/tests/FrameTestHelpers.h > File Source/web/tests/FrameTestHelpers.h (right): > > https://codereview.chromium.org/271793007/diff/350001/Source/web/tests/FrameTestHelpers.h#newcode64 ...
5 years, 3 months ago (2015-08-29 22:44:06 UTC) #11
Nico
On 2015/08/29 22:44:06, abarth-chromium wrote: > On 2015/08/29 at 22:07:49, thakis wrote: > > > ...
5 years, 3 months ago (2015-08-29 22:45:38 UTC) #12
abarth-chromium
On 2015/08/29 at 22:45:38, thakis wrote: > The author is still around though. The approach ...
5 years, 3 months ago (2015-08-29 22:49:29 UTC) #13
Nico
On 2015/08/29 22:49:29, abarth-chromium wrote: > On 2015/08/29 at 22:45:38, thakis wrote: > > The ...
5 years, 3 months ago (2015-08-29 23:01:10 UTC) #14
dcheng
5 years, 3 months ago (2015-08-31 16:43:40 UTC) #16
Message was sent while issue was closed.
On 2015/08/29 at 23:01:10, thakis wrote:
> On 2015/08/29 22:49:29, abarth-chromium wrote:
> > On 2015/08/29 at 22:45:38, thakis wrote:
> > > The author is still around though. The approach of commenting on reviews
seems
> > to work pretty well in general, I do this pretty frequently.
> > 
> > Would you be willing to email the author directly?  I don't want to be CCed
on
> > this thread, but I cannot unsubscribe without messing up this CL.
> 
> No need, they already got my message I sent to this thread :-) I'm not sure if
emailing them directly would un-cc you from this thread here anyway. I would've
expected that no further replies appear here (looks I was wrong), but I can
certainly remove you from the cc list on this review here, I'll do that right
now. (I don't think it'll screw up the review thread, as your LG is clearly
marked in the review history on rietveld.)

At the time I wrote this, I was hoping we'd be able to get rid of all explicit
calls to pumpPendingRequests(). That doesn't seem likely at this point, so I'll
write up a patch to rename the method and update the comment to describe how
calling this (instead of serveAsynchronousMockedRequests directly) is important
to having non-flaky tests.

Powered by Google App Engine
This is Rietveld 408576698