QtPrinterInfo: Improve QPrinterInfo Testing
authorJohn Layt <jlayt@kde.org>
Fri, 11 May 2012 20:58:15 +0000 (21:58 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 25 May 2012 11:23:14 +0000 (13:23 +0200)
commit3dffbe8c81c1c45aafcf3b9c3d3a9a40578e8fcf
treea5941c600b4a4b4d181b100b5fe216150457019c
parentc8028844eecac2cc469316ce341791b5e9cddb2a
QtPrinterInfo: Improve QPrinterInfo Testing

Much of the current QPrinterInfo tests fail due to being dependent on
specific physical or network printers being attached.  This change
removes all printer specific tests and replaces them with generic
tests that will use whatever printers are installed.

Note if no printers are installed then the tests will still pass. A
later change will add virtual printers to test returned results are
correct.

Windows test code is also required and will come later.

This does not yet remove the "insignificant" status from the test,
further improvements and code fixes are still required.

Change-Id: I60802445924edb126aadf78337a8cb6f2f3b3d37
Reviewed-by: John Layt <jlayt@kde.org>
tests/auto/printsupport/kernel/qprinterinfo/tst_qprinterinfo.cpp