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

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/tests
From:       Aurélien Gâteau <agateau () kde ! org>
Date:       2010-06-20 9:17:12
Message-ID: 20100620091712.CF82FAC8DB () svn ! kde ! org
[Download RAW message or body]

SVN commit 1140317 by gateau:

Improved test check a bit

It's nicer to use QCOMPARE because the compared values are output in case of error

 M  +1 -1      kiconloader_unittest.cpp  


--- trunk/KDE/kdelibs/kdeui/tests/kiconloader_unittest.cpp #1140316:1140317
@@ -171,7 +171,7 @@
                                                   KIconLoader::DefaultState, QStringList(),
                                                   &path );
         QVERIFY(!pix.isNull());
-        QVERIFY(path.endsWith(expectedFileName));
+        QCOMPARE(path.section('/', -1), expectedFileName);
 
         // do the same test using a global iconloader, so that
         // we get into the final return statement, which can only happen
[prev in list] [next in list] [prev in thread] [next in thread] 

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