Bug 662898. Test

This commit is contained in:
Robert O'Callahan 2011-06-13 13:42:48 +12:00
parent 83ccc7f3f6
commit a3ffca93f4
4 changed files with 26 additions and 0 deletions

View 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>

View 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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 B

View File

@ -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