[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=f4a6891
The following commit has been merged in the master branch:
commit f4a68916ebb25dc0c1ef357588da22c0d760325e
Author: David Edmundson <kde at davidedmundson.co.uk>
Date: Sun Sep 2 15:35:56 2012 +0100
Update tests to match correct HTML escaping
---
tests/message-processor-basic-tests.cpp | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/tests/message-processor-basic-tests.cpp b/tests/message-processor-basic-tests.cpp
index a404908..0712c33 100644
--- a/tests/message-processor-basic-tests.cpp
+++ b/tests/message-processor-basic-tests.cpp
@@ -42,21 +42,21 @@ void MessageProcessorBasicTests::testEscaping()
void MessageProcessorBasicTests::testUrlCatching()
{
QString processed = this->s.getProcessedMessage("http://www.google.com.au/");
- QString href = QLatin1String("<a href='http://www.google.com.au/'>http://www.google.com.au/</a>");
+ QString href = QLatin1String("<a href=\"http://www.google.com.au/\">http://www.google.com.au/</a>");
QCOMPARE(processed, href);
}
void MessageProcessorBasicTests::testURICatchingSMB() {
QString processed = this->s.getProcessedMessage("smb://user@localhost/");
- QString href = QLatin1String("<a href='smb://user@localhost/'>smb://user@localhost/</a>");
+ QString href = QLatin1String("<a href=\"smb://user@localhost/\">smb://user@localhost/</a>");
QCOMPARE(processed, href);
}
void MessageProcessorBasicTests::testWWWCatching() {
QString processed = this->s.getProcessedMessage("www.google.com.au");
- QString href = QLatin1String("<a href='http://www.google.com.au'>www.google.com.au</a>");
+ QString href = QLatin1String("<a href=\"http://www.google.com.au\">www.google.com.au</a>");
QCOMPARE(processed, href);
}
@@ -145,13 +145,13 @@ void MessageProcessorBasicTests::testImageEmbedGIF()
{
const char* message = "http://kde.org/images/teaser/jointhegame.gif";
const char* imgTag =
- "<a href='http://kde.org/images/teaser/jointhegame.gif'>"
+ "<a href=\"http://kde.org/images/teaser/jointhegame.gif\">"
"http://kde.org/images/teaser/jointhegame.gif"
"</a>
"
- "<br/><a href='http://kde.org/images/teaser/jointhegame.gif'>"
- "<img src='http://kde.org/images/teaser/jointhegame.gif'"
- " style='max-width:100%;margin-top:3px'"
- " alt='Click to view in browser' />"
+ "<br/><a href=\"http://kde.org/images/teaser/jointhegame.gif\">"
+ "<img src=\"http://kde.org/images/teaser/jointhegame.gif\""
+ " style=\"max-width:100%;margin-top:3px\""
+ " alt=\"Click to view in browser\" />"
"</a>";
compare(message, imgTag);
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list