[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:21:59 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=22b0626

The following commit has been merged in the master branch:
commit 22b0626e2219f8655b152d58e53acf6354dce93d
Author: Lasath Fernando <kde at lasath.org>
Date:   Sat Jun 16 12:07:38 2012 +1000

    Fix unimplemented test
    
    By that I mean finally write the multipleURLCatching() test. Now it
    can finally say all tests passed!
---
 tests/message-processor-basic-tests.cpp | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/tests/message-processor-basic-tests.cpp b/tests/message-processor-basic-tests.cpp
index 3abfff4..9452505 100644
--- a/tests/message-processor-basic-tests.cpp
+++ b/tests/message-processor-basic-tests.cpp
@@ -86,7 +86,18 @@ void MessageProcessorBasicTests::testMetadataGeneration()
 
 void MessageProcessorBasicTests::testMultipleURLCatching()
 {
-    QFAIL("not written yet");
+    Message processed = this->s.processOutGoingMessage(
+        Tp::Message(
+            Tp::ChannelTextMessageTypeNormal,
+            QLatin1String("You should consider using http://duckduckgo.com/ instead of www.google.com.au")
+        )
+    );
+
+    QVariantList urls = processed.property("Urls").toList();
+    QCOMPARE(urls.length(), 2);
+
+    QCOMPARE(qvariant_cast<KUrl>(urls.at(0)), KUrl("http://duckduckgo.com/"));
+    QCOMPARE(qvariant_cast<KUrl>(urls.at(1)), KUrl("http://www.google.com.au"));
 }
 
 void MessageProcessorBasicTests::compare(const char *input, const char *expected) {

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list