Revision 93dd7360
Added by koszko almost 2 years ago
copyright | ||
---|---|---|
75 | 75 |
Comment: Wojtek Kosior promises not to sue even in case of violations |
76 | 76 |
of the license. |
77 | 77 |
|
78 |
Files: test/__init__.py test/test_unit.py test/default_profiles/icecat_empty/extensions.json |
|
78 |
Files: test/__init__.py test/unit/* |
|
79 |
test/default_profiles/icecat_empty/extensions.json |
|
79 | 80 |
Copyright: 2021 Wojtek Kosior <koszko@koszko.org> |
80 | 81 |
License: CC0 |
81 | 82 |
|
82 |
Files: test/profiles.py test/script_loader.py |
|
83 |
Files: test/profiles.py test/script_loader.py test/unit/conftest.py
|
|
83 | 84 |
Copyright: 2021 Wojtek Kosior <koszko@koszko.org> |
84 | 85 |
License: GPL-3+ |
85 | 86 |
Comment: Wojtek Kosior promises not to sue even in case of violations |
Also available in: Unified diff
improve unit testing approach
Unit tests were moved to their own subdirectory.
Fixtures common to many unit tests were moved to test/unit/conftest.py.
A facility to execute scripts in page's global scope was added.
A workaround was employed to present information about errors in injected scripts.
Sample unit tests for regexes in common/patterns.js were added.