[Webkit-unassigned] [Bug 61573] Update LayoutTests/media/broken-video to test for correct error codes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 6 13:20:41 PDT 2011


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





--- Comment #5 from Scott Franklin <scottfr at google.com>  2011-07-06 13:20:41 PST ---
(In reply to comment #3)
> (From update of attachment 95064 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=95064&action=review
> 
> r=me with the changes suggested.
> 
> > LayoutTests/media/broken-video.html:2
> > +<p>Test that QuickTime file with broken headers and content generates a SRC_NOT_SUPPORTED error.<p>
> 
> This comment is incorrect as the test will not open a QuickTime movie, the two files that can be opened are garbage.mp4 and garbage.ogv. You also added a check for networkState so you may as well mention that as well. Something like "Tests that an invalid video file generates a MEDIA_ERR_SRC_NOT_SUPPORTED error and sets networkState to NETWORK_NO_SOURCE" perhaps?

I thought the bit about QuickTime was weird, but I was trying to retain similarity to the original. Your suggestion is better.

> 
> > LayoutTests/media/broken-video.html:11
> > +        testExpected("video.error.code", "4");
> > +        testExpected("video.networkState", "3");
> 
> I would prefer to have the named constants used here:
> 
>     testExpected("video.error.code", MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED);
>     testExpected("video.networkState", HTMLMediaElement.NETWORK_NO_SOURCE);

I didn't realize those existed. Fixed.

-- 
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