From 677858ad9e54e5bb6333977da10541114c5ca9b9 Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 8 May 2012 13:17:26 +0200 Subject: Fix QUrl::StripTrailingSlash for the case of no path at all. Change-Id: I1fd0fe4b9b67996732c85c1792415e371e865595 Reviewed-by: Thiago Macieira --- tests/auto/corelib/io/qurl/tst_qurl.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/auto/corelib/io/qurl/tst_qurl.cpp b/tests/auto/corelib/io/qurl/tst_qurl.cpp index 92717e96f9..46d491ba79 100644 --- a/tests/auto/corelib/io/qurl/tst_qurl.cpp +++ b/tests/auto/corelib/io/qurl/tst_qurl.cpp @@ -2257,6 +2257,7 @@ void tst_QUrl::stripTrailingSlash_data() QTest::newRow("file slash") << "file:///dir/" << "file:///dir"; QTest::newRow("file no slash") << "file:///dir/" << "file:///dir"; QTest::newRow("file root") << "file:///" << "file:///"; + QTest::newRow("no path") << "remote://" << "remote://"; } void tst_QUrl::stripTrailingSlash() -- cgit v1.2.3