RESOLVED FIXED 149595
[WTR] Pixel tests generate the snapshots twice in Web and UI processes
https://bugs.webkit.org/show_bug.cgi?id=149595
Summary [WTR] Pixel tests generate the snapshots twice in Web and UI processes
Carlos Garcia Campos
Reported 2015-09-28 06:39:28 PDT
And the snapshot generated in the web process is actually ignored. This is true for all ports except IOS that only creates the snapshots in the web process.
Attachments
Patch (13.25 KB, patch)
2015-09-28 06:53 PDT, Carlos Garcia Campos
thorton: review+
Carlos Garcia Campos
Comment 1 2015-09-28 06:53:15 PDT
Tim Horton
Comment 2 2015-09-28 10:56:39 PDT
Comment on attachment 262008 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=262008&action=review > Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:896 > + // Only IOS needs to generate the snapshot in the web process, all other ports generate iOS *shouldn't*, we just haven't implemented UI process snapshotting for iOS yet. > Tools/WebKitTestRunner/TestInvocation.cpp:293 > + dumpPixelsAndCompareWithExpected(m_pixelResult.get(), m_repaintRects.get(), TestInvocation::SnapshotResultType::WebContents); no curly braces > Tools/WebKitTestRunner/TestInvocation.cpp:377 > + if (!m_needsPixelResult) { This reads pretty weird. "If I don't need a pixel result, extract the pixel result image". Maybe "needs" should be "pending" or some variation of that, since that's what it seems to be (we set it to false when we get a snapshot).
Carlos Garcia Campos
Comment 3 2015-09-28 22:53:07 PDT
(In reply to comment #2) > Comment on attachment 262008 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=262008&action=review > > > Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:896 > > + // Only IOS needs to generate the snapshot in the web process, all other ports generate > > iOS *shouldn't*, we just haven't implemented UI process snapshotting for iOS > yet. Ok, I'll reword it to clarify that. > > Tools/WebKitTestRunner/TestInvocation.cpp:293 > > + dumpPixelsAndCompareWithExpected(m_pixelResult.get(), m_repaintRects.get(), TestInvocation::SnapshotResultType::WebContents); > > no curly braces Ok. > > Tools/WebKitTestRunner/TestInvocation.cpp:377 > > + if (!m_needsPixelResult) { > > This reads pretty weird. "If I don't need a pixel result, extract the pixel > result image". Maybe "needs" should be "pending" or some variation of that, > since that's what it seems to be (we set it to false when we get a snapshot). Agree, pending sounds better. Thanks
Carlos Garcia Campos
Comment 4 2015-09-28 23:51:55 PDT
Note You need to log in before you can comment on or make changes to this bug.