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

Side by Side Diff: third_party/WebKit/LayoutTests/images/color-profile-image-canvas-svg.html

Issue 2936163002: Re-enable media query API test (Closed)
Patch Set: Just API Created 3 years, 6 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
« no previous file with comments | « third_party/WebKit/LayoutTests/images/color-profile-image-canvas.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <script src="../resources/run-after-layout-and-paint.js"></script> 3 <script src="../resources/run-after-layout-and-paint.js"></script>
4 4
5 <style> 5 <style>
6 canvas, img { margin-bottom: -10px; } 6 canvas, img { margin-bottom: -10px; }
7 </style> 7 </style>
8 8
9 <body style="overflow: hidden"> 9 <body style="overflow: hidden">
10 <!-- The red sector of the canvas images should be at 12 o'clock. --> 10 <!-- The red sector of the canvas images should be at 12 o'clock. -->
(...skipping 19 matching lines...) Expand all
30 setTimeout(drawImageToCanvas, 0, document.querySelector('img')); 30 setTimeout(drawImageToCanvas, 0, document.querySelector('img'));
31 } 31 }
32 32
33 function drawImageToCanvas(image) { 33 function drawImageToCanvas(image) {
34 var canvas = document.querySelector('canvas'); 34 var canvas = document.querySelector('canvas');
35 35
36 canvas.getContext('2d').clearRect(0, 0, canvas.width, canvas.height); 36 canvas.getContext('2d').clearRect(0, 0, canvas.width, canvas.height);
37 canvas.getContext('2d').drawImage(image, 0, 0); 37 canvas.getContext('2d').drawImage(image, 0, 0);
38 38
39 if (window.testRunner) 39 if (window.testRunner)
40 runAfterLayoutAndPaint(setWhackedColorProfile); 40 setTimeout(function() { window.testRunner.notifyDone() }, 0);
41 }
42
43 function setWhackedColorProfile() {
44 window.testRunner.setColorProfile('colorSpin', done);
45 }
46
47 function done() {
48 setTimeout(function() { window.testRunner.notifyDone() }, 0);
49 } 41 }
50 42
51 if (window.testRunner) { 43 if (window.testRunner) {
52 testRunner.dumpAsTextWithPixelResults(); 44 testRunner.dumpAsTextWithPixelResults();
53 testRunner.waitUntilDone(); 45 testRunner.waitUntilDone();
54 } 46 }
55 </script> 47 </script>
56 </html> 48 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/images/color-profile-image-canvas.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698