[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [messagelib] webengineviewer/src/checkphishingurl/autotests: Fix autotest
From: Montel Laurent <null () kde ! org>
Date: 2017-02-06 5:46:56
Message-ID: E1cac8e-0007yH-MG () code ! kde ! org
[Download RAW message or body]
Git commit 989374d21c63dfff5acaa66c82cb50ff75a07938 by Montel Laurent.
Committed on 06/02/2017 at 05:46.
Pushed by mlaurent into branch 'master'.
Fix autotest
M +5 -4 webengineviewer/src/checkphishingurl/autotests/urlhashingtest.cpp
https://commits.kde.org/messagelib/989374d21c63dfff5acaa66c82cb50ff75a07938
diff --git a/webengineviewer/src/checkphishingurl/autotests/urlhashingtest.cpp \
b/webengineviewer/src/checkphishingurl/autotests/urlhashingtest.cpp index \
85af5639..7fbb04fa 100644
--- a/webengineviewer/src/checkphishingurl/autotests/urlhashingtest.cpp
+++ b/webengineviewer/src/checkphishingurl/autotests/urlhashingtest.cpp
@@ -78,7 +78,7 @@ void UrlHashingTest::shouldCanonicalizeUrl_data()
QTest::newRow("http://host/%25%32%35") << \
QStringLiteral("http://host/%25%32%35") << \
QStringLiteral("http://host/%25");
QTest::newRow("http://host/%25%32%35%25%32%35") << \
QStringLiteral("http://host/%25%32%35%25%32%35") << \
QStringLiteral("http://host/%25%25");
- QTest::newRow("ttp://host/%2525252525252525") << \
QStringLiteral("http://host/%2525252525252525") << QStringLiteral("http://host/%25"); \
+ QTest::newRow("http://host/%2525252525252525") << \
QStringLiteral("http://host/%2525252525252525") << \
QStringLiteral("http://host/%25");
QTest::newRow("http://host/asdf%25%32%35asd") << \
QStringLiteral("http://host/asdf%25%32%35asd") << \
QStringLiteral("http://host/asdf%25asd");
QTest::newRow("http://host/%%%25%32%35asd%%") << \
QStringLiteral("http://host/%%%25%32%35asd%%") << \
QStringLiteral("http://host/%25%25%25asd%25%25");
QTest::newRow("http://www.google.com/") << \
QStringLiteral("http://www.google.com/") << QStringLiteral("http://www.google.com/"); \
@@ -116,16 +116,17 @@ void UrlHashingTest::shouldCanonicalizeUrl() QFETCH(QString, \
input); QFETCH(QString, output);
input = input.trimmed();
- QEXPECT_FAIL("http://http/%01%C2%80.com/", "Not supported yet", Continue);
- QEXPECT_FAIL("http://host/%25%32%35", "Not supported yet", Continue);
+ QEXPECT_FAIL("http://host/%2525252525252525", "Not supported yet", Continue);
+ QEXPECT_FAIL("http://\x01\x80.com/", "Not supported yet", Continue);
QEXPECT_FAIL("%20leadingspace.com/", "Not supported yet", Continue);
QEXPECT_FAIL("http://%20leadingspace.com/", "Not supported yet", Continue);
- QEXPECT_FAIL("http://http/%01%C2%80.com/", "Not supported yet", Continue);
QEXPECT_FAIL("http://www.google.com.../", "Not supported yet", Continue);
QEXPECT_FAIL("http://http/host%23.com/%7Ea%21b%40c%23d%24e%f%5E00%2611%2A22%2833%2944_55%2B", \
"Not supported yet", Continue);
QEXPECT_FAIL("http://host/%%%25%32%35asd%%", "Not supported yet", Continue);
QEXPECT_FAIL("http://host/%25252525252525", "Not supported yet", Continue);
+ QEXPECT_FAIL("http:// leadingspace.com/", "Not supported yet", Continue);
+ QEXPECT_FAIL("test9", "Not supported yet", Continue);
QCOMPARE(WebEngineViewer::UrlHashing::canonicalizeUrl(QUrl::fromUserInput(input)), \
output); }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic