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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-zero-length-lineCap.html

Issue 1883693002: Zero-length path with round/square lineCap should paint circle on Canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebaseline outdated philip tests to match IE9 and Firefox Created 4 years, 8 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 <canvas id="mycanvas" width="150" height="100"></canvas>
2 <script type = 'text/javascript'>
3 if (window.testRunner) {
4 testRunner.dumpAsTextWithPixelResults();
5 }
6
7 var canvas = document.getElementById('mycanvas');
8 var ctx = canvas.getContext('2d');
9
10 ctx.lineWidth = 20;
11
12 // Checking whether straight lines with empty length have proper line caps
13 ctx.lineCap = 'round';
14 ctx.beginPath();
15 ctx.moveTo(50, 50);
16 ctx.lineTo(50, 50);
17 ctx.stroke();
18
19 ctx.lineCap = 'square';
20 ctx.beginPath();
21 ctx.moveTo(100, 50);
22 ctx.lineTo(100, 50);
23 ctx.stroke();
24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698