[QGIS Commit] r8424 - trunk/qgis/tests/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue May 13 14:51:56 EDT 2008


Author: jef
Date: 2008-05-13 14:51:56 -0400 (Tue, 13 May 2008)
New Revision: 8424

Modified:
   trunk/qgis/tests/src/core/qgsrenderchecker.cpp
   trunk/qgis/tests/src/core/testqgsgeometry.cpp
   trunk/qgis/tests/src/core/testqgsmaprender.cpp
Log:
fix tests to work with QT_NO_CAST_TO_ASCII

Modified: trunk/qgis/tests/src/core/qgsrenderchecker.cpp
===================================================================
--- trunk/qgis/tests/src/core/qgsrenderchecker.cpp	2008-05-12 13:49:00 UTC (rev 8423)
+++ trunk/qgis/tests/src/core/qgsrenderchecker.cpp	2008-05-13 18:51:56 UTC (rev 8424)
@@ -116,7 +116,7 @@
 
   if (mMatchTarget!= myPixelCount )
   {
-    qDebug ("Test image and result image for " + theTestName + " are different - FAILING!");
+    qDebug ( QString("Test image and result image for %1 are different - FAILING!").arg(theTestName).toLocal8Bit() );
     mReport += "<tr><td colspan=3>";
     mReport += "<font color=red>Expected image and result image for " + theTestName + " are different dimensions - FAILING!</font>";
     mReport += "</td></tr>";

Modified: trunk/qgis/tests/src/core/testqgsgeometry.cpp
===================================================================
--- trunk/qgis/tests/src/core/testqgsgeometry.cpp	2008-05-12 13:49:00 UTC (rev 8423)
+++ trunk/qgis/tests/src/core/testqgsgeometry.cpp	2008-05-13 18:51:56 UTC (rev 8424)
@@ -159,7 +159,7 @@
   for (int i = 0; i < myPolyline.size(); i++)
   {
     QgsPoint myPoint = myPolyline.at(i);
-    qDebug(myPoint.stringRep());
+    qDebug(myPoint.stringRep().toLocal8Bit());
   }
   delete mypUnionGeometry;
 }

Modified: trunk/qgis/tests/src/core/testqgsmaprender.cpp
===================================================================
--- trunk/qgis/tests/src/core/testqgsmaprender.cpp	2008-05-12 13:49:00 UTC (rev 8423)
+++ trunk/qgis/tests/src/core/testqgsmaprender.cpp	2008-05-13 18:51:56 UTC (rev 8424)
@@ -104,7 +104,7 @@
   QString myQmlFileName = myTestDataDir +  "maprender_testdata.qml";
   QFile::copy(myQmlFileName, myTmpDir + "maprender_testdata.qml");
   qDebug ( "Checking test dataset exists...");
-  qDebug ( myFileName );
+  qDebug ( myFileName.toLocal8Bit() );
   if (!QFile::exists(myFileName))
   {
     qDebug ( "Creating test dataset: ");



More information about the QGIS-commit mailing list