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

Side by Side Diff: third_party/WebKit/LayoutTests/media/color-profile-video.html

Issue 2938543003: Remove almost all Javascript calls to setColorProfile (Closed)
Patch Set: Created 3 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 <!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 <style> 5 <style>
6 video { 6 video {
7 outline: 15px solid blue; 7 outline: 15px solid blue;
8 border: 15px solid green; 8 border: 15px solid green;
9 background: orange; 9 background: orange;
10 padding: 15px; 10 padding: 15px;
(...skipping 13 matching lines...) Expand all
24 24
25 <script> 25 <script>
26 if (window.testRunner) { 26 if (window.testRunner) {
27 testRunner.dumpAsTextWithPixelResults(); 27 testRunner.dumpAsTextWithPixelResults();
28 testRunner.waitUntilDone(); 28 testRunner.waitUntilDone();
29 } 29 }
30 30
31 window.onload = function() { 31 window.onload = function() {
32 if (window.testRunner) { 32 if (window.testRunner) {
33 document.querySelector('video').oncanplaythrough = function() { 33 document.querySelector('video').oncanplaythrough = function() {
34 testRunner.setColorProfile('colorSpin', done); 34 setTimeout(function() { testRunner.notifyDone() }, 0);
35 }; 35 };
36 } 36 }
37 37
38 setSrcByTagName('video', findMediaFile('video', 'content/test')); 38 setSrcByTagName('video', findMediaFile('video', 'content/test'));
39 }; 39 };
40
41 function done() {
42 setTimeout(function() { testRunner.notifyDone() }, 0);
43 }
44 </script> 40 </script>
45 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698