[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:22:36 UTC 2016


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

The following commit has been merged in the master branch:
commit 465da55c8cf323eee60dd4c01f8a2dbc51c9186a
Author: David Edmundson <kde at davidedmundson.co.uk>
Date:   Sun Sep 2 15:43:21 2012 +0100

    Add a test for detecting URLs in escaped HTML
---
 tests/message-processor-basic-tests.cpp | 7 +++++++
 tests/message-processor-basic-tests.h   | 1 +
 2 files changed, 8 insertions(+)

diff --git a/tests/message-processor-basic-tests.cpp b/tests/message-processor-basic-tests.cpp
index 0712c33..94a5169 100644
--- a/tests/message-processor-basic-tests.cpp
+++ b/tests/message-processor-basic-tests.cpp
@@ -100,6 +100,13 @@ void MessageProcessorBasicTests::testMultipleURLCatching()
     QCOMPARE(qvariant_cast<KUrl>(urls.at(1)), KUrl("http://www.google.com.au"));
 }
 
+void MessageProcessorBasicTests::textRichTextUrlParsing()
+{
+    compare("go to http://example.com/page.php?code=",
+            "go to <a href=\"http://example.com/page.php?code=123"\">http://example.com/page.php?code=123"</a>");
+}
+
+
 void MessageProcessorBasicTests::compare(const char *input, const char *expected) {
     QString processed = s.getProcessedMessage(input);
     QString href = QLatin1String(expected);
diff --git a/tests/message-processor-basic-tests.h b/tests/message-processor-basic-tests.h
index 5ffcc92..db0ade5 100644
--- a/tests/message-processor-basic-tests.h
+++ b/tests/message-processor-basic-tests.h
@@ -40,6 +40,7 @@ private Q_SLOTS:
     void testUnsupportedProtocolCatching();
     void testMetadataGeneration();
     void testMultipleURLCatching();
+    void textRichTextUrlParsing();
 //     void testSingleWordItalics();
 //     void testMultiWordItalics();
 //     void testSingleCharBold();

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list