[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegraphics/gwenview/tests
From:       Aurélien Gâteau <aurelien.gateau () free ! fr>
Date:       2009-02-10 14:32:17
Message-ID: 1234276337.802271.18210.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 924327 by gateau:

It does not matter if QImage cannot load the svg file.


 M  +3 -1      documenttest.cpp  


--- trunk/KDE/kdegraphics/gwenview/tests/documenttest.cpp #924326:924327
@@ -70,7 +70,9 @@
 	MimeTypeUtils::Kind expectedKind = MimeTypeUtils::Kind(expectedKindInt);
 
 	KUrl url = urlForTestFile(fileName);
-	QVERIFY2(!expectedImage.isNull(), "Could not load test image");
+	if (expectedKind != MimeTypeUtils::KIND_SVG_IMAGE) {
+		QVERIFY2(!expectedImage.isNull(), "Could not load test image");
+	}
 
 	Document::Ptr doc = DocumentFactory::instance()->load(url);
 	QSignalSpy spy(doc.data(), SIGNAL(isAnimatedUpdated()));
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic