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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-source-add-after-remove.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 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Add &lt;source> after removing failed candidate</title> 4 <title>Add &lt;source> after removing failed candidate</title>
5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
6 (Please avoid writing new tests using video-test.js) -->
5 <script src=video-test.js></script> 7 <script src=video-test.js></script>
6 <script src=media-file.js></script> 8 <script src=media-file.js></script>
7 <script> 9 <script>
8 function error() 10 function error()
9 { 11 {
10 findMediaElement(); 12 findMediaElement();
11 video.removeChild(video.firstChild); 13 video.removeChild(video.firstChild);
12 var source = document.createElement("source"); 14 var source = document.createElement("source");
13 source.src = findMediaFile("video", "content/test"); 15 source.src = findMediaFile("video", "content/test");
14 video.appendChild(source); 16 video.appendChild(source);
15 waitForEventAndEnd("loadedmetadata"); 17 waitForEventAndEnd("loadedmetadata");
16 } 18 }
17 </script> 19 </script>
18 </head> 20 </head>
19 21
20 <body> 22 <body>
21 <video><source onerror="error()"></video> 23 <video><source onerror="error()"></video>
22 </body> 24 </body>
23 </html> 25 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/media/video-source.html ('k') | third_party/WebKit/LayoutTests/media/video-source-error.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698