diff --git a/layout/base/tests/chrome/printpreview_helper.xul b/layout/base/tests/chrome/printpreview_helper.xul index 08c0a6e98eb9..96d835b9a593 100644 --- a/layout/base/tests/chrome/printpreview_helper.xul +++ b/layout/base/tests/chrome/printpreview_helper.xul @@ -126,7 +126,7 @@ function startTest1() { window.frames[0].document.body.firstChild.innerHTML = "Print preview"; printpreview(); - ctx1.drawWindow(window.frames[1], 0, 0, 300, 300, "rgb(256,256,256)"); + ctx1.drawWindow(window.frames[1], 0, 0, 400, 400, "rgb(256,256,256)"); window.frames[0].document.body.firstChild.innerHTML = "Galley presentation"; // Add some elements. @@ -140,7 +140,7 @@ function startTest1() { } function finalizeTest1() { - ctx2.drawWindow(window.frames[1], 0, 0, 300, 300, "rgb(256,256,256)"); + ctx2.drawWindow(window.frames[1], 0, 0, 400, 400, "rgb(256,256,256)"); exitprintpreview(); ok(compareCanvases(), "Canvas should be the same!"); counter = window.frames[0].counter; @@ -210,13 +210,13 @@ function compareFormElementPrint(el1, el2, equals) { window.frames[0].document.body.firstChild.value = window.frames[0].document.body.firstChild.getAttribute('value'); printpreview(); - ctx1.drawWindow(window.frames[1], 0, 0, 300, 300, "rgb(256,256,256)"); + ctx1.drawWindow(window.frames[1], 0, 0, 400, 400, "rgb(256,256,256)"); exitprintpreview(); window.frames[0].document.body.innerHTML = el2; window.frames[0].document.body.firstChild.value = window.frames[0].document.body.firstChild.getAttribute('value'); printpreview(); - ctx2.drawWindow(window.frames[1], 0, 0, 300, 300, "rgb(256,256,256)"); + ctx2.drawWindow(window.frames[1], 0, 0, 400, 400, "rgb(256,256,256)"); exitprintpreview(); is(compareCanvases(), equals, "Comparing print preview didn't succeed [" + el1 + " : " + el2 + "]"); @@ -268,7 +268,7 @@ function runTest6end() { - - + +
Print preview canvas 1Print preview canvas 2