qutebrowser/tests
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
..
end2end Merge remote-tracking branch 'origin/pr/3789' 2018-05-08 11:45:20 +02:00
helpers Add missing fake_args fixture 2018-05-08 11:26:45 +02:00
manual Update some more references to old config options 2017-07-04 16:46:02 +02:00
unit Greasemonkey: Add test for window scoping refinements. 2018-05-20 18:42:40 +12:00
conftest.py Show version for POSIX OSes 2018-03-11 13:28:53 +04:00
test_conftest.py Update copyright years 2018-02-05 12:19:50 +01:00