Bug 749467 - Reftest: Add reftest for path continuation after transform changes. r=roc

This commit is contained in:
Bas Schouten 2012-04-27 07:07:25 +02:00
parent f9e2392e1e
commit 54471a2d8d
3 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><canvas width="500" height="200" id="c"></canvas></p>
<script type="text/javascript">
var canvas = document.getElementById('c');
var ctx = canvas.getContext('2d');
ctx.beginPath();
ctx.lineWidth = 20;
ctx.strokeStyle = 'rgb(0,0,0)';
ctx.moveTo(10, 30);
ctx.lineTo(50, 50);
ctx.stroke();
ctx.lineTo(80, 80);
ctx.stroke();
</script>
</body>
</html>

View File

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><canvas width="500" height="200" id="c"></canvas></p>
<script type="text/javascript">
var canvas = document.getElementById('c');
var ctx = canvas.getContext('2d');
ctx.beginPath();
ctx.lineWidth = 20;
ctx.strokeStyle = 'rgb(0,0,0)';
ctx.save();
ctx.moveTo(10, 30);
ctx.lineTo(50, 50);
ctx.stroke();
ctx.restore();
ctx.lineTo(80, 80);
ctx.stroke();
</script>
</body>
</html>

View File

@ -80,3 +80,5 @@ fails-if(/Mac\x20OS\x20X\x2010\.[56]/.test(http.oscpu)) == 672646-alpha-radial-g
== transformed-clip.html transformed-clip-ref.html
== transformed-gradient.html transformed-gradient-ref.html
== transformed-path.html transformed-path.html
== 749467-1.html 749467-1-ref.html