2
0
mirror of https://github.com/koreader/koreader synced 2024-11-13 19:11:25 +00:00
koreader/spec/unit
NiLuJe 37a01100b7
Various Wi-Fi QoL improvements (#6424)
* Revamped most actions that require an internet connection to a new/fixed backend that allows forwarding the initial action and running it automatically once connected. (i.e., it'll allow you to set "Action when Wi-Fi is off" to "turn_on", and whatch stuff connect and do what you wanted automatically without having to re-click anywhere instead of showing you a Wi-Fi prompt and then not doing anything without any other feedback).
* Speaking of, fixed the "turn_on" beforeWifi action to, well, actually work. It's no longer marked as experimental.
* Consistently use "Wi-Fi" everywhere.
* On Kobo/Cervantes/Sony, implemented a "Kill Wi-Fi connection when inactive" system that will automatically disconnect from Wi-Fi after sustained *network* inactivity (i.e., you can keep reading, it'll eventually turn off on its own). This should be smart and flexible enough not to murder Wi-Fi while you need it, while still not keeping it uselessly on and murdering your battery.
(i.e., enable that + turn Wi-Fi on when off and enjoy never having to bother about Wi-Fi ever again).
* Made sending `NetworkConnected` / `NetworkDisconnected` events consistent (they were only being sent... sometimes, which made relying on 'em somewhat problematic).
* restoreWifiAsync is now only run when really needed (i.e., we no longer stomp on an existing working connection just for the hell of it).
* We no longer attempt to kill a bogus non-existent Wi-Fi connection when going to suspend, we only do it when it's actually needed.
* Every method of enabling Wi-Fi will now properly tear down Wi-Fi on failure, instead of leaving it in an undefined state.
* Fixed an issue in the fancy crash screen on Kobo/reMarkable that could sometime lead to the log excerpt being missing.
* Worked-around a number of sneaky issues related to low-level Wi-Fi/DHCP/DNS handling on Kobo (see the lengthy comments [below](https://github.com/koreader/koreader/pull/6424#issuecomment-663881059) for details). Fix #6421 
Incidentally, this should also fix the inconsistencies experienced re: Wi-Fi behavior in Nickel when toggling between KOReader and Nickel (use NM/KFMon, and run a current FW for best results).
* For developers, this involves various cleanups around NetworkMgr and NetworkListener. Documentation is in-line, above the concerned functions.
2020-07-27 03:39:06 +02:00
..
autofrontlight_spec.lua Slightly less crappy Nightmode (#4871) 2019-04-08 23:05:08 +02:00
autosuspend_spec.lua [feat, Kobo] Autoshutdown (#5335) 2019-09-12 14:15:08 +02:00
background_runner_spec.lua rename runtimectl to document/canvascontext 2019-03-03 13:10:45 +01:00
background_task_plugin_spec.lua rename runtimectl to document/canvascontext 2019-03-03 13:10:45 +01:00
batterystat_spec.lua Battery stats plugin: fix and improvements (#5626) 2019-11-26 14:21:14 +01:00
benchmark.lua Travis: run luacheck on unit tests (#3059) 2017-08-08 13:35:40 -07:00
cache_spec.lua Travis: run luacheck on unit tests (#3059) 2017-08-08 13:35:40 -07:00
commonrequire.lua [spec] Better insulation (#4972) 2019-04-25 23:33:47 +02:00
dbg_spec.lua dbg_spec: setVerbose test 2017-10-12 19:39:52 +02:00
defaults_spec.lua Tame a few tests that relied on pairs being somewhat deterministic (#6371) 2020-07-14 18:25:26 +02:00
depgraph_spec.lua Tame a few tests that relied on pairs being somewhat deterministic (#6371) 2020-07-14 18:25:26 +02:00
device_spec.lua Allow locking the gyro to the current screen mode (#6347) 2020-07-09 19:11:44 +02:00
docsettings_spec.lua Use fsync() for more robust setting files saving 2019-12-10 23:57:32 +01:00
document_registry_spec.lua Tests: make sure files are deleted (#6323) 2020-06-28 08:03:37 +02:00
document_spec.lua Update bundled fonts (#6242) 2020-06-08 16:36:06 +02:00
eink_optimization_spec.lua move e-ink related settings to a submenu (#4246) 2018-10-10 21:34:47 +02:00
evernote_plugin_main_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
filemanager_spec.lua Allow running shell scripts from the FileManager/Favorites (#5804) 2020-02-03 20:08:18 +01:00
filemanagerconverter_spec.lua Swipe for menu and quickstart guide (#2761) 2017-04-15 14:45:56 +02:00
focusmanager_spec.lua [FocusManager] More intuitive key navigation + spec (#3774) 2018-03-21 12:21:48 +01:00
font_spec.lua dbg(add): guard method to toggle assert at based at runtimemode 2016-03-28 23:38:25 -07:00
frontlight_spec.lua Slightly less crappy Nightmode (#4871) 2019-04-08 23:05:08 +02:00
gesturedetector_spec.lua Allow locking the gyro to the current screen mode (#6347) 2020-07-09 19:11:44 +02:00
gesturerange_spec.lua test(chore): remove side effects 2017-01-30 05:53:44 -08:00
gettext_spec.lua [i18n] GetText: ignore fuzzy strings (#5807) 2020-02-03 12:11:07 +01:00
hook_container_spec.lua Move kobo auto-suspension logic out of UIManager (#2933) 2017-06-23 10:04:11 -07:00
httpclient_spec.lua Travis: run luacheck on unit tests (#3059) 2017-08-08 13:35:40 -07:00
imagewidget_spec.lua fix all the tests 2016-04-19 00:01:28 -07:00
input_spec.lua [spec] Input test stub (#3701) 2018-03-01 20:40:23 +01:00
inputtext_spec.lua [feat] Add ReaderBack (#3821) 2018-03-31 21:19:31 +02:00
koptinterface_spec.lua [spec] Replace custom assert[Not]AlmostEquals with assert.is[_not].near (#3885) 2018-04-15 23:49:08 +02:00
kosync_spec.lua [doc] Tag @todo, @fixme and @warning (#5244) 2019-08-23 19:53:53 +02:00
luadata_spec.lua Add LuaData and Dictionary Lookup History (#3161) 2017-10-07 22:13:46 +02:00
luasettings_spec.lua Add LuaData and Dictionary Lookup History (#3161) 2017-10-07 22:13:46 +02:00
menu_table_screen_color_spec.lua chore: add test for screen color toggle 2019-04-24 21:09:23 +02:00
menusorter_spec.lua Tame a few tests that relied on pairs being somewhat deterministic (#6371) 2020-07-14 18:25:26 +02:00
mock_time_spec.lua Travis: run luacheck on unit tests (#3059) 2017-08-08 13:35:40 -07:00
mock_time.lua [fix] MockTime spec 2017-10-10 14:08:49 +02:00
network_manager_spec.lua [chore] Some Wi-Fi tweaks (#4564) 2019-02-08 22:29:11 +01:00
networksetting_spec.lua Various Wi-Fi QoL improvements (#6424) 2020-07-27 03:39:06 +02:00
nickel_conf_spec.lua [fix, Kobo] Don't crash trying to sync frontlight with Nickel. (#5361) 2019-09-11 18:11:24 +02:00
opds_spec.lua test(chore): remove side effects 2017-01-30 05:53:44 -08:00
optmath_spec.lua [spec] Test all aspects of Math module (#3683) 2018-02-22 12:26:51 +01:00
quickstart_spec.lua quickstart fix (#2804) 2017-04-24 08:27:29 +02:00
random_spec.lua Update KOSyncClient 2016-08-10 10:42:51 -07:00
readerbookmark_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readerdictionary_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readerfooter_spec.lua Fake battery status in readerfooter_spec to succeed on devices with batteries (#6417) 2020-07-24 00:06:23 +02:00
readerhighlight_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readerlink_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readerpaging_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readerrolling_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readersearch_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readertoc_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readerui_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readerview_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
readhistory_spec.lua Travis: run luacheck on unit tests (#3059) 2017-08-08 13:35:40 -07:00
screenshoter_spec.lua Landscape FM / Refactor rotation (#6309) 2020-07-01 16:17:41 -04:00
size_spec.lua Added Size module 2017-09-23 20:24:45 +02:00
spore_spec.lua test(chore): remove side effects 2017-01-30 05:53:44 -08:00
switch_plugin_spec.lua SwitchPlugin and BackgroundTaskPlugin with tests (#3137) 2017-08-31 16:37:39 +02:00
textboxwidget_spec.lua TextBoxWidget: use xtext for text shaping 2019-11-16 18:41:14 +01:00
timeval_spec.lua [spec] Even more TimeVal coverage (#4674) 2019-02-28 17:31:39 +01:00
toggleswitch_spec.lua [spec] Add ToggleSwitch spec stub (#5450) 2019-10-06 21:33:48 +02:00
touch_probe_spec.lua Travis: run luacheck on unit tests (#3059) 2017-08-08 13:35:40 -07:00
translator_spec.lua Fix translator, enable selected text translation 2018-12-17 15:19:25 +01:00
uimanager_bench.lua Travis: run luacheck on unit tests (#3059) 2017-08-08 13:35:40 -07:00
uimanager_spec.lua [feat, Kobo] Autoshutdown (#5335) 2019-09-12 14:15:08 +02:00
util_spec.lua util.getFriendlySize(): add option to right align 2019-12-17 23:46:35 +01:00
version_spec.lua [spec] Version: slight refactor 2018-11-07 20:46:07 +01:00
wakeupmgr_spec.lua [feat, Kobo] Autoshutdown (#5335) 2019-09-12 14:15:08 +02:00
widget_inputcontainer_spec.lua Tame a few tests that relied on pairs being somewhat deterministic (#6371) 2020-07-14 18:25:26 +02:00
widget_menu_spec.lua [fix] Use orderedPairs in touch menu item table (#6404) 2020-07-20 20:58:39 +02:00
widget_progresswidget_spec.lua [travis] Add protection against unscaled sizes 2017-09-23 20:24:45 +02:00
wikipedia_spec.lua Travis: run luacheck on unit tests (#3059) 2017-08-08 13:35:40 -07:00