Added automated testing with selenium

This commit is contained in:
Niklas von Hertzen
2012-12-22 16:28:34 +02:00
parent 9df9426c91
commit d6ddb7e29d
6 changed files with 217 additions and 134 deletions

View File

@@ -94,7 +94,7 @@ _html2canvas.Renderer.Canvas = function( options ) {
canvas.height = canvas.style.height = (!usingFlashcanvas) ? options.height || zStack.ctx.height : Math.min(flashMaxSize, (options.height || zStack.ctx.height) );
fstyle = ctx.fillStyle;
ctx.fillStyle = zStack.backgroundColor;
ctx.fillStyle = (zStack.backgroundColor === "transparent") ? "#fff" : zStack.backgroundColor;
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = fstyle;