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

Side by Side Diff: LayoutTests/media/video-source-error-no-candidate.html

Issue 334353003: Fix LayoutTest that broke on Chrome builds when media attribute logic was removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 | LayoutTests/media/video-source-error-no-candidate-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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=video-test.js></script> 5 <script src=video-test.js></script>
6 6
7 <script> 7 <script>
8 8
9 var sources = []; 9 var sources = [];
10 var errorCount = 0; 10 var errorCount = 0;
11 var expectedErrorCount = 5; 11 var expectedErrorCount = 4;
12 12
13 function errorEvent(evt) 13 function errorEvent(evt)
14 { 14 {
15 consoleWrite(""); 15 consoleWrite("");
16 16
17 var ndx; 17 var ndx;
18 for (ndx = 0; ndx < sources.length; ndx++) { 18 for (ndx = 0; ndx < sources.length; ndx++) {
19 if (sources[ndx] == evt.target) 19 if (sources[ndx] == evt.target)
20 break; 20 break;
21 } 21 }
(...skipping 20 matching lines...) Expand all
42 42
43 findMediaElement(); 43 findMediaElement();
44 } 44 }
45 </script> 45 </script>
46 </head> 46 </head>
47 47
48 <body> 48 <body>
49 49
50 <video onloadstart="start()" controls> 50 <video onloadstart="start()" controls>
51 <source id=missing-src type="video/blahblah"> 51 <source id=missing-src type="video/blahblah">
52 <source id=bogus-type src=content/test.mp4 type="video/blahblah"> 52 <source id=bogus-type src=content/test.ogv type="video/blahblah">
53 <source id=unsupported-media-query src=content/test.mp4 media=print> 53 <source id=empty-src src="" type="video/ogg">
54 <source id=empty-src src="" type="video/mp4">
55 <source id=no-extension-no-type src=nonexistent> 54 <source id=no-extension-no-type src=nonexistent>
56 </video> 55 </video>
57 56
58 <p>Test that 'error' events are fired from &lt;source&gt; element when i t can not be used.</p> 57 <p>Test that 'error' events are fired from &lt;source&gt; element when i t can not be used.</p>
59 58
60 </body> 59 </body>
61 </html> 60 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/video-source-error-no-candidate-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698