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

Side by Side Diff: third_party/WebKit/LayoutTests/media/color-profile-video-seek-object-fit.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 .test { 6 .test {
7 object-fit: contain; 7 object-fit: contain;
8 height: 200px; 8 height: 200px;
9 } 9 }
10 10
(...skipping 15 matching lines...) Expand all
26 2) the video seek point is near 00:00:03.19 --> 26 2) the video seek point is near 00:00:03.19 -->
27 <video class="test"/> 27 <video class="test"/>
28 </body> 28 </body>
29 29
30 <script> 30 <script>
31 window.onload = function() { 31 window.onload = function() {
32 var video = document.querySelector('video'); 32 var video = document.querySelector('video');
33 33
34 video.addEventListener('seeked', function() { 34 video.addEventListener('seeked', function() {
35 if (window.testRunner) 35 if (window.testRunner)
36 setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100 ); 36 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 1 00);
37 video.pause(); 37 video.pause();
38 }, false); 38 }, false);
39 39
40 setSrcByTagName('video', findMediaFile('video', 'content/test')); 40 setSrcByTagName('video', findMediaFile('video', 'content/test'));
41 seek(video, 3.8); 41 seek(video, 3.8);
42 }; 42 };
43 43
44 function seek(video, time) { 44 function seek(video, time) {
45 video.currentTime = time; 45 video.currentTime = time;
46 } 46 }
47 47
48 function done() { 48 function done() {
49 setTimeout(function() { testRunner.notifyDone() }, 0); 49 setTimeout(function() { testRunner.notifyDone() }, 0);
50 } 50 }
51 51
52 if (window.internals)
53 internals.settings.setImageColorProfilesEnabled(true);
54
55 if (window.testRunner) { 52 if (window.testRunner) {
56 testRunner.dumpAsTextWithPixelResults(); 53 testRunner.dumpAsTextWithPixelResults();
57 testRunner.waitUntilDone(); 54 testRunner.waitUntilDone();
58 } 55 }
59 </script> 56 </script>
60 </html> 57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698