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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-source-error.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, 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
OLDNEW
1 <html lang="en"> 1 <html lang="en">
2 <head> 2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4 <title>&lt;video&gt; and &lt;source&gt; error test</title> 4 <title>&lt;video&gt; and &lt;source&gt; error test</title>
5 <script src=media-file.js></script> 5 <script src=media-file.js></script>
6 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
7 (Please avoid writing new tests using video-test.js) -->
6 <script src=video-test.js></script> 8 <script src=video-test.js></script>
7 9
8 <script> 10 <script>
9 11
10 var sources = []; 12 var sources = [];
11 13
12 function loadeddata() 14 function loadeddata()
13 { 15 {
14 consoleWrite(""); 16 consoleWrite("");
15 testExpected("relativeURL(video.currentSrc)", findMediaFile("vid eo", "content/test")); 17 testExpected("relativeURL(video.currentSrc)", findMediaFile("vid eo", "content/test"));
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 <body> 60 <body>
59 61
60 <video controls> 62 <video controls>
61 <source id=missing-src type="video/blahblah"> 63 <source id=missing-src type="video/blahblah">
62 <source id=bogus-type src=content/test.mp4 type="video/blahblah"> 64 <source id=bogus-type src=content/test.mp4 type="video/blahblah">
63 <source id=missing-file src=content/error2.mpeg type=video/mpeg> 65 <source id=missing-file src=content/error2.mpeg type=video/mpeg>
64 <source id=format-error src="content/unsupported_track.mov"> 66 <source id=format-error src="content/unsupported_track.mov">
65 <source id=supported-format-mp4 src=content/test.mp4 type="video/mp4 ; codecs=&quot;avc1.4D400C&quot;"> 67 <source id=supported-format-mp4 src=content/test.mp4 type="video/mp4 ; codecs=&quot;avc1.4D400C&quot;">
66 <source id=supported-format-ogv src=content/test.ogv type="video/ogg "> 68 <source id=supported-format-ogv src=content/test.ogv type="video/ogg ">
67 </video> 69 </video>
68 70
69 <p>1. Test that errors fired while evaluating/loading &lt;source&gt; ele ments are fired at the 71 <p>1. Test that errors fired while evaluating/loading &lt;source&gt; ele ments are fired at the
70 &lt;source&gt; and not at the &lt;video&gt; element. 72 &lt;source&gt; and not at the &lt;video&gt; element.
71 <br>2. Verifiy that an 'error' event fired while processing/loading a &l t;source&gt; element 73 <br>2. Verifiy that an 'error' event fired while processing/loading a &l t;source&gt; element
72 does not set the media element's 'error' attribute.</p> 74 does not set the media element's 'error' attribute.</p>
73 75
74 <script>start()</script> 76 <script>start()</script>
75 </body> 77 </body>
76 </html> 78 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698