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

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

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="media-file.js"></script>
5 <style>
6 video {
7 outline: 15px solid blue;
8 border: 15px solid green;
9 background: orange;
10 padding: 15px;
11 margin: 20px;
12 width: 300px;
13 }
14 </style>
15 </head>
16
17 <body>
18 <!-- This test passes if:
19 1) the final colored blocks in the series of the colored blocks in
20 the video content area are respectively: cyan, blue, green
21 2) the video seek point is 00:00:03.19 -->
22 <video/>
23 </body>
24
25 <script>
26 window.onload = function() {
27 var video = document.querySelector('video');
28
29 video.oncanplaythrough = function() {
30 if (window.testRunner)
31 setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100 );
32 seek(video, 3.8);
33 };
34
35 setSrcByTagName('video', findMediaFile('video', 'content/test'));
36 };
37
38 function seek(video, time) {
39 video.currentTime = time;
40 }
41
42 function done() {
43 setTimeout(function() { testRunner.notifyDone() }, 0);
44 }
45
46 if (window.internals)
47 internals.settings.setImageColorProfilesEnabled(true);
48
49 if (window.testRunner) {
50 testRunner.dumpAsTextWithPixelResults();
51 testRunner.waitUntilDone();
52 }
53 </script>
54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698