Bug 1050788 - Add test for complex path that is entirely clipped out. r=roc

--HG--
extra : rebase_source : 3844baef99a92332b0bc4d1b382596f7aea51f40
This commit is contained in:
Matt Woodrow 2014-08-27 10:21:20 +12:00
parent 86d55eb90d
commit 3f37812157
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,34 @@
<html class="reftest-wait">
<head>
<script>
function doTest() {
var c = document.getElementById('c');
var ctx = c.getContext('2d');
ctx.transform(1, 0, 0, 1, 0.5, 0.5);
ctx.moveTo(0,0);
ctx.lineTo(100,0);
ctx.lineTo(100, 100);
ctx.lineTo(0,100);
ctx.closePath();
ctx.moveTo(0,0);
ctx.lineTo(100,0);
ctx.lineTo(100, 100);
ctx.lineTo(0,100);
ctx.closePath();
ctx.clip('evenodd');
ctx.fillStyle = 'red';
ctx.fillRect(0,0,400,400);
document.documentElement.removeAttribute("class");
}
</script>
</head>
<body onload="doTest()">
<canvas id="c" width="400" height="400"></canvas>
</body>
</body></html>

View File

@ -1821,5 +1821,6 @@ pref(browser.display.use_document_fonts,0) == 1022481-1.html 1022481-1-ref.html
== 1042104-1.html 1042104-1-ref.html
== 1044198-1.html 1044198-1-ref.html
== 1049499-1.html 1049499-1-ref.html
== 1050788-1.html about:blank
== 1053035-1-flex.html 1053035-1-ref.html
test-pref(layout.css.grid.enabled,true) == 1053035-1-grid.html 1053035-1-ref.html