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

Unified Diff: third_party/WebKit/LayoutTests/compositing/canvas-with-object-fit-contain-in-composited-layer-expected.html

Issue 2179913002: Make compositing/canvas-with-object-fit-contain-in-composited-layer.html less flaky (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/compositing/canvas-with-object-fit-contain-in-composited-layer.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/compositing/canvas-with-object-fit-contain-in-composited-layer-expected.html
diff --git a/third_party/WebKit/LayoutTests/compositing/canvas-with-object-fit-contain-in-composited-layer-expected.html b/third_party/WebKit/LayoutTests/compositing/canvas-with-object-fit-contain-in-composited-layer-expected.html
index fc70a9890d1081eed96107802aecc475deb6e174..887f693f0d793de3f19e0b2813532642f7d431e3 100644
--- a/third_party/WebKit/LayoutTests/compositing/canvas-with-object-fit-contain-in-composited-layer-expected.html
+++ b/third_party/WebKit/LayoutTests/compositing/canvas-with-object-fit-contain-in-composited-layer-expected.html
@@ -2,29 +2,20 @@
<style>
canvas {
background-color: gray;
- width: 200px;
- height: 200px;
+ width: 100px;
+ height: 100px;
}
</style>
-<p>Test passes if a green square inside an orange rectanlge is shown up without a distortion.
+<p>Test passes if a green square inside a gray square is shown without distortion.</p>
<div>
- <canvas width='200' height='200'></canvas>
+ <canvas width='100' height='100'></canvas>
</div>
<script>
function paintCanvas(canvas)
{
var ctx = canvas.getContext('2d');
- ctx.fillStyle = 'orange';
-
- ctx.save();
- ctx.beginPath();
- ctx.rect(50, 0, 100, 200);
- ctx.clip();
- ctx.fillRect(0, 0, 200, 200);
- ctx.restore();
-
ctx.fillStyle = 'green';
- ctx.fillRect(75, 75, 50, 50);
+ ctx.fillRect(35, 35, 30, 30);
}
paintCanvas(document.querySelector('canvas'));
« no previous file with comments | « third_party/WebKit/LayoutTests/compositing/canvas-with-object-fit-contain-in-composited-layer.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698