[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:19 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=be1ca19
The following commit has been merged in the master branch:
commit be1ca198b98e0e532cc76a4aa96c145e1fd0943e
Author: Lasath Fernando <kde at lasath.org>
Date: Mon Jul 2 21:12:52 2012 +1000
Add tests for Searchexpansion plugin
---
tests/message-processor-basic-tests.cpp | 16 ++++++++++++++++
tests/message-processor-basic-tests.h | 3 +++
2 files changed, 19 insertions(+)
diff --git a/tests/message-processor-basic-tests.cpp b/tests/message-processor-basic-tests.cpp
index 554ce1a..8546605 100644
--- a/tests/message-processor-basic-tests.cpp
+++ b/tests/message-processor-basic-tests.cpp
@@ -162,6 +162,22 @@ void MessageProcessorBasicTests::testXSS()
compare("<script>alert('ha!');</script>", "<script>alert('ha!');</script>");
}
+void MessageProcessorBasicTests::testSearchExpansion()
+{
+ //let's assume the user hasn't messed with their web shortcuts
+ compare("gg:kde", "http://www.google.com/search?q=kde&ie=UTF-8&oe=UTF-8");
+}
+
+void MessageProcessorBasicTests::testUsingAColon()
+{
+ compare("It should still leave normal stuff with:acolon alone", "It should still leave normal stuff with:acolon alone");
+}
+
+void MessageProcessorBasicTests::testSearchExpansionWithPadding()
+{
+ compare(" gg:kde
", "http://www.google.com/search?q=kde&ie=UTF-8&oe=UTF-8");
+}
+
QTEST_MAIN(MessageProcessorBasicTests);
#include "moc_message-processor-basic-tests.cpp"
\ No newline at end of file
diff --git a/tests/message-processor-basic-tests.h b/tests/message-processor-basic-tests.h
index 35f931f..7dc99e4 100644
--- a/tests/message-processor-basic-tests.h
+++ b/tests/message-processor-basic-tests.h
@@ -48,6 +48,9 @@ private Q_SLOTS:
void testBold();
void testImageEmbedGIF();
void testXSS();
+ void testSearchExpansion();
+ void testUsingAColon();
+ void testSearchExpansionWithPadding();
};
#endif // MESSAGE_PROCESSOR_BASIC_TESTS_H
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list