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

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

SVN commit 817333 by dfaure:

answering Pino's question with a unit test


 M  +5 -0      kurltest.cpp  


--- trunk/KDE/kdelibs/kdecore/tests/kurltest.cpp #817332:817333
@@ -676,6 +676,11 @@
   // arguable, but necessary for KUrl( baseURL, "//www1.foo.bar" );
   QVERIFY( KUrl::isRelativeUrl("/path") );
   QVERIFY( KUrl::isRelativeUrl("something") );
+
+  KUrl something("something");
+  QCOMPARE(something.url(), QString("something"));
+  QCOMPARE(something.protocol(), QString());
+  QVERIFY(!something.isLocalFile());
 }
 
 void KUrlTest::testRelativePath()
[prev in list] [next in list] [prev in thread] [next in thread] 

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