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

Side by Side Diff: third_party/WebKit/LayoutTests/media/media-continues-playing-after-replace-source.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 <html> 1 <html>
2 <title>Test media source replacement</title> 2 <title>Test media source replacement</title>
3 <body> 3 <body>
4 4
5 <p>Test that media keeps playing when the source element is replaced.</p> 5 <p>Test that media keeps playing when the source element is replaced.</p>
6 6
7 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
8 (Please avoid writing new tests using video-test.js) -->
7 <script src=video-test.js></script> 9 <script src=video-test.js></script>
8 <script src=media-file.js></script> 10 <script src=media-file.js></script>
9 <script src=../resources/gc.js></script> 11 <script src=../resources/gc.js></script>
10 <script> 12 <script>
11 var timeupdateEventCount = 0; 13 var timeupdateEventCount = 0;
12 var skippedCount = 0; 14 var skippedCount = 0;
13 var sourceReplaced = false; 15 var sourceReplaced = false;
14 16
15 function swapAudio() { 17 function swapAudio() {
16 v = document.getElementsByTagName('audio')[0]; 18 v = document.getElementsByTagName('audio')[0];
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 102
101 } 103 }
102 104
103 document.write("<audio controls></audio>"); 105 document.write("<audio controls></audio>");
104 testAudioElement(0); 106 testAudioElement(0);
105 gc(); 107 gc();
106 </script> 108 </script>
107 109
108 </body> 110 </body>
109 </html> 111 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698