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

Side by Side Diff: third_party/WebKit/LayoutTests/media/color-profile-video.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:000:00.00 -->
22 <video/>
23 </body>
24
25 <script>
26 if (window.testRunner) {
27 testRunner.dumpAsTextWithPixelResults();
28 testRunner.waitUntilDone();
29 }
30
31 window.onload = function() {
32 if (window.internals)
33 internals.settings.setImageColorProfilesEnabled(true);
34
35 if (window.testRunner) {
36 document.querySelector('video').oncanplaythrough = function() {
37 testRunner.setColorProfile('whacked', done);
38 };
39 }
40
41 setSrcByTagName('video', findMediaFile('video', 'content/test'));
42 };
43
44 function done() {
45 setTimeout(function() { testRunner.notifyDone() }, 0);
46 }
47 </script>
48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698