mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 691571 - Reftest: Add reftest. r=jrmuizel
This commit is contained in:
parent
04c75f0add
commit
e7b7d5e4c6
18
layout/reftests/bugs/691571-1-ref.html
Normal file
18
layout/reftests/bugs/691571-1-ref.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<canvas id="A" width=200 height=50></canvas><br />
|
||||
<canvas id="B" width=200 height=50></canvas>
|
||||
<script>
|
||||
var canvasA = document.getElementById("A"),
|
||||
ctxA = canvasA.getContext('2d'),
|
||||
canvasB = document.getElementById("B"),
|
||||
ctxB = canvasB.getContext('2d'),
|
||||
width = canvasA.width,
|
||||
height = canvasA.height;
|
||||
|
||||
ctxB.fillStyle = 'red';
|
||||
ctxB.fillRect(0, 0, width, height);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
24
layout/reftests/bugs/691571-1.html
Normal file
24
layout/reftests/bugs/691571-1.html
Normal file
@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<canvas id="A" width=200 height=50></canvas><br />
|
||||
<canvas id="B" width=200 height=50></canvas>
|
||||
<script>
|
||||
var canvasA = document.getElementById("A"),
|
||||
ctxA = canvasA.getContext('2d'),
|
||||
canvasB = document.getElementById("B"),
|
||||
ctxB = canvasB.getContext('2d'),
|
||||
width = canvasA.width,
|
||||
height = canvasA.height;
|
||||
|
||||
ctxA.fillStyle = 'red';
|
||||
ctxA.fillRect(0, 0, width, height);
|
||||
var pat = ctxB.createPattern(canvasA, "repeat");
|
||||
|
||||
ctxA.clearRect(0, 0, width, height);
|
||||
|
||||
ctxB.fillStyle = pat;
|
||||
ctxB.fillRect(0, 0, width, height);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1666,3 +1666,4 @@ fails-if(layersGPUAccelerated&&cocoaWidget) == 654950-1.html 654950-1-ref.html #
|
||||
== 670467-1.html 670467-1-ref.html
|
||||
== 670467-2.html 670467-2-ref.html
|
||||
!= 691087-1.html 691087-1-ref.html
|
||||
== 691571-1.html 691571-1-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user