[Kst] branches/work/kst/portto4/kst/tests

Mike Fenton mike at staikos.net
Wed Nov 12 13:55:57 CET 2008


SVN commit 883187 by fenton:

Fix datasource tests.


 M  +7 -7      testdatasource.cpp  


--- branches/work/kst/portto4/kst/tests/testdatasource.cpp #883186:883187
@@ -64,7 +64,7 @@
     QVERIFY(dsp);
     QVERIFY(dsp->isValid());
     QVERIFY(dsp->hasConfigWidget());
-    QCOMPARE(dsp->fileType(), QLatin1String("ASCII"));
+    QCOMPARE(dsp->fileType(), QLatin1String("ASCII file"));
     QVERIFY(dsp->isValidField("INDEX"));
     QVERIFY(dsp->isValidField("1"));
     QVERIFY(!dsp->isValidField("0"));
@@ -122,7 +122,7 @@
     QVERIFY(dsp);
     QVERIFY(dsp->isValid());
     QVERIFY(dsp->hasConfigWidget());
-    QCOMPARE(dsp->fileType(), QLatin1String("ASCII"));
+    QCOMPARE(dsp->fileType(), QLatin1String("ASCII file"));
     QVERIFY(dsp->isValidField("INDEX"));
     QVERIFY(dsp->isValidField("1"));
     QVERIFY(!dsp->isValidField("0"));
@@ -184,7 +184,7 @@
     QVERIFY(dsp);
     QVERIFY(dsp->isValid());
     QVERIFY(dsp->hasConfigWidget());
-    QCOMPARE(dsp->fileType(), QLatin1String("ASCII"));
+    QCOMPARE(dsp->fileType(), QLatin1String("ASCII file"));
     QVERIFY(dsp->isValidField("INDEX"));
     QVERIFY(dsp->isValidField("1"));
     QVERIFY(!dsp->isValidField("0"));
@@ -237,7 +237,7 @@
 
     QVERIFY(dsp);
     QVERIFY(dsp->hasConfigWidget());
-    QCOMPARE(dsp->fileType(), QLatin1String("ASCII"));
+    QCOMPARE(dsp->fileType(), QLatin1String("ASCII file"));
     tf.close();
   }
 
@@ -255,7 +255,7 @@
     QVERIFY(dsp);
     QVERIFY(dsp->isValid());
     QVERIFY(dsp->hasConfigWidget());
-    QCOMPARE(dsp->fileType(), QLatin1String("ASCII"));
+    QCOMPARE(dsp->fileType(), QLatin1String("ASCII file"));
     QCOMPARE(dsp->frameCount(QString::null), 39000);
     QCOMPARE(dsp->frameCount("1"), 39000);
     QCOMPARE(dsp->frameCount("2"), 39000);
@@ -530,7 +530,7 @@
   QVERIFY(dsp);
   QVERIFY(dsp->isValid());
   QVERIFY(!dsp->hasConfigWidget());
-  QCOMPARE(dsp->fileType(), QLatin1String("QImage compatible Image"));
+  QCOMPARE(dsp->fileType(), QLatin1String("QImage image"));
   QVERIFY(dsp->isValidField("INDEX"));
   QCOMPARE(dsp->frameCount("INDEX"), 1024);
   QVERIFY(dsp->isValidField("RED"));
@@ -634,7 +634,7 @@
   QVERIFY(dsp);
   QVERIFY(dsp->isValid());
   QVERIFY(!dsp->hasConfigWidget());
-  QCOMPARE(dsp->fileType(), QLatin1String("FITS Image"));
+  QCOMPARE(dsp->fileType(), QLatin1String("FITS image"));
   QVERIFY(dsp->isValidField("INDEX"));
   QCOMPARE(dsp->frameCount("INDEX"), 58800);
   QVERIFY(dsp->isValidField("1"));


More information about the Kst mailing list