зеркало из https://github.com/mozilla/gecko-dev.git
Bug 761326 - test_2d.path.arc.scale.1 assumes unrealistic 0.098 tolerance or luck - r=jrmuizel
This commit is contained in:
Родитель
63b249863c
Коммит
9dd8f3dc42
|
@ -11138,7 +11138,10 @@ ctx.fillRect(0, 0, 100, 50);
|
|||
ctx.scale(2, 0.5);
|
||||
ctx.fillStyle = '#0f0';
|
||||
ctx.beginPath();
|
||||
ctx.arc(25, 50, 56, 0, 2*Math.PI, false);
|
||||
var hypothenuse = Math.sqrt(50 * 50 + 25 * 25);
|
||||
var tolerance = 0.5;
|
||||
var radius = hypothenuse + tolerance;
|
||||
ctx.arc(25, 50, radius, 0, 2*Math.PI, false);
|
||||
ctx.fill();
|
||||
ctx.fillStyle = '#f00';
|
||||
ctx.beginPath();
|
||||
|
|
Загрузка…
Ссылка в новой задаче