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

Side by Side Diff: LayoutTests/media/media-controls-invalid-url.html

Issue 17395006: Fix LayoutTests that assume canplay, playing, and canplaythrough will only fire once. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix event-attributes expectations. Created 7 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src=media-file.js></script> 4 <script src=media-file.js></script>
5 <script src=video-test.js></script> 5 <script src=video-test.js></script>
6 <script src=media-controls.js></script> 6 <script src=media-controls.js></script>
7 <script> 7 <script>
8 var video; 8 var video;
9 9
10 function init() 10 function init()
11 { 11 {
12 video = document.getElementsByTagName("video")[0]; 12 video = document.getElementsByTagName("video")[0];
13 video.src = findMediaFile("video", "content/test"); 13 video.src = findMediaFile("video", "content/test");
14 14
15 waitForEvent("canplaythrough", start); 15 waitForEventOnce("canplaythrough", start);
16 waitForEvent("seeked", seeked); 16 waitForEvent("seeked", seeked);
17 waitForEvent("error", error); 17 waitForEvent("error", error);
18 } 18 }
19 19
20 function getTimeLineValue() 20 function getTimeLineValue()
21 { 21 {
22 var timeline; 22 var timeline;
23 var shadowRoot = internals.shadowRoot(video); 23 var shadowRoot = internals.shadowRoot(video);
24 24
25 timeline = mediaControlsElement(shadowRoot.firstChild.firstChild , '-webkit-media-controls-timeline'); 25 timeline = mediaControlsElement(shadowRoot.firstChild.firstChild , '-webkit-media-controls-timeline');
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 68 }
69 </script> 69 </script>
70 </head> 70 </head>
71 <body onload="init()"> 71 <body onload="init()">
72 <p>This tests that media element controls are reset to their default sta te when the src is changed to an invalid url.</p> 72 <p>This tests that media element controls are reset to their default sta te when the src is changed to an invalid url.</p>
73 <p>This test only runs in DRT!</p> 73 <p>This test only runs in DRT!</p>
74 <video controls></video> 74 <video controls></video>
75 <div id="console"></div> 75 <div id="console"></div>
76 </body> 76 </body>
77 </html> 77 </html>
OLDNEW
« no previous file with comments | « LayoutTests/media/event-attributes.html ('k') | LayoutTests/media/media-element-play-after-eos.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698