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

Side by Side Diff: third_party/WebKit/LayoutTests/media/color-profile-video-seek-filter.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 .filter { 6 .filter {
7 -webkit-filter: blur(2px); 7 -webkit-filter: blur(2px);
8 } 8 }
9 9
10 video { 10 video {
(...skipping 16 matching lines...) Expand all
27 <video/> 27 <video/>
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 video.classList.add('filter'); 35 video.classList.add('filter');
36 if (window.testRunner) 36 if (window.testRunner)
37 setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100 ); 37 setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 1 00);
38 video.pause(); 38 video.pause();
39 }, false); 39 }, false);
40 40
41 setSrcByTagName('video', findMediaFile('video', 'content/test')); 41 setSrcByTagName('video', findMediaFile('video', 'content/test'));
42 seek(video, 1.0); 42 seek(video, 1.0);
43 }; 43 };
44 44
45 function seek(video, time) { 45 function seek(video, time) {
46 video.currentTime = time; 46 video.currentTime = time;
47 } 47 }
48 48
49 function done() { 49 function done() {
50 setTimeout(function() { testRunner.notifyDone() }, 0); 50 setTimeout(function() { testRunner.notifyDone() }, 0);
51 } 51 }
52 52
53 if (window.internals)
54 internals.settings.setImageColorProfilesEnabled(true);
55
56 if (window.testRunner) { 53 if (window.testRunner) {
57 testRunner.dumpAsTextWithPixelResults(); 54 testRunner.dumpAsTextWithPixelResults();
58 testRunner.waitUntilDone(); 55 testRunner.waitUntilDone();
59 } 56 }
60 </script> 57 </script>
61 </html> 58 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698