Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit a2a4632e authored by Milian Wolff's avatar Milian Wolff Committed by Kevin Funk

Unbreak the GDB QUrl pretty printer test

Summary:
By changing the test client back to what it expects. Blindly also
adapt the LLDB test which introduced the regression in the first
place. Note that I cannot run the LLDB test locally, so I'm not
sure whether the test passes there.

Still, don't break GDB tests, people are using those...

Reviewers: #kdevelop

Subscribers: kdevelop-devel

Differential Revision: https://phabricator.kde.org/D9922

(cherry picked from commit eeb8c640)
parent 7a47aa5c
#include <QUrl>
int main()
{
QUrl u(QStringLiteral("http://www.kdevelop.org/foo"));
QUrl u(QStringLiteral("http://user@www.kdevelop.org:12345/foo?xyz=bar#asdf"));
return 0;
}
......@@ -941,15 +941,15 @@ void LldbFormattersTest::testQUrl()
WAIT_FOR_A_WHILE_AND_IDLE(m_session, 50);
QList<QPair<QString, QString>> children;
children.append({QStringLiteral("(port)"), QStringLiteral("-1")});
children.append({QStringLiteral("(port)"), QStringLiteral("12345")});
children.append({QStringLiteral("(scheme)"), QStringLiteral("\"http\"")});
children.append({QStringLiteral("(userName)"), QStringLiteral("<Invalid>")});
children.append({QStringLiteral("(userName)"), QStringLiteral("user")});
children.append({QStringLiteral("(password)"), QStringLiteral("<Invalid>")});
children.append({QStringLiteral("(host)"), QStringLiteral("\"www.kdevelop.org\"")});
children.append({QStringLiteral("(path)"), QStringLiteral("\"/foo\"")});
children.append({QStringLiteral("(query)"), QStringLiteral("<Invalid>")});
children.append({QStringLiteral("(fragment)"), QStringLiteral("<Invalid>")});
VERIFY_LOCAL(0, "u", "\"http://www.kdevelop.org/foo\"", children);
children.append({QStringLiteral("(query)"), QStringLiteral("xyz=bar")});
children.append({QStringLiteral("(fragment)"), QStringLiteral("asdf")});
VERIFY_LOCAL(0, "u", "\"http://user@www.kdevelop.org:12345/foo?xyz=bar#asdf\"", children);
}
void LldbFormattersTest::testQUuid()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment