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

List:       kde-commits
Subject:    KDE/kdelibs/kdecore
From:       David Faure <faure () kde ! org>
Date:       2006-06-30 19:22:38
Message-ID: 1151695358.220645.27973.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 556590 by dfaure:

Just a test because we were wondering, but Tobias used a proper url scheme instead in kfiledialog.


 M  +0 -1      kapplication.h  
 M  +16 -2     tests/kurltest.cpp  


--- trunk/KDE/kdelibs/kdecore/kapplication.h #556589:556590
@@ -28,7 +28,6 @@
 class KConfig;
 class KConfigBase;
 class KCharsets;
-class QDBusInterface;
 
 #ifdef KDE3_SUPPORT
 #include <krandom.h>
--- trunk/KDE/kdelibs/kdecore/tests/kurltest.cpp #556589:556590
@@ -1242,10 +1242,24 @@
 
   weird = "ssh://user@machine?cmd='echo $HOSTNAME'";
   QVERIFY( weird.isValid() );
-  QVERIFY( weird.host() == QString("machine") );
+  QCOMPARE( weird.host(), QString("machine") );
   //qDebug("%s",qPrintable( weird.query() ) );
-  QVERIFY( weird.queryItem("cmd") == QString("'echo $HOSTNAME'") );
+  QCOMPARE( weird.queryItem("cmd"), QString("'echo $HOSTNAME'") );
 
+  weird = ":pictures"; // for KFileDialog's startDir
+  QVERIFY( weird.isValid() );
+  QVERIFY( weird.protocol().isEmpty() );
+  QVERIFY( weird.host().isEmpty() );
+  QCOMPARE( weird.path(), QString( "pictures" ) );
+  QCOMPARE( weird.url(), QString( "pictures" ) ); // # BUG: the : is missing
+
+  weird = "::keyword"; // for KFileDialog's startDir
+  QVERIFY( weird.isValid() );
+  QVERIFY( weird.protocol().isEmpty() );
+  QVERIFY( weird.host().isEmpty() );
+  QCOMPARE( weird.path(), QString( ":keyword" ) );
+  QCOMPARE( weird.url(), QString( ":keyword" ) ); // # BUG: the : is missing
+
   broken = "ptal://mlc:usb:PC_970";
   QVERIFY( !broken.isValid() );
 #if QT_VERSION < 0x040200
[prev in list] [next in list] [prev in thread] [next in thread] 

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