Bug 103446

Summary: Layout Test http/tests/canvas/canvas-slow-font-loading.html is failing
Product: WebKit Reporter: Robert Kroeger <rjkroege>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, d-r, noel.gordon
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Robert Kroeger 2012-11-27 12:18:13 PST
The following layout test is failing on Chromium SnowLeopard / Lion

http/tests/canvas/canvas-slow-font-loading.html

Perhaps caused by http://trac.webkit.org/browser/?rev=135888
Comment 1 Chris Dumez 2012-11-27 12:20:00 PST
Yes, I introduced this test in http://trac.webkit.org/changeset/135888. I'll take a look.
Comment 2 Chris Dumez 2012-11-27 12:31:31 PST
I checked the diff from:
http://build.webkit.org/results/Chromium%20Mac%20Release%20%28Tests%29/r135890%20%2829113%29/http/tests/canvas/canvas-slow-font-loading-diffs.html

The output is a green rectangle which means that the Ahem font was fully loaded when drawing. slow-ahem-loading.cgi was supposed to delay the font loading long enough so that the fallback font is used.

There are several possible explanations:
1. The Ahem font was cached in a previous test and the font does not need loading any more when canvas-slow-font-loading.html is run (At least some ports clear the cache between tests, I don't know about chromium).
2. The delay in slow-ahem-loading.cgi is not big enough, in which case the test would likely be flaky rather than consistently failing.
Comment 3 Chris Dumez 2012-11-27 12:35:16 PST
Is the test failing if run alone? If not, that would hint that my font caching assumption is correct.
Comment 4 noel gordon 2012-12-02 23:26:36 PST
Fails for me locally on chrome mac DRT when run alone.  Output image is a green rectangle.
Comment 5 Chris Dumez 2012-12-02 23:31:55 PST
(In reply to comment #4)
> Fails for me locally on chrome mac DRT when run alone.  Output image is a green rectangle.

Does increasing the sleep value in slow-ahem-loading.cgi help?
Comment 6 noel gordon 2012-12-02 23:42:32 PST
I increased it to 3 seconds, no joy.