Bug 690743 - Reftest: Add a reftest for repeated drawing after changing transform while emitting a path. r=roc

This commit is contained in:
Bas Schouten 2012-05-23 08:18:24 +02:00
parent fd07ebbe90
commit 9e53d62ba5
3 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,22 @@
<html>
<head>
</head>
<body onload="draw()">
<canvas id="canvas" width="300" height="300"></canvas>
<script type="application/javascript">
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
ctx.fillStyle = '#eeeeee';
ctx.strokeStyle = '#000000';
ctx.beginPath();
ctx.moveTo(0, 50);
ctx.lineTo(50, 50);
ctx.lineTo(150, 100);
ctx.stroke();
ctx.fill();
</script>
</body>
</html>

View File

@ -0,0 +1,24 @@
<html>
<head>
</head>
<body onload="draw()">
<canvas id="canvas" width="300" height="300"></canvas>
<script type="application/javascript">
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
ctx.fillStyle = '#eeeeee';
ctx.strokeStyle = '#000000';
ctx.beginPath();
ctx.moveTo(0, 50);
ctx.lineTo(50, 50);
ctx.translate(100, 100);
ctx.lineTo(50, 0);
ctx.stroke();
ctx.fill();
</script>
</body>
</html>

View File

@ -1703,3 +1703,4 @@ needs-focus == 731726-1.html 731726-1-ref.html
== 750551-1.html 750551-1-ref.html
== 751012-1a.html 751012-1-ref.html
== 751012-1b.html 751012-1-ref.html
== 690643-1.html 690643-1-ref.html