qutebrowser/tests/unit/javascript
Jimmy c7a9792b67 Greasemonkey: Add test for window scoping refinements.
Adds a test to codify what I think greasemonkey scripts expect from
their scope chains. Particularly that they can:

1. access the global `window` object
2. access all of the attributes of the global window object as global
   objects themselves
3. see any changes the page made to the global scope
4. write to attributes of `window` and have those attributes, and changes
   to existing attributes, accessable via global scope
5. do number 4 without breaking the pages expectations, that is what
   `unsafeWindow` is for

There are some other points about greasemonkey scripts' environment that
I believe to be true but am not testing in this change:

* changes a page makes to `window` _after_ a greasemonkey script is
  injected will still be visible to the script if it cares to check and
  it hasn't already shadowed them
* said changes will not overwrite changes that the greasemonkey script
  has made.
2018-05-20 18:42:40 +12:00
..
position_caret Remove unused imports 2018-03-19 19:42:56 +01:00
stylesheet Skip test_set_error entirely 2018-04-16 17:14:14 +02:00
base.html Reorganize tests directory. 2015-08-18 20:19:02 +02:00
conftest.py Log document.body in JS tests 2018-03-20 11:56:46 +01:00
test_greasemonkey.py Greasemonkey: Add test for window scoping refinements. 2018-05-20 18:42:40 +12:00
test_js_execution.py Make test_simple_js_webengine work correctly 2018-03-27 07:29:43 +02:00