You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/spec/unit
NiLuJe 9af3e95d9d Kindle: Fix a smattering of frontlight bugs
* afterResume had *two* different implementations, so the historical one
  that handled frontlight fixups no longer ran
  (regression since #10426)
* isFrontlightOn was completely broken, for a couple of reasons:
  * There was no is isFrontlightOnHW implementation, so when it ran, it
    mostly always thought the frontlight was on, because
    self.fl_intensity doesn't change on toggle off.
  * _decideFrontlightState was never called on Kindle,
    so isFrontlightOnHW was never really called, making isFrontlightOn
    completely useless. Call it in setIntensityHW's coda, as it ought to
    be. And properly document that.

Generic *was* calling _decideFrontlightState is setIntensity, but
*before* actually setting the frontlight, which makes no goddamn sense,
so get rid of that, too.

* Also fix frontlight toggle notifications (regression since #10305)

TL;DR: The PowerD API being a mess strikes again.
6 months ago
..
autofrontlight_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2 years ago
autosuspend_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2 years ago
background_runner_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2 years ago
background_task_plugin_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2 years ago
batterystat_spec.lua SystemStat: Show awake/suspend/standby breakdown in % (#9257) 2 years ago
benchmark.lua Travis: run luacheck on unit tests (#3059) 7 years ago
cache_spec.lua Cache: Rewrite based on lua-lru 3 years ago
commonrequire.lua Datastorage: do not create unnecessary folders (#10162) 1 year ago
datetime_spec.lua Duration format: Add spaces, remove lead zeros for Letters (#10141) 1 year ago
dbg_spec.lua dbg_spec: setVerbose test 7 years ago
defaults_spec.lua Misc: Get rid of the legacy defaults.lua globals (#9546) 2 years ago
depgraph_spec.lua Tame a few tests that relied on `pairs` being somewhat deterministic (#6371) 4 years ago
device_spec.lua Misc: Review pass on the previous commits 9 months ago
docsettings_spec.lua DocSettings (again) (#11020) 7 months ago
document_registry_spec.lua Tests: make sure files are deleted (#6323) 4 years ago
document_spec.lua md5: centralize and deduplicate (#11003) 7 months ago
eink_optimization_spec.lua move e-ink related settings to a submenu (#4246) 6 years ago
exporter_plugin_main_spec.lua Refactor exporter.koplugin (#8944) 2 years ago
filemanager_spec.lua DocSettings (again) (#11020) 7 months ago
filemanagerconverter_spec.lua Update UI layout code to use new SVG icons 3 years ago
focusmanager_spec.lua InputContainer: Fall cleanup ;). 2 years ago
font_spec.lua Decrease fonts memory use (#10618) 11 months ago
frontlight_spec.lua Kindle: Fix a smattering of frontlight bugs 6 months ago
gesturedetector_spec.lua Input/Device: Refactor Gyro events handling (#9935) 1 year ago
gesturerange_spec.lua test(chore): remove side effects 7 years ago
gettext_spec.lua tests: fix listing tests with `busted --list` 11 months ago
hook_container_spec.lua Move kobo auto-suspension logic out of UIManager (#2933) 7 years ago
httpclient_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2 years ago
imagewidget_spec.lua "Fix" the ImageWidget test 2 years ago
input_spec.lua Input: Actually fix the timer double-free 2 years ago
inputtext_spec.lua You're doing it wrong, inputtext_spec... 2 years ago
koptinterface_spec.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
kosync_spec.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
luadata_spec.lua tests: fix listing tests with `busted --list` 11 months ago
luasettings_spec.lua tests: fix listing tests with `busted --list` 11 months ago
menu_table_screen_color_spec.lua chore: add test for screen color toggle 5 years ago
menusorter_spec.lua Tame a few tests that relied on `pairs` being somewhat deterministic (#6371) 4 years ago
mock_time.lua [timeval] RIP on All Saints Day (#9686) 2 years ago
mock_time_spec.lua Travis: run luacheck on unit tests (#3059) 7 years ago
network_manager_spec.lua Fix connection bug with non-ASCII SSIDs in wpa_supplicant (#11089) 6 months ago
networksetting_spec.lua Various Wi-Fi QoL improvements (#6424) 4 years ago
nickel_conf_spec.lua [fix, Kobo] Don't crash trying to sync frontlight with Nickel. (#5361) 5 years ago
opds_spec.lua tests: tag tests relying on a working internet access (#10939) 8 months ago
optmath_spec.lua [autosuspend, plugin] Switch to datetimewidget and provide default values (#8480) 3 years ago
persist_spec.lua Persist: unbreak serialize for serpent 2 years ago
quickstart_spec.lua quickstart fix (#2804) 7 years ago
random_spec.lua Update KOSyncClient 8 years ago
readerbookmark_spec.lua Tests: Handle FM/ReaderUI instances slightly more sanely 3 years ago
readerdictionary_spec.lua [chore] Fix todo and fixme tags (#8365) 3 years ago
readerfooter_spec.lua ReaderFooter: separate ToggleFooterMode from TapFooter 1 year ago
readerhighlight_spec.lua Revert "Test: Fiw readerhighlight test" 9 months ago
readerlink_spec.lua Revert "Tests: "Unbreak" some more tests" 9 months ago
readerpaging_spec.lua Revert "Tests: "Unbreak" some more tests" 9 months ago
readerrolling_spec.lua Input/Device: Refactor Gyro events handling (#9935) 1 year ago
readersearch_spec.lua Text search: various Kopt search fixes 11 months ago
readertoc_spec.lua ReaderToc: rework getChapterPageCount/Left/Done() 7 months ago
readerui_spec.lua ReaderUI: minor optimization (#10634) 11 months ago
readerview_spec.lua tests: minor cleanup 11 months ago
readhistory_spec.lua Datastorage: do not create unnecessary folders (#10162) 1 year ago
screenshoter_spec.lua Input/Device: Refactor Gyro events handling (#9935) 1 year ago
size_spec.lua Added Size module 7 years ago
spore_spec.lua UIManager: get rid of self._running and self._run_forever (#9669) 2 years ago
switch_plugin_spec.lua SwitchPlugin and BackgroundTaskPlugin with tests (#3137) 7 years ago
taskqueue_bench.lua [UIManager] Reverse order of _task_queue (#9706) 2 years ago
textboxwidget_spec.lua TextBoxWidget: use xtext for text shaping 5 years ago
time_spec.lua Optimization: Use constant folding for divisions not a power of two (#9609) 2 years ago
toggleswitch_spec.lua [spec] Add ToggleSwitch spec stub (#5450) 5 years ago
touch_probe_spec.lua Travis: run luacheck on unit tests (#3059) 7 years ago
translator_spec.lua tests: tag tests relying on a working internet access (#10939) 8 months ago
uimanager_bench.lua [UIManager] Reverse order of _task_queue (#9706) 2 years ago
uimanager_spec.lua [UIManager] Reverse order of _task_queue (#9706) 2 years ago
util_spec.lua md5: centralize and deduplicate (#11003) 7 months ago
version_spec.lua [chore, spec] Version: test 8-character hash just in case (#7809) 3 years ago
wakeupmgr_spec.lua Clarify our OOP semantics across the codebase (#9586) 2 years ago
widget_inputcontainer_spec.lua Tame a few tests that relied on `pairs` being somewhat deterministic (#6371) 4 years ago
widget_menu_spec.lua [fix] Use orderedPairs in touch menu item table (#6404) 4 years ago
widget_progresswidget_spec.lua [travis] Add protection against unscaled sizes 7 years ago
wikipedia_spec.lua Travis: run luacheck on unit tests (#3059) 7 years ago