Re-enabled passing tests in tst_qprinter
To increase the effective test coverage, this patch re-enables the tst_qprinter test case as such, and instead disables only the test functions that are currently failing in CI. Task-number: QTBUG-22453 Change-Id: I74cc30dc26b8b83852b3516f8def995eab19cf0f Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
This commit is contained in:
parent
db34625eae
commit
7ba57e2630
@ -4,4 +4,3 @@ QT += printsupport widgets testlib
|
||||
SOURCES += tst_qprinter.cpp
|
||||
|
||||
mac*:CONFIG+=insignificant_test
|
||||
CONFIG += insignificant_test # QTBUG-21402
|
||||
|
@ -198,6 +198,7 @@ void tst_QPrinter::getSetCheck()
|
||||
obj1.setPageSize(QPrinter::PageSize(QPrinter::A4));
|
||||
QCOMPARE(QPrinter::PageSize(QPrinter::A4), obj1.pageSize());
|
||||
obj1.setPageSize(QPrinter::PageSize(QPrinter::Letter));
|
||||
QEXPECT_FAIL("", "QTBUG-22562", Abort);
|
||||
QCOMPARE(QPrinter::PageSize(QPrinter::Letter), obj1.pageSize());
|
||||
obj1.setPageSize(QPrinter::PageSize(QPrinter::Legal));
|
||||
QCOMPARE(QPrinter::PageSize(QPrinter::Legal), obj1.pageSize());
|
||||
@ -520,6 +521,7 @@ void tst_QPrinter::setGetPaperSize()
|
||||
p.setOutputFormat(QPrinter::PdfFormat);
|
||||
QSizeF size(500, 10);
|
||||
p.setPaperSize(size, QPrinter::Millimeter);
|
||||
QEXPECT_FAIL("", "QTBUG-22562", Abort);
|
||||
QCOMPARE(p.paperSize(QPrinter::Millimeter), size);
|
||||
QSizeF ptSize = p.paperSize(QPrinter::Point);
|
||||
//qDebug() << ptSize;
|
||||
@ -762,6 +764,7 @@ void tst_QPrinter::valuePreservation()
|
||||
|
||||
printer.setPageSize(QPrinter::B5);
|
||||
printer.setOutputFormat(newFormat);
|
||||
QEXPECT_FAIL("", "QTBUG-22562", Abort);
|
||||
QCOMPARE(printer.pageSize(), QPrinter::B5);
|
||||
printer.setOutputFormat(oldFormat);
|
||||
QCOMPARE(printer.pageSize(), QPrinter::B5);
|
||||
@ -882,6 +885,7 @@ void tst_QPrinter::testCustomPageSizes()
|
||||
p.setPaperSize(customSize, QPrinter::Inch);
|
||||
|
||||
QSizeF paperSize = p.paperSize(QPrinter::Inch);
|
||||
QEXPECT_FAIL("", "QTBUG-22562", Abort);
|
||||
QCOMPARE(paperSize, customSize);
|
||||
|
||||
QPrinter p2(QPrinter::HighResolution);
|
||||
@ -942,6 +946,7 @@ void tst_QPrinter::taskQTBUG4497_reusePrinterOnDifferentFiles()
|
||||
QFile file2("out2.ps");
|
||||
QVERIFY(file2.open(QIODevice::ReadOnly));
|
||||
|
||||
QEXPECT_FAIL("", "QTBUG-22562", Abort);
|
||||
QCOMPARE(file1.readAll(), file2.readAll());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user