Bug 28465 - Make media layout test video-source-add-src.html less timing dependent
Summary: Make media layout test video-source-add-src.html less timing dependent
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2009-08-19 11:44 PDT by Eric Carlson
Modified: 2009-08-19 12:32 PDT (History)
0 users

See Also:

proposed patch (2.51 KB, patch)
2009-08-19 12:04 PDT, Eric Carlson
simon.fraser: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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