Bug 1006186 - Update discovery tests since we support webm now r=me

This commit is contained in:
Mark Finkle 2014-07-18 17:41:31 -04:00
parent 5e4076951b
commit f2c5ab31cd
2 changed files with 17 additions and 4 deletions

View File

@ -46,8 +46,10 @@ let videoDiscoveryTests = [
{ id: "simple-mp4", source: "http://mochi.test:8888/simple.mp4", poster: "http://mochi.test:8888/simple.png", text: "simple video with mp4 src" },
{ id: "simple-fail", pass: false, text: "simple video with no mp4 src" },
{ id: "with-sources-mp4", source: "http://mochi.test:8888/simple.mp4", text: "video with mp4 extension source child" },
{ id: "with-sources-webm", source: "http://mochi.test:8888/simple.webm", text: "video with webm extension source child" },
{ id: "with-sources-fail", pass: false, text: "video with no mp4 extension source child" },
{ id: "with-sources-mimetype", source: "http://mochi.test:8888/simple-video-mp4", text: "video with mp4 mimetype source child" },
{ id: "with-sources-mimetype-mp4", source: "http://mochi.test:8888/simple-video-mp4", text: "video with mp4 mimetype source child" },
{ id: "with-sources-mimetype-webm", source: "http://mochi.test:8888/simple-video-webm", text: "video with webm mimetype source child" },
{ id: "video-overlay", source: "http://mochi.test:8888/simple.mp4", text: "div overlay covering a simple video with mp4 src" }
];

View File

@ -31,18 +31,29 @@
<source src="/simple.mp4">
</video>
<!-- FAIL: source list uses a mp4 extension -->
<video id="with-sources-fail">
<!-- PASS: source list uses a webm extension -->
<video id="with-sources-webm">
<source src="/simple.ogg">
<source src="/simple.webm">
</video>
<!-- FAIL: source list has no mp4 or webm extension -->
<video id="with-sources-fail">
<source src="/simple.ogg">
</video>
<!-- PASS: source list uses a mp4 mimetype -->
<video id="with-sources-mimetype">
<video id="with-sources-mimetype-mp4">
<source src="/simple-video-ogg" type="video/ogg">
<source src="/simple-video-mp4" type="video/mp4">
</video>
<!-- PASS: source list uses a webm mimetype -->
<video id="with-sources-mimetype-webm">
<source src="/simple-video-ogg" type="video/ogg">
<source src="/simple-video-webm" type="video/webm">
</video>
<!-- PASS: source list uses a mp4 mimetype and extra data -->
<video id="with-sources-mimetype-plus">
<source src="/simple-video-ogg" type="video/ogg">