Commit 68ec20f8 authored by acolwell@chromium.org's avatar acolwell@chromium.org

Fix LayoutTest that broke on Chrome builds when media attribute logic was removed.

This change removes the "invalid media attribute" case from this test
so that it passes on release builds. This test was passing for the
wrong reasons on the Chromium waterfall because an error was being generated
for MP4 not being supported instead of the invalid attribute. The test
URL was changed to an Ogg file so that a supported media type will
be used on both the Chrome and Chromium builds.

BUG=338197
TESTS=LayoutTests/media/video-source-error-no-candidate.html

Review URL: https://codereview.chromium.org/334353003

git-svn-id: svn://svn.chromium.org/blink/trunk@176296 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent bf47b08f
......@@ -4,10 +4,7 @@ Test that 'error' events are fired from <source> element when it can not be used
EVENT(error) from <source id='missing-src' src=null> OK
EXPECTED (video.error == 'null') OK
EVENT(error) from <source id='bogus-type' src='content/test.mp4'> OK
EXPECTED (video.error == 'null') OK
EVENT(error) from <source id='unsupported-media-query' src='content/test.mp4'> OK
EVENT(error) from <source id='bogus-type' src='content/test.ogv'> OK
EXPECTED (video.error == 'null') OK
EVENT(error) from <source id='empty-src' src='video-source-error-no-candidate.html'> OK
......
......@@ -8,7 +8,7 @@
var sources = [];
var errorCount = 0;
var expectedErrorCount = 5;
var expectedErrorCount = 4;
function errorEvent(evt)
{
......@@ -49,9 +49,8 @@
<video onloadstart="start()" controls>
<source id=missing-src type="video/blahblah">
<source id=bogus-type src=content/test.mp4 type="video/blahblah">
<source id=unsupported-media-query src=content/test.mp4 media=print>
<source id=empty-src src="" type="video/mp4">
<source id=bogus-type src=content/test.ogv type="video/blahblah">
<source id=empty-src src="" type="video/ogg">
<source id=no-extension-no-type src=nonexistent>
</video>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment