qutebrowser/tests/unit
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
..
browser Add a log-requests debug-flag 2018-05-07 10:23:56 +02:00
commands Wait until runner is finished in test_custom_env 2018-03-19 11:43:08 +01:00
completion Merge remote-tracking branch 'origin/pr/3790' 2018-05-08 11:43:30 +02:00
config Simplify tests 2018-03-28 09:33:27 +02:00
javascript Greasemonkey: Add test for window scoping refinements. 2018-05-20 18:42:40 +12:00
keyinput Add test for hints with numberpad numbers 2018-03-21 17:06:13 +00:00
mainwindow Add basic tests for tab width sizing 2018-03-22 14:27:33 -04:00
misc Update PyPI api URL. 2018-05-02 23:08:51 +12:00
scripts Update copyright years 2018-02-05 12:19:50 +01:00
utils Add Python executable to :version 2018-05-14 22:13:15 +02:00
test_app.py Update copyright years 2018-02-05 12:19:50 +01:00