mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 662898. Test
This commit is contained in:
parent
83ccc7f3f6
commit
a3ffca93f4
7
layout/reftests/canvas/image-shadow-ref.html
Normal file
7
layout/reftests/canvas/image-shadow-ref.html
Normal file
@ -0,0 +1,7 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<body>
|
||||
<div style="background:lime; width:16px; height:16px;"></div>
|
||||
<div style="background:black; width:16px; height:10px;"></div>
|
||||
</body>
|
||||
</html>
|
18
layout/reftests/canvas/image-shadow.html
Normal file
18
layout/reftests/canvas/image-shadow.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<body onload="doTest()">
|
||||
<canvas id="c" width="200" height="200" style="display:block"></canvas>
|
||||
<img id="img" src="image_green-16x16.png" style="display:none">
|
||||
<script>
|
||||
var c = document.getElementById("c");
|
||||
var img = document.getElementById("img");
|
||||
var ctx = c.getContext("2d");
|
||||
ctx.shadowColor = "black";
|
||||
ctx.shadowOffsetX = 0;
|
||||
ctx.shadowOffsetY = 10;
|
||||
function doTest() {
|
||||
ctx.drawImage(img, 0, 0);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
BIN
layout/reftests/canvas/image_green-16x16.png
Normal file
BIN
layout/reftests/canvas/image_green-16x16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 92 B |
@ -1,6 +1,7 @@
|
||||
== default-size.html default-size-ref.html
|
||||
|
||||
== image-rendering-test.html image-rendering-ref.html
|
||||
== image-shadow.html image-shadow-ref.html
|
||||
|
||||
asserts-if(cocoaWidget,0-2) == size-change-1.html size-change-1-ref.html
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user