[webkit-dev] DRT/WTR should clear the cache at the beginning of each test?

Vyacheslav Ostapenko ostap73 at gmail.com
Fri Nov 2 10:34:37 PDT 2012

On Fri, Nov 2, 2012 at 12:33 PM, Antti Koivisto <koivisto at iki.fi> wrote:

> On Wed, Oct 31, 2012 at 12:05 AM, Alexey Proskuryakov <ap at apple.com>wrote:
>> This will mean that cache is always almost empty, and all resources in it
>> are extremely fresh. I don't know if this would provide substantial
>> additional test coverage over cleaning the cache all the time, or just
>> completely disabling it in WebKitTestRunner.
> Certain areas of coverage would improve. The code paths taken when a
> resource is restored from the memory cache can be quite different from the
> usual loading. Many operations (like script execution) happen synchronously
> if the resource is found from the cache. We reuse various decoded forms
> (bitmaps, stylesheets, jsc parse structures, likely more in the future).
> All data is available in single chunk. It is possible to write tests that
> detect these differences (and it is possible that some tests hit them
> accidentally).
> We would still lose coverage for things that depend on having lots of
> resources around like cache pruning.
In this case to improve code coverage all tests should run twice - 1st with
clear cache and 2nd run after that in order to test cached case.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20121102/dc336ffc/attachment.html>

More information about the webkit-dev mailing list