Bug 726951 - Reftest: Test for shadow clips working correctly in non-rectangular canvases. r=jrmuizel

This commit is contained in:
Bas Schouten 2012-02-16 04:08:12 +01:00
Родитель ceb0b93557
Коммит ac9c902d7e
3 изменённых файлов: 38 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,18 @@
<!doctype html>
<head>
<body>
<canvas id="mycanvas" width="200" height="200"></canvas>
<script type="text/javascript">
var cx = document.getElementById('mycanvas').getContext('2d');
cx.beginPath();
cx.rect(10, 10, 50, 50);
cx.clip();
cx.beginPath();
cx.rect(0, 0, 50, 50);
cx.shadowColor = "black";
cx.shadowOffsetX = 10;
cx.shadowOffsetY = 10;
cx.fill();
</script>

Просмотреть файл

@ -0,0 +1,18 @@
<!doctype html>
<head>
<body>
<canvas id="mycanvas" width="200" height="600"></canvas>
<script type="text/javascript">
var cx = document.getElementById('mycanvas').getContext('2d');
cx.beginPath();
cx.rect(10, 10, 50, 50);
cx.clip();
cx.beginPath();
cx.rect(0, 0, 50, 50);
cx.shadowColor = "black";
cx.shadowOffsetX = 10;
cx.shadowOffsetY = 10;
cx.fill();
</script>

Просмотреть файл

@ -75,4 +75,6 @@ fails-if(/Mac\x20OS\x20X\x2010\.[56]/.test(http.oscpu)) == 672646-alpha-radial-g
!= 693610-1.html 693610-1-notref.html # bug 693610: multiple glyph runs should not be overprinted
== 726951-shadow-clips.html 726951-shadow-clips-ref.html
== transformed-clip.html transformed-clip-ref.html