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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/video-cross-origin-readback.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 <body onload="start()"> 2 <body onload="start()">
3 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
4 (Please avoid writing new tests using video-test.js) -->
3 <script src=../../media-resources/video-test.js></script> 5 <script src=../../media-resources/video-test.js></script>
4 <script src=../../media-resources/media-file.js></script> 6 <script src=../../media-resources/media-file.js></script>
5 <script> 7 <script>
6 waitForEvent('error', function() { 8 waitForEvent('error', function() {
7 failTest("error: " + JSON.stringify(video.error)); 9 failTest("error: " + JSON.stringify(video.error));
8 }); 10 });
9 11
10 waitForEvent('playing', function() { 12 waitForEvent('playing', function() {
11 try { 13 try {
12 var ctx = document.getElementsByTagName('canvas')[0].getContext("2 d"); 14 var ctx = document.getElementsByTagName('canvas')[0].getContext("2 d");
(...skipping 11 matching lines...) Expand all
24 var type = mimeTypeForExtension(mediaFile.split('.').pop()); 26 var type = mimeTypeForExtension(mediaFile.split('.').pop());
25 video.src = "http://localhost:8080/security/resources/video-cross-or igin-allow.php?name=" + mediaFile + "&type=" + type; 27 video.src = "http://localhost:8080/security/resources/video-cross-or igin-allow.php?name=" + mediaFile + "&type=" + type;
26 video.play(); 28 video.play();
27 } 29 }
28 </script> 30 </script>
29 31
30 <video crossorigin></video> 32 <video crossorigin></video>
31 <canvas></canvas> 33 <canvas></canvas>
32 </body> 34 </body>
33 </head> 35 </head>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698