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

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

Powered by Google App Engine
This is Rietveld 408576698