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

List:       kde-commits
Subject:    KDE/kdelibs/kio/tests
From:       Ralf Habacker <Ralf.Habacker () freenet ! de>
Date:       2006-12-23 21:25:20
Message-ID: 1166909120.375400.9511.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 616148 by habacker:

win32 fix

 M  +11 -1     kmimetypetest.cpp  


--- trunk/KDE/kdelibs/kio/tests/kmimetypetest.cpp #616147:616148
@@ -90,7 +90,12 @@
 
     mf = KMimeType::findByPath( exePath );
     QVERIFY( mf );
+
+#ifdef Q_WS_WIN
+    QCOMPARE( mf->name(), QString::fromLatin1( "application/x-msdos-program" ) );
+#else
     QCOMPARE( mf->name(), QString::fromLatin1( "application/x-executable" ) );
+#endif
 
     // Can't use KIconLoader since this is a "without GUI" test.
     QString fh = KStandardDirs::locate( "icon", \
"crystalsvg/22x22/filesystems/folder_home.png" ); @@ -106,8 +111,13 @@
 
     mf = KMimeType::findByUrl( KUrl("http://foo/bar.png") );
     QVERIFY( mf );
+
+#ifdef Q_WS_WIN
+    // on win32 we get image/png ?? 
+    QCOMPARE( mf->name(), QString::fromLatin1( "image/png" ) ); 
+#else
     QCOMPARE( mf->name(), QString::fromLatin1( "application/octet-stream" ) ); // \
                HTTP can't know before downloading
-
+#endif
     if ( !KProtocolInfo::isKnownProtocol(KUrl("man:/")) )
         QSKIP( "man protocol not installed", SkipSingle );
 


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

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