Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-repaint-by-all-imagesource.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-repaint-by-all-imagesource.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-repaint-by-all-imagesource.html |
| index abefc21aba911ecbdad3b67fba44955cb2b955c6..9a53b33ca6894de7779c7ee0e4ac91e38bc478ca 100644 |
| --- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-repaint-by-all-imagesource.html |
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-composite-repaint-by-all-imagesource.html |
| @@ -127,26 +127,30 @@ |
| context.drawImage(document.getElementById('video'), 10, 10); |
| } |
| + function repaintTestAt(i, j) { |
|
wkorman
2016/07/19 21:49:21
This looks like it is from a different change?
chrishtr
2016/07/19 21:55:06
Removed. Was for debugging.
|
| + var context = getContext(i, j); |
| + context.globalCompositeOperation = compositeTypes[i]; |
| + switch (testNames[j]) { |
| + case 'solid color': |
| + drawRect(context); |
| + break; |
| + case 'image': |
| + drawImage(context); |
| + break; |
| + case 'canvas': |
| + drawCanvas(context); |
| + break; |
| + case 'video': |
| + drawVideo(context); |
| + } |
| + context.restore(); |
| + } |
| + |
| // callback from text-based-repaint.js |
| function repaintTest() { |
| for (var i = 0; i < compositeTypes.length; i++) { |
| for (var j = 0; j < testNames.length; j++) { |
| - var context = getContext(i, j); |
| - context.globalCompositeOperation = compositeTypes[i]; |
| - switch (testNames[j]) { |
| - case 'solid color': |
| - drawRect(context); |
| - break; |
| - case 'image': |
| - drawImage(context); |
| - break; |
| - case 'canvas': |
| - drawCanvas(context); |
| - break; |
| - case 'video': |
| - drawVideo(context); |
| - } |
| - context.restore(); |
| + repaintTestAt(i, j); |
| } |
| } |
| // Because canvas invalidations are processed at the end of the current task, |
| @@ -176,3 +180,8 @@ |
| </script> |
| </body> |
| </html> |
| +<script> |
| +onload = function() { |
| + setTimeout(() => repaintTestAt(10, 3), 3000); |
| +} |
| +</script> |