Jaan Vajakas
a80922d45e
Improve XY Cut layout recognition code
...
It was a simple bug in the XY Cut layout recognition code that made it too eager to see columns everywhere.
Also removed the dependence of the layout analysis algorithms on the display DPI (introduced by the recently added feature of using KScreen) to make their behavior more predictable and reproducible.
BUGS: 326207
BUGS: 331090
FIXED-IN: 4.13.0
REVIEW: 115759
2014-02-25 23:59:41 +01:00
Albert Astals Cid
1633066d47
This should help passing the unit tests again
2014-01-13 01:59:01 +01:00
Jon Mease
126b9fdf8c
Add unit tests for editing PDF forms
...
REVIEW: 114049
2013-11-24 16:37:23 +01:00
Albert Astals Cid
ea8316960e
Revert the test, it's broken
2013-10-29 00:49:35 +01:00
Albert Astals Cid
38ef3cabf8
try to find out where test is broken
2013-10-29 00:45:39 +01:00
Jaydeep Solanki
b070de5600
autotest for epub internal links
2013-10-27 17:20:53 +01:00
Fabio D'Urso
cbdd986ef7
Compile^^
...
The original code worked on 32-bit only, the previous Compile++ patch worked on
64-bit only. Hopefully this will work on both ;)
2013-10-18 17:08:09 +02:00
Albert Astals Cid
ed68caae95
Compile++
2013-10-18 16:43:30 +02:00
Jaan Vajakas
dff8bf1b36
Improve searching code
...
Also simplified code a bit by removing unnecessary calls to toLower in TextPagePrivate::findTextInternalForward and TextPagePrivate::findTextInternalBackward I also fixed a small bug: the letter capital I with dot above (U+0130) did not match itself in case-insensitive mode on Qt 4.8.4 (U+0130 still does not match lowercase i (U+0069), which can be considered another bug, that I didn't fix (although this behavior conforms to the Unicode case folding rules)).
(I did not implement the Knuth-Morris-Pratt algorithm that I promised in a comment of Bug 323263 because on second thought I find that the win, if any, would probably be negligible except for some very special documents and special query strings.)
BUGS: 323262
BUGS: 323263
REVIEW: 112135
2013-10-18 16:30:07 +02:00
Fabio D'Urso
e73e54a784
Test we don't crash if the document is closed while a RotationJob is running
2013-07-30 17:20:20 +02:00
Peter Grasch
2282c543d2
Add tests file
...
Albert forgot to commit it
2013-06-23 19:27:59 +02:00
Peter Grasch
4d4dd68ca2
Fix usability issues with selecting annotations
...
REVIEW: 109627
2013-06-23 19:22:21 +02:00
Fabio D'Urso
77a71a021a
Test that Okular doesn't crash after a canceled reload
...
This would have caught the crash I'm going to fix in the next patch
2013-06-08 17:27:17 +02:00
Fabio D'Urso
889c942909
Test that we don't crash if we open the Configure backends dialog twice
...
This would have caught the issue fixed in 3dd3a000db
2013-06-08 16:54:56 +02:00
Jon Mease
4296ac7e5d
Rotate annotation to match page when setting annotation's properties
...
BUG:318828
REVIEW:110229
2013-05-07 22:06:00 +02:00
Jon Mease
3c6140b616
Fix Undo / Redo of annotation creation doesn't properly handle page rotation and adds undo unit tests
...
BUG: 318091
REVIEW: 109989
2013-04-13 22:54:47 +02:00
Albert Astals Cid
50d014b46b
Make the tests pass
2013-03-26 22:47:21 +01:00
Albert Astals Cid
8288959bab
Add proper headers
2013-03-26 22:46:38 +01:00
Jaydeep Solanki
1121cff1b8
Implement Open url in browser for plain text
...
BUGS: 281027
REVIEW: 108614
FIXED-IN: 4.11.0
2013-03-26 22:43:56 +01:00
Albert Astals Cid
005153a728
Try to make it fail on jenkins too
...
Seems the path is not being utf8 and thus stuff does not fail
Don't think this will do anything, but won't hurt
2013-01-22 23:56:53 +01:00
Albert Astals Cid
fc754ec4d7
Add a test (that needs pdflatex) that tests synctexpdf
...
The second one fails (patch is coming in a moment)
This is just to try what jenkins says of all this :D
2013-01-22 23:40:37 +01:00
Albert Astals Cid
e81589e77d
Add test for 311232
2013-01-19 16:14:39 +01:00
Albert Astals Cid
a1ce96bc4a
Make sure regular test does not crash
...
This would have caught bug 313146
2013-01-19 15:31:45 +01:00
Albert Astals Cid
c8a03333b5
Build++
2013-01-19 15:10:15 +01:00
Albert Astals Cid
5261272e45
test to make sure the toc reload feature works
2013-01-19 15:05:39 +01:00
Glen Kaukola
122fab0eee
Krazy: Check single-char QString operations for efficiency.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1110335
2010-04-02 19:07:36 +00:00
Pino Toscano
a355d9fea4
isolate the argument -> url conversion code in an own function in the ShellUtils namespace
...
make the function able to be reused in unit tests (ie adding a function hook for the filename existance check)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1032962
2009-10-08 23:48:04 +00:00
Pino Toscano
d5dd8fce01
when we remove the file:/ from the argument, do the precent-encoding removal to avoid being percent-encoded more than needed
...
based on a patch by Albert, slightly changed + unit test by me
BUG: 207461
svn path=/trunk/KDE/kdegraphics/okular/; revision=1032944
2009-10-08 22:12:21 +00:00
Pino Toscano
ca9b4a14ec
improve/add tests
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1032934
2009-10-08 21:55:01 +00:00
Pino Toscano
b4e301c0e0
start adding a unit test for the shell-related stuff
...
the single test case so far is for testing the url splitting
svn path=/trunk/KDE/kdegraphics/okular/; revision=1032845
2009-10-08 17:22:19 +00:00