Bug 28465

Summary: Make media layout test video-source-add-src.html less timing dependent
Product: WebKit Reporter: Eric Carlson <eric.carlson>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
proposed patch simon.fraser: review+

Description Eric Carlson 2009-08-19 11:44:28 PDT
Layouttests/media/video-source-add-src.html sets the <video> element src in the 'loadstart' event handler and sets a timer to fire in 200ms to check the element state and end the test. The test also logs a number of events that fire after 'loadstart', but on a slow (or loaded) machine the 200ms timer can trigger before all of the media events fire - causing the test to "fail" because not all events are logged.
Comment 1 Eric Carlson 2009-08-19 12:04:33 PDT
Created attachment 35131 [details]
proposed patch
Comment 2 Eric Carlson 2009-08-19 12:32:34 PDT
http://trac.webkit.org/changeset/47518