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

Side by Side Diff: third_party/WebKit/LayoutTests/media/audio-play-event.html

Issue 2015503002: Move TODO(philipj) to TODO(foolip) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>'play' event</title> 3 <title>'play' event</title>
4 <script src=media-file.js></script> 4 <script src=media-file.js></script>
5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 5 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
6 (Please avoid writing new tests using video-test.js) --> 6 (Please avoid writing new tests using video-test.js) -->
7 <script src=video-test.js></script> 7 <script src=video-test.js></script>
8 8
9 <script> 9 <script>
10 function start() 10 function start()
11 { 11 {
12 mediaElement = new Audio(); 12 mediaElement = new Audio();
13 waitForEvent('error'); 13 waitForEvent('error');
14 waitForEvent('loadedmetadata'); 14 waitForEvent('loadedmetadata');
15 waitForEvent('canplay'); 15 waitForEvent('canplay');
16 waitForEvent('play'); 16 waitForEvent('play');
17 waitForEvent('playing', function() { endTest(); }); 17 waitForEvent('playing', function() { endTest(); });
18 run("mediaElement.src = findMediaFile('audio', 'content/test')") ; 18 run("mediaElement.src = findMediaFile('audio', 'content/test')") ;
19 run("mediaElement.volume = 1"); 19 run("mediaElement.volume = 1");
20 run("mediaElement.play()"); 20 run("mediaElement.play()");
21 } 21 }
22 </script> 22 </script>
23 </head> 23 </head>
24 24
25 <body onload="start()"> 25 <body onload="start()">
26 <p>Test that a 'play' event listener is triggered when fired by a new audio element.</p> 26 <p>Test that a 'play' event listener is triggered when fired by a new audio element.</p>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698