[Webkit-unassigned] [Bug 84246] [Qt] add LayoutTestController::setPrinting support to Qt unit tests

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 18 08:32:00 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=84246





--- Comment #1 from Milian Wolff <milian.wolff at kdab.com>  2012-04-18 08:32:01 PST ---
ah I forgot to mention: If I'd create a PDF-version of the test, instead of calling my DumpRenderTreeSupportQt::paintPagesWithBoundaries(mainFrame, image); in DumpRenderTree::dump, i.e. something like this:

    QPrinter printer;
    printer.setOutputFormat(QPrinter::PdfFormat);
    printer.setOutputFileName("test-dump-print.pdf");
    printer.setResolution(96);
    printer.setPaperSize(QSizeF(800, 600), QPrinter::DevicePixel);
    printer.setPageMargins(qreal(0), qreal(0), qreal(0), qreal(0), QPrinter::DevicePixel);
    mainFrame->print(&printer);

Then the created PDF looks "good", esp. for the setPrinting.html test (see known issue #1 above).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list