summaryrefslogtreecommitdiff
path: root/crocoite/test_controller.py
AgeCommit message (Collapse)AuthorFilesLines
2019-07-13Cookie injection supportLars-Dominik Braun1-0/+50
Add command-line options injecting individual cookies or cookie file into Chrome. Provide default cookie file. This changes the IRC bot’s command splitting to shlex.split, which allows shell-like argument quoting. Fixes #7.
2019-06-18Re-inject behavior scripts on site reloadLars-Dominik Braun1-3/+3
Fixes #13. Event handler’s push() is async now.
2019-06-18Fix idle state tracking race conditionLars-Dominik Braun1-3/+37
Closes #16. Expose SiteLoader’s page idle changes through events and move state tracking into controller event handler. Relies on tracking time instead of asyncio event, which is more reliable.
2019-05-30controller: Fix DepthLimitLars-Dominik Braun1-1/+14
The policy itself must be stateless, since there can be multiple ExtractLinks events (which would cause DepthLimit to reduce its depth every time).
2019-01-07controller: Test timeoutsLars-Dominik Braun1-0/+106
Lots of copy&pasta. Unfortunately the controller uses asyncio.sleep in a few places.