From 1e461a5c06bcbcaa610858d4b7db7e559b96ae80 Mon Sep 17 00:00:00 2001 From: Pierre Rossi Date: Wed, 20 Oct 2010 11:54:48 +0200 Subject: Fix highlighting of the last character Thanks to pano for noticing the bad behavior. AutoTest updated with the testcase. Reviewed-By: Benjamin Poulain --- src/tests/listitem_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tests/listitem_test.cpp') diff --git a/src/tests/listitem_test.cpp b/src/tests/listitem_test.cpp index 961f4b6a..fc0b62ec 100644 --- a/src/tests/listitem_test.cpp +++ b/src/tests/listitem_test.cpp @@ -74,7 +74,8 @@ void ListItemTest::wordHighLighting_data() QTest::newRow("<") << "Subject < Section < Wiki" << "<" << "Subject < Section < Wiki"; QTest::newRow("&") << "http://www.google.com/search?q=qt test&ie=UTF-8&oe=UTF-8" << "&" << "http://www.google.com/search?q=qt test&ie=UTF-8&oe=UTF-8"; - + QTest::newRow("ciao") << "ciao" << "ciao" << "ciao"; + QTest::newRow("http://ciao") << "http://ciao" << "ciao" << "http://ciao"; } void ListItemTest::wordHighLighting() -- cgit v1.2.1