qutebrowser/tests/unit/javascript
Florian Bruhin ea1e52ea7c Load page before loading stylesheets
If we don't do this, when doing:

   self.config_stub.val.content.user_stylesheets = css_path

then _update_stylesheet gets called before the stylesheet QWebEngineScript did
run (as there was no load yet), so we get:

  [:2] Uncaught TypeError: Cannot read property 'stylesheet' of undefined!

Instead, load the page first and then update the stylesheet.
This tests that live updating works properly, and also makes sure we don't run
into the problem described above.
2018-03-19 21:44:47 +01:00
..
position_caret Remove unused imports 2018-03-19 19:42:56 +01:00
stylesheet Load page before loading stylesheets 2018-03-19 21:44:47 +01:00
base.html Reorganize tests directory. 2015-08-18 20:19:02 +02:00
conftest.py Fail javascript tests on logging messages 2018-03-19 20:43:55 +01:00
test_greasemonkey.py Greasemonkey: Add test for @require support. 2018-03-03 15:02:42 +13:00