Граф коммитов

4 Коммитов

Автор SHA1 Сообщение Дата
Gunes Acar 16d67cd803 Move boilerplate get_config code to the parent test class.
Read the python modules to be tested from requirements.txt

Add tests to make sure firefox-bin directory and the Firefox
binary within exist.

Fix some PEP8 warnings in the test code.

Remove unused imports.
2016-12-18 20:52:23 +01:00
englehardt 5d86590149 Making extension-based HTTP instrumentation default and deprecating
proxy instrumentation.

The naming of sql tables and browser params have been updated to reflect
that the extension HTTP instrumentation is preferred to the proxy. A few other
notable changes:
(1) Extension HTTP instrumentation is preferred, but still off-by-default
(2) The proxy is now off-by-default and shouldn't be used.
(3) browser_params['save_javascript'] uses the extension, proxy-based
    javascript saving is controlled with browser_params['save_javascript_proxy']
(4) The "post processing pipeline" (which was only used to parse HTTP
    cookies) has been removed and the TaskManager::close API updated.
2016-12-05 12:32:55 -05:00
Gunes Acar c9e1ed8ab0 Inject intrumentation code to page content as a script element.
Add a manual_test module to make it easy to run interactive tests.

Add plugin and mimeType instrumentation.

Log line number, column number of the calling function and stack
entries.

Add local test files for Flash cookie and JS cookie testing.

Add test to make sure the required Python and OS packages are installed.

Mark test_crawl as "slow" to easily avoid calling it. Running
py.test -m "not slow" will exclude crawl test but will run all the
remanining tests.

Add test utility functions to DRY test code.

Add a WebRTC test.

Add a parent class and visit method for the tests.

Fix address in use errors related to local server
by using a py.test fixture with session scope.
2016-04-12 02:47:05 +02:00
englehardt d070cb3305 Fixing AdBlock Plus extension loading. Close #35. In support of #25.
By default, AdBlock Plus will download the list on startup unless it's
already present. It will also load the list after the browser loads.
I've disabled both of these features with prefs. Since auto-update is
disabled, I assume the list will not update mid-crawl.

I've added a utility to fetch a new list from a fresh instance of the
plugin, this should be called before startup. I've also prevented it
from calling home. Tests have been added.

I also fixed a related bug of the new version of Firefox calling
home to check for a localized search provider.
2016-01-20 16:55:27 -08:00