Go to file
Sarah Smith 0786716ce5 Fix failing unit tests.
The test that was failing was the readFromDevice one - where the
extension is not known.

Looks as though image detection is required in a positive way, that is
it is not enough to say I think I can read this file, and then fail if
the format is "corrupt", you must be certain that the file was intended
to be that format.

In the case of TGA the original format has no magic byte header, and no
consistent way to check if it really is a TGA file.  With 2.0 the footer
was added at the end, so that can be checked for confirming the file is
TGA.  However rejecting files which do not have this means that old TGA
files will not be read.

On a quick survey TGA files that have been used in applications so far
all seem to be 2.0 TrueVision, so for now, lets just reject earlier
files and see how it goes.

Also add reading the tga test file to the readFromDevice test.

(cherry picked from commit 665bc3951709f0d726cb82501a5bca684f3347a5)
Change-Id: I665bc3951709f0d726cb82501a5bca684f3347a5
Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
2011-12-13 09:33:49 +01:00
bin fixqt4headers: Support renaming from QtDeclarative to QtQuick 2011-12-07 09:33:47 +01:00
config.tests Added '-' parameter to fix strings command using gcc-llvm on Mac OS 10.6 w/ Xcode 4.2. 2011-11-08 01:13:40 +01:00
dist Revert "Remove unused overload of QTest::qExec." 2011-12-12 10:43:44 +01:00
doc/src Move snippets from qtdoc. 2011-12-06 22:29:01 +01:00
examples Added multi-screen support to hellowindow example. 2011-12-06 20:14:10 +01:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Add the .exe suffix to executables on Windows. 2011-12-12 19:10:34 +01:00
qmake qmake: Add object_parallel_to_source config option 2011-12-07 12:55:28 +01:00
src Add missing assertion to QAbstractTestLogger. 2011-12-13 07:41:27 +01:00
tests Fix failing unit tests. 2011-12-13 09:33:49 +01:00
tools configure.exe: Build tests by default. 2011-11-29 12:27:16 +01:00
util Accessibility: Add Text::DebugDescription 2011-12-07 11:15:28 +01:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Add V8 snapshot support 2011-11-22 13:10:56 +01:00
.gitmodules Add QtV8 library to QtBase 2011-08-29 10:16:01 +02:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure document the -force-asserts switch 2011-12-08 15:59:00 +01:00
configure.exe Rebuild configure.exe. 2011-12-01 19:18:34 +01:00
header.BSD Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.FDL Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
header.LGPL Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
header.LGPL-ONLY Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
INSTALL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Ensure qmodule.pri is installed. 2011-11-23 00:12:03 +01:00
sync.profile Fix source incompatibility for QVariant{Map, Hash, List} 2011-11-14 18:41:17 +01:00