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

Balazs Kelemen kbalazs at webkit.org
Thu Aug 9 06:30:01 PDT 2012


Actually Qt and EFL DRT's already does that.

On 08/08/2012 07:47 PM, Ojan Vafai wrote:
> See https://bugs.webkit.org/show_bug.cgi?id=93195.
>
> media/W3C/video/networkState/networkState_during_progress.html 
> and media/video-poster-blocked-by-willsendrequest.html are flaky on 
> all platforms because they behave differently if the loaded resource 
> is cached.
>
> Every time I've taken a stab at reducing test flakiness, I've come 
> across at least a few tests that pass when run as part of the test 
> suite, but fail when run by themselves (or in parallel) because they 
> accidentally expect an image or something to be in the cache.
>
> I think it would make the tests more maintainable if we cleared the 
> cache before each test run. This is *not* before each page load 
> though. So tests that do multiple page loads will still test 
> cross-navigation caching behavior.
>
> While it's true that we could one-off fix each of these tests, it's 
> usually very time consuming to figure out that caching is the problem, 
> that's assuming anyone takes the time to look into why the test is 
> flaky in the first place.
>
> Any objections?
>
> Ojan
>
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-dev

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


More information about the webkit-dev mailing list