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

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

Issue 2217463003: Color profile layout test cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 11 matching lines...) Expand all
22 <video/> 22 <video/>
23 </body> 23 </body>
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.internals)
33 internals.settings.setImageColorProfilesEnabled(true);
34
35 if (window.testRunner) { 32 if (window.testRunner) {
36 document.querySelector('video').oncanplaythrough = function() { 33 document.querySelector('video').oncanplaythrough = function() {
37 testRunner.setColorProfile('whacked', done); 34 testRunner.setColorProfile('colorSpin', done);
38 }; 35 };
39 } 36 }
40 37
41 setSrcByTagName('video', findMediaFile('video', 'content/test')); 38 setSrcByTagName('video', findMediaFile('video', 'content/test'));
42 }; 39 };
43 40
44 function done() { 41 function done() {
45 setTimeout(function() { testRunner.notifyDone() }, 0); 42 setTimeout(function() { testRunner.notifyDone() }, 0);
46 } 43 }
47 </script> 44 </script>
48 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698