[Webkit-unassigned] [Bug 68589] [Qt][Gtk] Wrong state when pausing a video in the "playing" event handler

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 22 09:39:40 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=68589


Philippe Normand <pnormand at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #108344|review?                     |review-
               Flag|                            |




--- Comment #8 from Philippe Normand <pnormand at igalia.com>  2011-09-22 09:39:39 PST ---
(From update of attachment 108344)
View in context: https://bugs.webkit.org/attachment.cgi?id=108344&action=review

Thanks for the test, just some nits to fix.

> LayoutTests/media/video-playing-and-pause.html:7
> +            var timeAfterPlay;

This variable is not used, not needed :)

> LayoutTests/media/video-playing-and-pause.html:13
> +                v.src="content/counting.ogv";

findMediaElement();
video.src = findMediaFile("video", "content/test");

doesn't work?

> LayoutTests/media/video-playing-and-pause.html:26
> +                var v = document.getElementById("v");

This is not needed. findMediaElement(), if called before, will set a global video variable.

> LayoutTests/media/video-playing-and-pause.html:27
> +                v.pause();

video.pause() should work

> LayoutTests/media/video-playing-and-pause.html:35
> +                    document.getElementById("parentDiv").innerHTML = "FAIL";

You need endTest() after this statement, I think. Otherwise the test might just time out.

> LayoutTests/media/video-playing-and-pause.html:47
> +        <p>Test that pausing the media element in "playing" event handler pauses the media immediately.</p>

Maybe worth addind a comment about the result showing the first frame, I leave that up to you.

> LayoutTests/media/video-playing-and-pause.html:48
> +        <video id="v" autoplay controls></video>

No need for an id.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list