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

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

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
5 (Please avoid writing new tests using video-test.js) -->
4 <script src="video-test.js"></script> 6 <script src="video-test.js"></script>
5 <script> 7 <script>
6 function test() 8 function test()
7 { 9 {
8 testExpected("mediaElement.canPlayType('APPLICATION/octet-stream ')", ""); 10 testExpected("mediaElement.canPlayType('APPLICATION/octet-stream ')", "");
9 testExpected("mediaElement.canPlayType('application/octet-stream ;codecs=theora')", ""); 11 testExpected("mediaElement.canPlayType('application/octet-stream ;codecs=theora')", "");
10 testExpected("mediaElement.canPlayType('application/octet-stream ;codecs=mp4')", ""); 12 testExpected("mediaElement.canPlayType('application/octet-stream ;codecs=mp4')", "");
11 } 13 }
12 14
13 function start() 15 function start()
14 { 16 {
15 consoleWrite("<em>++ Test with &lt;video&gt; element.</em>"); 17 consoleWrite("<em>++ Test with &lt;video&gt; element.</em>");
16 mediaElement = document.getElementsByTagName('video')[0]; 18 mediaElement = document.getElementsByTagName('video')[0];
17 test(); 19 test();
18 20
19 consoleWrite("<br><em>++ Test with &lt;audio&gt; element.</em>") ; 21 consoleWrite("<br><em>++ Test with &lt;audio&gt; element.</em>") ;
20 mediaElement = new Audio(); 22 mediaElement = new Audio();
21 test(); 23 test();
22 24
23 endTest(); 25 endTest();
24 } 26 }
25 </script> 27 </script>
26 </head> 28 </head>
27 <body onload="start()"> 29 <body onload="start()">
28 <video controls></video> 30 <video controls></video>
29 <p>Test HTMLMediaElement <em>canPlayType()</em> method with "application /octet-stream".</p> 31 <p>Test HTMLMediaElement <em>canPlayType()</em> method with "application /octet-stream".</p>
30 <p>These tests should always pass as no WebKit port should support "appl ication/octet-stream".</p> 32 <p>These tests should always pass as no WebKit port should support "appl ication/octet-stream".</p>
31 </body> 33 </body>
32 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698