mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1074733 - Add reftest to verify canvas 2d rects with negative dimensions are rendered properly. r=jmuizelaar
This commit is contained in:
parent
fa6b709c01
commit
eb8ba7cad3
23
layout/reftests/canvas/1074733-1-ref.html
Normal file
23
layout/reftests/canvas/1074733-1-ref.html
Normal file
@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<script type="text/javascript">
|
||||
function bodyonload() {
|
||||
var canvas=document.getElementById('test');
|
||||
var ctx = canvas.getContext("2d");
|
||||
ctx.fillStyle = 'green';
|
||||
ctx.fillRect(-1, 50, 151, 50); // left at -1
|
||||
ctx.fillStyle = 'red';
|
||||
ctx.rect(-1, 100, 151, 50); // left at -1
|
||||
ctx.fill();
|
||||
ctx.fillStyle = 'blue';
|
||||
ctx.fillRect(0, 150, 150, 50); // left at 0
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="bodyonload();">
|
||||
<canvas id="test" width="200" height="200"></canvas>
|
||||
</body>
|
||||
</html>
|
||||
|
23
layout/reftests/canvas/1074733-1.html
Normal file
23
layout/reftests/canvas/1074733-1.html
Normal file
@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<script type="text/javascript">
|
||||
function bodyonload() {
|
||||
var canvas=document.getElementById('test');
|
||||
var ctx = canvas.getContext("2d");
|
||||
ctx.fillStyle = 'green';
|
||||
ctx.fillRect(150, 50, -151, 50); // left at -1
|
||||
ctx.fillStyle = 'red';
|
||||
ctx.rect(150, 100, -151, 50); // left at -1
|
||||
ctx.fill();
|
||||
ctx.fillStyle = 'blue';
|
||||
ctx.fillRect(150, 150, -150, 50); // left at 0
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="bodyonload();">
|
||||
<canvas id="test" width="200" height="200"></canvas>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -103,6 +103,7 @@ fails-if(azureQuartz&&OSX==1006) == 672646-alpha-radial-gradient.html 672646-alp
|
||||
fuzzy-if(azureQuartz,2,128) fuzzy-if(d2d,12,21) fuzzy-if(d2d&&/^Windows\x20NT\x2010\.0/.test(http.oscpu),2,141) == 784573-1.html 784573-1-ref.html
|
||||
|
||||
== 802658-1.html 802658-1-ref.html
|
||||
== 1074733-1.html 1074733-1-ref.html
|
||||
fuzzy-if(Mulet,45,2) == 1107096-invisibles.html 1107096-invisibles-ref.html
|
||||
== 1151821-1.html 1151821-1-ref.html
|
||||
== 1201272-1.html 1201272-1-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user