Hzj_jie
cf8c0aa81f
Add docsettings unittest
2016-06-06 10:05:16 -07:00
Hzj_jie
016aaa92b9
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
frontend/docsettings.lua
2016-06-06 08:56:07 -07:00
Qingping Hou
301925e34a
textboxwidget(fix): handle onHoldWord event
2016-06-05 00:37:54 -07:00
Qingping Hou
adf5ffdd26
dictquicklookup(fix): use self.region for matching hold event
2016-06-05 00:08:23 -07:00
Qingping Hou
2e417cfbd8
filemanager(refactor): use purge method from docsettings
2016-06-03 22:06:02 -07:00
Qingping Hou
8268d8d32c
test(fix): clean up after screenshot test
2016-06-01 21:32:35 -07:00
chrox
449089881c
accommodation of EPUB spec for new crengine
2016-06-01 21:35:14 +08:00
Huang Xin
f718b0669f
Merge pull request #2045 from koreader/defaults
...
defaults(refactor): remove global hack in filemanagersetdefaults
2016-06-01 08:31:36 -05:00
Qingping Hou
a92a88e063
uimanager(fix): check active widgets in the correct order
2016-05-29 22:03:04 -07:00
Qingping Hou
9586b36eb6
defaults(fix): purge entry from persistent file
2016-05-26 00:44:42 -07:00
Qingping Hou
60587e08c6
defaults(refactor): remove global hack in filemanagersetdefaults
...
also added screensaver folder setting dialog for kobo
2016-05-25 22:07:20 -07:00
Qingping Hou
82a3e0f9ad
automatically adjust ev time for kobo touch
2016-05-23 23:21:14 -07:00
Qingping Hou
068cefe8fc
test: flush book settings before suspend
2016-05-02 22:42:19 -07:00
Qingping Hou
f01b261188
test: add kindle init and fl tests
2016-04-30 22:41:44 -07:00
Qingping Hou
ef4004e72b
test(fix): disable footer in readerlink_spec
2016-04-28 20:31:17 -07:00
Qingping Hou
7c380121ea
test: more readerfooter progressbar tests
2016-04-28 01:26:10 -07:00
Qingping Hou
0f3eeb24c9
progressbar(fix): persist progressbar visibility
2016-04-28 01:25:18 -07:00
Qingping Hou
eb71d29716
kodev(minor): fix arg test
2016-04-23 21:22:57 -07:00
chrox
7071ae2b6e
fix unit test of occurrences search
2016-04-23 21:53:06 +08:00
Qingping Hou
d7b1b403c1
progresswidget(fix): ignore nil self.last
2016-04-20 23:16:40 -07:00
Qingping Hou
572412b1f6
readerrolling(fix): detect end of book properly
2016-04-20 23:12:07 -07:00
Qingping Hou
c22a3747d8
fix all the tests
2016-04-19 00:01:28 -07:00
Qingping Hou
4a66036eb0
test: update test to match the new crengine typesetting
2016-04-18 23:51:06 -07:00
Frans de Jonge
5638819f25
Removed a bunch of "successfully", replaced an ellipsis, and some deviant spellings of KOReader.
2016-04-16 12:37:08 +02:00
Qingping Hou
eb37d9b8b6
kobo: fix screen probe for touch
2016-04-02 23:06:09 -07:00
Qingping Hou
144fd170f1
uimanager(refactor): replace autosuspend if check with noop
2016-03-29 10:02:53 -07:00
Qingping Hou
e3137134f8
dbg(add): guard method to toggle assert at based at runtimemode
2016-03-28 23:38:25 -07:00
Zijie He
b86aa5a02b
Implement auto-suspend function for Kobo. Add test case for UIManager:_checkTasks, which should not clear _task_queue_dirty bit before looping.
2016-03-28 17:53:18 -07:00
Qingping Hou
e5c1ff1ef6
test(bookmark): purge doc settings before test
2016-03-27 17:17:46 -07:00
Qingping Hou
11d5b5c0a1
fix(readerlink): restore reader view context on go back
2016-03-27 16:01:56 -07:00
Qingping Hou
2d5222ef33
readerview: add get/set methods for view context
2016-03-27 15:39:59 -07:00
Qingping Hou
f48d9bd6d9
fix(readerfooter): marker ticks initialization
2016-03-18 23:24:51 -07:00
Qingping Hou
adc7ddccfc
test: start every test suit with a clean reader setting
2016-03-12 15:52:04 -08:00
Qingping Hou
c8cd1d67f5
test: more readerfooter tests
2016-03-12 01:00:52 -08:00
Zijie He
61ec784f91
Add eink_optimization_spec
2016-03-08 19:38:06 -08:00
Qingping Hou
e52c74afcc
test: more uimanager scheduler test
2016-03-07 22:52:52 -08:00
Qingping Hou
b65983da1a
multi-touch: add tests for gesturerange moudle
2016-03-06 22:45:40 -08:00
Qingping Hou
8190093f83
kobo: don't create FrontLightState config if it didn't exist to begin with
2016-03-02 18:25:17 +01:00
zijiehe
e84093c414
Add a flState in Kobo, and KoboPowerD:toggleFrontlight uses flState to control the light instead of intensity.
2016-02-26 15:34:23 +08:00
Qingping Hou
8c01835458
fix: only show reader status at the end of the book
2016-02-23 22:43:35 -08:00
Qingping Hou
69f9ebd528
build: fix doc generation
...
also moved MD5 to koreader-base/ffi
2016-02-23 22:01:12 -08:00
Qingping Hou
03e81cfa4d
test: fix readerui instance reset test
2016-02-17 00:06:55 -08:00
Qingping Hou
417bb5fb14
test: kill in fly hinting event
2016-02-16 23:26:08 -08:00
Qingping Hou
5e3100874f
test: purge doc settings before test
2016-02-15 22:43:47 -08:00
Qingping Hou
12c6bd7121
test: fix readerbookmark unit test
2016-02-14 23:55:32 -08:00
chrox
493c887829
fix travis testfront
2016-02-07 21:48:26 +08:00
Qingping Hou
71ef994318
test: add nickle conf spec
2016-02-03 10:35:47 -08:00
Qingping Hou
d1ca8bc494
fix(filemanager): delete document with settings
2016-01-09 12:12:10 -08:00
Qingping Hou
722eaed4b2
feat: docsettings:getSidecarDir
2016-01-09 12:12:10 -08:00
Qingping Hou
3b92bdc084
feat: support screenshot in filemanager
2016-01-03 00:47:44 -08:00
Qingping Hou
5aefb41631
fix readerfooter spec
2015-12-26 14:20:51 -08:00
Qingping Hou
ab98097e72
add tests for scheduler
2015-12-26 12:59:57 -08:00
Qingping Hou
55234ef899
fix: read stats crashes pdf/djvu documents
2015-12-25 20:57:11 -08:00
chrox
19979fb8f8
postpone loading of httpclient module in unit test
2015-10-07 23:00:49 +08:00
chrox
54f5166254
add koptinterface spec
2015-10-07 22:42:12 +08:00
chrox
429eeed372
verbose unit test log so that we have a clue when there is segfault
2015-10-07 15:14:27 +08:00
Qingping Hou
cdd17906f6
refactor: ui/font:getFace
2015-09-13 01:10:09 -07:00
chrox
f0dbd5939c
fix travis build segfault hopefully
2015-09-13 03:28:17 +08:00
Frans de Jonge
6eca0be44b
Spec updates for new font
2015-09-07 09:42:23 +02:00
Qingping Hou
a30fe26de0
Merge pull request #1543 from chrox/plugable-turbo
...
disable turbo lib by default
2015-06-03 12:47:07 -04:00
chrox
a59621953d
use turbo library in coverage test
2015-06-02 21:23:30 +08:00
chrox
c7cac7b333
disable turbo lib by default
2015-06-02 13:07:17 +08:00
chrox
1fcc425eac
regression test to safeguard droid sans fallback
2015-06-02 12:29:54 +08:00
chrox
a4404cfb10
Add missing urw fonts and fix unit test
2015-04-28 22:20:12 +08:00
chrox
d468b05567
Use turbo looper on Android
2015-04-28 11:06:38 +08:00
Qingping Hou
3a55edd0d5
chore: remove test tag
2015-04-27 00:46:01 -04:00
chrox
0058bc8511
Fix readerbookmark unit test
2015-04-27 11:09:28 +08:00
Qingping Hou
186673587e
chore: fix some of the luacheck errors
2015-04-26 20:57:45 -04:00
chrox
932df2a2f9
Refactor out string.gsplit to util.gsplit
2015-04-22 14:27:33 +08:00
chrox
2f2611af42
fix Travis test
2015-03-21 17:02:25 +08:00
chrox
3984d5b31d
disable debug in unit test
2015-03-09 20:44:37 +08:00
chrox
d08e22ec2e
add simple sync service as a plugin
...
The 'KOSync' plugin will synchronize furthest reading progress
across different koreader devices after users registering their
devices.
The synchronizing service is open-sourced as the project
[koreader/koreader-sync-server](https://github.com/koreader/koreader-sync-server ).
2015-03-09 20:20:36 +08:00
chrox
9ab6224963
add lua Spore to build REST client
2015-03-07 17:05:24 +08:00
chrox
d7faba5b5c
request from async http client only accept one callback
...
and error should be checked in the callback
2015-03-07 11:19:43 +08:00
chrox
0191dc6530
revert busted to v1.10.0 to avoid segmentation fault in testing
2015-03-05 17:56:03 +08:00
chrox
4053b5adac
fix unit test with latest busted
2015-03-03 18:00:38 +08:00
chrox
e74d1fa557
turn off debug in unit test
2015-03-02 17:24:35 +08:00
chrox
9299b9a5e8
add async http client
...
it uses non-blocking turbo I/O looper to process http request
so that multiple http request can be handled simultaneously and http request
won't block user input, and most importantly, in Lua's way.
2015-03-02 17:21:26 +08:00
chrox
5c9a9198fb
add Document:fastDigest method to calculate document hash without performance overhead
2015-03-02 14:55:16 +08:00
chrox
07ff30f89c
add md5:update and md5:sum methods
2015-03-02 14:55:16 +08:00
Qingping Hou
f1d44ec809
test: add imagewidget_spec
2014-12-18 03:33:44 -05:00
chrox
4f35834b2e
wrap computation intensive functions in hook free env when makeing coverage test
...
so that Travis CI job won't fail because of timeout.
2014-12-03 11:01:12 +08:00
chrox
d6c4465c47
fix coverage test fails on OPDS browser module
...
for some reason luxl.lua has problem when being set hook for luacov
2014-12-01 14:46:17 +08:00
Frans de Jonge
47d7a48555
OPDS: refactored unit test and fixed a minor bug with undefined image_rel
2014-11-30 21:44:47 +01:00
Frans de Jonge
c25254a7ec
OPDS: embryonic unit test for OPDS browser
...
This initial seed specifically tests against what recently broke in Gutenberg and FeedBooks.
2014-11-30 19:06:27 +01:00
chrox
fe885be563
refactoring readerbookmark to show both bookmarks and highlights
...
in the bookmark menu
and use binary search of the sorted bookmarks table whenever is
possible.
2014-11-27 22:01:57 +08:00
chrox
08dff3a158
turn off debug in unit test by default
...
Uncommnet the `DEBUG:turnOn()` line to turn it on.
2014-11-27 22:01:57 +08:00
chrox
08f0f14ba3
fix dictionary spec
2014-11-21 18:45:07 +08:00
chrox
566586619a
add unit tests for readerdictionary and readerhighlight
2014-11-21 18:32:43 +08:00
chrox
033ffb1d0f
update readersearch and readertoc specs as crengine is updated
2014-11-18 16:08:39 +08:00
chrox
b80dd1f966
add fulltext search for PDF documents
2014-11-17 17:58:44 +08:00
Hans-Werner Hilse
841e8bd9fa
add test for md5 implementation
2014-11-11 16:24:26 +01:00
chrox
616ef3ba8e
quit uimanager before run uimanager in test
2014-11-05 18:06:05 +08:00
chrox
ae1dd3b380
screenshot to PNG files by default
2014-11-05 16:58:09 +08:00
chrox
bd0975896d
add fulltext search for EPUB documents
2014-11-05 12:28:28 +08:00
Hans-Werner Hilse
3066c86e38
Refactoring hardware abstraction
...
This is a major overhaul of the hardware abstraction layer.
A few notes:
General platform distinction happens in
frontend/device.lua
which will delegate everything else to
frontend/device/<platform_name>/device.lua
which should extend
frontend/device/generic/device.lua
Screen handling is implemented in
frontend/device/screen.lua
which includes the *functionality* to support device specifics.
Actually setting up the device specific functionality, however,
is done in the device specific setup code in the relevant
device.lua file.
The same goes for input handling.
2014-11-02 21:19:04 +01:00
Qingping Hou
df61760c82
test: add spec for Menu.itemTableFromTouchMenu
2014-10-25 19:32:30 -04:00
chrox
7c9130744c
add collapsable TOC menu
2014-10-14 21:34:56 +08:00
chrox
de38ea1199
count only leaf nodes of toc tree when level is zero
2014-10-11 21:10:07 +08:00
chrox
b422eb90cc
refactoring readerrolling
...
and fix lossing progress when switching screen mode
2014-10-10 18:14:33 +08:00
chrox
cec8ee3c29
add isChapterBegin/End API for readertoc
...
and add missing test epub
2014-10-07 17:44:10 +08:00
chrox
b09bb87d4e
refactoring readertoc and readerfooter
...
so that they don't repeat themselves.
2014-10-07 17:10:48 +08:00
chrox
d0b4fa2665
refactoring unit testsuite
2014-10-07 13:06:06 +08:00
chrox
f1f8d8dc4f
make coverage target for code coverage for the unit test
...
so that we can easily find which module needs unit test
In order to run 'make coverage' `luacov` need to be installed
with 'sudo luarocks install luacov'.
2014-10-06 21:31:08 +08:00
chrox
794baf4d8a
benchmark has no specifications so won't be run by default
2014-10-06 21:22:38 +08:00
chrox
8294a629b8
treate quoted slash as plain text in attribute value
2014-09-10 13:27:14 +08:00
chrox
21dcf787da
add OPDS support
...
This PR implements a simple OPDS browser which can be launched
from filemanager menu.
2014-09-05 21:07:43 +08:00
chrox
7048ca971b
add getCoverPageImage api for CreDocument
2014-08-22 21:32:03 +08:00
chrox
b6393b543b
no need of luagettext module
2014-05-30 23:22:13 +08:00
chrox
da84daf17f
add cache spec
2014-05-30 23:20:55 +08:00
chrox
2ad371853a
add reflowing benchmark
2014-05-30 23:16:40 +08:00
chrox
5d77abd804
add spec of document rendering benchmark
2014-05-18 23:39:32 +08:00
chrox
71eda7a0ca
busted test for frontend
2014-05-15 16:11:26 +08:00