-
antti authored
Reviewed by Darin. - Update play() and pause() to match current HTML5 draft - send events asynchronously - add timeupdate event to pause - rethrow load() exception, not others - Use list for async events to get ordering right Tests: media/video-pause-empty-events.html media/video-play-empty-events.html media/video-play-pause-events.html media/video-play-pause-exception.html * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::dispatchEventAsync): (WebCore::HTMLMediaElement::asyncEventTimerFired): (WebCore::HTMLMediaElement::play): (WebCore::HTMLMediaElement::pause): * html/HTMLMediaElement.h: LayoutTests: Reviewed by Darin. Add tests for play() and pause() events. Update one test to match new behavior. * media/video-currentTime-expected.txt: * media/video-currentTime.html: * media/video-pause-empty-events-expected.txt: Added. * media/video-pause-empty-events.html: Added. * media/video-play-empty-events-expected.txt: Added. * media/video-play-empty-events.html: Added. * media/video-play-pause-events-expected.txt: Added. * media/video-play-pause-events.html: Added. * media/video-play-pause-exception-expected.txt: Added * media/video-play-pause-exception.html: Added * media/video-test.js: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2e25dae5