From 50d014b46b9184f962d11116afaef0b3fd71fce5 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Tue, 26 Mar 2013 22:47:21 +0100 Subject: [PATCH] Make the tests pass --- tests/urldetecttest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/urldetecttest.cpp b/tests/urldetecttest.cpp index 58585ad1b..b90d2728d 100644 --- a/tests/urldetecttest.cpp +++ b/tests/urldetecttest.cpp @@ -37,14 +37,14 @@ void UrlDetectTest::testURL_data() QTest::newRow( "3" ) << QString( "http://google.com)" ) << QString(); QTest::newRow( "4" ) << QString( "https://okular.org" ) << QString( "https://okular.org" ); - QTest::newRow( "5" ) << QString( "www.google.com" ) << QString( "www.google.com" ); + QTest::newRow( "5" ) << QString( "www.google.com" ) << QString( "http://www.google.com" ); QTest::newRow( "6" ) << QString( "asdf http://okular.kde.org/" ) << QString( "http://okular.kde.org/" ); QTest::newRow( "7" ) << QString( "http://www.example.com/wpstyle/?p=364" ) << QString( "http://www.example.com/wpstyle/?p=364" ); QTest::newRow( "8" ) << QString( "asdf http://okular.org fdsa" ) << QString( "http://okular.org" ); QTest::newRow( "9" ) << QString( "http://google.com/ø" ) << QString( "http://google.com/ø" ); QTest::newRow( "10" ) << QString( "http://www.wolframalpha.com/input/?i=Plot[%281%2Be^%28-%282%29v%29%29^%28-2%29+%2B+%282%29+%281%2Be^v%29^%28-2%29%2C+{t%2C-0.5%2C+0.5}]" ) << QString( "http://www.wolframalpha.com/input/?i=Plot[%281%2Be^%28-%282%29v%29%29^%28-2%29+%2B+%282%29+%281%2Be^v%29^%28-2%29%2C+{t%2C-0.5%2C+0.5}]" ); QTest::newRow( "11" ) << QString( "http://uid:pass@example.com:8080" ) << QString( "http://uid:pass@example.com:8080" ); - QTest::newRow( "12" ) << QString( "www.cs.princeton.edu/~rs/talks/LLRB/LLRB.pdf" ) << QString( "www.cs.princeton.edu/~rs/talks/LLRB/LLRB.pdf" ); + QTest::newRow( "12" ) << QString( "www.cs.princeton.edu/~rs/talks/LLRB/LLRB.pdf" ) << QString( "http://www.cs.princeton.edu/~rs/talks/LLRB/LLRB.pdf" ); QTest::newRow( "13" ) << QString( "http://IISServer/nwind?template=SELECTTOP2*FROM[OrderDetails]WHEREUnitPrice%26lt;10FORXMLAUTO" ) << QString( "http://IISServer/nwind?template=SELECTTOP2*FROM[OrderDetails]WHEREUnitPrice%26lt;10FORXMLAUTO" ); QTest::newRow( "14" ) << QString( "https://www.example.com/foo/?bar=baz&inga=42&quux" ) << QString( "https://www.example.com/foo/?bar=baz&inga=42&quux" ); QTest::newRow( "15" ) << QString( "http://foo.bar/#tag" ) << QString( "http://foo.bar/#tag" );