diff options
author | Pierre Rossi <pierre.rossi@gmail.com> | 2010-10-20 11:54:48 +0200 |
---|---|---|
committer | Pierre Rossi <pierre.rossi@gmail.com> | 2010-10-20 16:36:41 +0200 |
commit | 1e461a5c06bcbcaa610858d4b7db7e559b96ae80 (patch) | |
tree | 22c98700059cd0a008fb4a21a2d50c1a32121d14 /src/tests | |
parent | Minor clean-up to the UrlPanel class (diff) | |
download | rekonq-1e461a5c06bcbcaa610858d4b7db7e559b96ae80.tar.xz |
Fix highlighting of the last character
Thanks to pano for noticing the bad behavior.
AutoTest updated with the testcase.
Reviewed-By: Benjamin Poulain
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/listitem_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <b><</b> Section <b><</b> Wiki"; QTest::newRow("&") << "<i>http://www.google.com/search?q=qt test&ie=UTF-8&oe=UTF-8</i>" << "&" << "<i>http://www.google.com/search?q=qt test<b>&</b>ie=UTF-8<b>&</b>oe=UTF-8</i>"; - + QTest::newRow("ciao") << "ciao" << "ciao" << "<b>ciao</b>"; + QTest::newRow("http://ciao") << "http://ciao" << "ciao" << "http://<b>ciao</b>"; } void ListItemTest::wordHighLighting() |