summaryrefslogtreecommitdiff
path: root/crocoite/test_warc.py
AgeCommit message (Collapse)AuthorFilesLines
2019-07-28Fix wrong Content-Type header parameterLars-Dominik Braun1-1/+1
In line with HTTP “encoding” parameter should be called “charset”. Fixable errata item created. Fixes issue #19.
2019-07-02Stabilize WARC headersLars-Dominik Braun1-11/+17
In preparation for 1.0 release: - Correct mime types - Add X-Crocoite-Type, so logs, scripts, dom-snapshots and screenshots can be identified easily - Remove random WARC headers like X-Chrome-Initiator. We don’t want to maintain those. - Remove non-standard urn-based package URLs. Can’t use them without a urn-registration
2019-06-18Re-inject behavior scripts on site reloadLars-Dominik Braun1-2/+3
Fixes #13. Event handler’s push() is async now.
2019-01-03browser: Turn Item into RequestResponsePairLars-Dominik Braun1-94/+51
Previously Item was just a simple wrapper around Chrome’s Network.* events. This turned out to be quite nasty when testing, so its replacement, RequestResponsePair, does some level of abstraction. This makes testing alot easier, since we now can simply instantiate it without building a proper DevTools event. Should come without any functional changes.
2018-12-25warc: Add testsLars-Dominik Braun1-0/+261
Using hyothesis-based testcase generation. This is quite nice compared to manual test data generation, since it catches alot more corner cases (if done right). This commit also fixes a few issues, including: - log records will only be written if the log is nonempty - properly quote packageUrl path’s - drop old thread checking code - use placeholder url for scripts without name