Bug 27998

Summary: http/tests/cache/subresource-expiration.html uses 4.5 seconds of delay
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: abarth, darin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 27995    

Description Eric Seidel (no email) 2009-08-04 14:37:44 PDT
http/tests/cache/subresource-expiration.html uses 4.5 seconds of delay

These were added in:
http://trac.webkit.org/changeset/45003

Current runtime of this test is 6.25s on my machine.  That's about 1% of total LayoutTest runtime. :(

Is the delay really necessary?

    {
        testHeaders: {
            'Cache-control': 'max-age=1',
        },
        delay: 1.5,
        expectedResult: 'Uncached',
    },
    {
        testHeaders: {
            'Last-modified': '[now-3600s]',
        },
        delay: 1.5,
        expectedResult: 'Cached',
    },
    {
        testHeaders: {
            'Last-modified': '[now-10s]',
        },
        delay: 1.5,
        expectedResult: 'Uncached',
    },
Comment 1 Eric Seidel (no email) 2009-08-04 18:25:57 PDT
Actually, this is the slowest test in Release mode :(

6.22 secs: http/tests/cache/subresource-expiration.html

See list https://bugs.webkit.org/attachment.cgi?id=34108 on bug 27995.
Comment 2 Eric Seidel (no email) 2009-08-11 10:14:31 PDT
Yup, still the slowest test by over a second. :)

https://bugs.webkit.org/attachment.cgi?id=34573
Comment 3 Eric Seidel (no email) 2010-04-01 17:30:39 PDT
Just timed out on Snow Leopard:
http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r56952%20(7567)/results.html
That may not be related to this bug however.