Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: third_party/WebKit/LayoutTests/media/media-can-play-ogg.html

Issue 2723323002: Update media canPlayType() tests to be spec-compliant (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/media-can-play-webm.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Test HTMLMediaElement's "canPlayType" method for ogg media containers.</t itle> 2 <title>Test HTMLMediaElement's "canPlayType" method for ogg media containers.</t itle>
3 <script src="../resources/testharness.js"></script> 3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <video></video> 5 <video></video>
6 <script> 6 <script>
7 test(function() { 7 test(function() {
8 var video = document.querySelector("video"); 8 var video = document.querySelector('video');
9 // These tests may be expected to fail if the platform does not support the format. 9 // These tests may be expected to fail if the platform does not support the format.
10 assert_equals(video.canPlayType("audio/ogg"), "maybe"); 10 assert_equals(video.canPlayType('audio/ogg'), 'maybe');
11 assert_equals(video.canPlayType("video/ogg"), "maybe"); 11 assert_equals(video.canPlayType('video/ogg'), 'maybe');
12 12
13 assert_equals(video.canPlayType("audio/ogg; codecs=vorbis"), "probably"); 13 assert_equals(video.canPlayType('audio/ogg; codecs=vorbis'), 'probably');
14 assert_equals(video.canPlayType("audio/ogg; codecs=opus"), "probably"); 14 assert_equals(video.canPlayType('audio/ogg; codecs=opus'), 'probably');
15 assert_equals(video.canPlayType("video/ogg; codecs=theora"), "probably"); 15 assert_equals(video.canPlayType('video/ogg; codecs=theora'), 'probably');
16 assert_equals(video.canPlayType("video/ogg; codecs=theora,vorbis"), "probabl y"); 16 assert_equals(video.canPlayType('video/ogg; codecs="theora,vorbis"'), 'proba bly');
17 }); 17 });
18 </script> 18 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/media-can-play-webm.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698