mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 749467 - Reftest: Add reftest for path continuation after transform changes. r=roc
This commit is contained in:
parent
f9e2392e1e
commit
54471a2d8d
28
layout/reftests/canvas/749467-1-ref.html
Normal file
28
layout/reftests/canvas/749467-1-ref.html
Normal 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>
|
31
layout/reftests/canvas/749467-1.html
Normal file
31
layout/reftests/canvas/749467-1.html
Normal 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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user