WebCore:
authorantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Nov 2007 01:54:55 +0000 (01:54 +0000)
committerantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Nov 2007 01:54:55 +0000 (01:54 +0000)
commit26cd5fe6cf032781401e4637a1e9e191da9331d1
tree7df31c3dafa9f0bd6bf64171e605e72283f0c6e8
parent4402e5b744beec79dcc1e460cd33c1745a003f38
WebCore:

        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: https://svn.webkit.org/repository/webkit/trunk@27696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
LayoutTests/ChangeLog
LayoutTests/media/video-currentTime-expected.txt
LayoutTests/media/video-currentTime.html
LayoutTests/media/video-pause-empty-events-expected.txt [new file with mode: 0644]
LayoutTests/media/video-pause-empty-events.html [new file with mode: 0644]
LayoutTests/media/video-play-empty-events-expected.txt [new file with mode: 0644]
LayoutTests/media/video-play-empty-events.html [new file with mode: 0644]
LayoutTests/media/video-play-pause-events-expected.txt [new file with mode: 0644]
LayoutTests/media/video-play-pause-events.html [new file with mode: 0644]
LayoutTests/media/video-play-pause-exception-expected.txt [new file with mode: 0644]
LayoutTests/media/video-play-pause-exception.html [new file with mode: 0644]
LayoutTests/media/video-test.js
WebCore/ChangeLog
WebCore/html/HTMLMediaElement.cpp
WebCore/html/HTMLMediaElement.h