mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 690743 - Reftest: Add a reftest for repeated drawing after changing transform while emitting a path. r=roc
This commit is contained in:
parent
fd07ebbe90
commit
9e53d62ba5
22
layout/reftests/bugs/690643-1-ref.html
Normal file
22
layout/reftests/bugs/690643-1-ref.html
Normal 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>
|
24
layout/reftests/bugs/690643-1.html
Normal file
24
layout/reftests/bugs/690643-1.html
Normal 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>
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user