qutebrowser/tests/unit
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
..
browser Initial attempt at using the tab API for tests/unit/javascript 2018-03-19 18:18:21 +01: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/3613' 2018-03-13 08:39:36 +01:00
config Add missing qapp fixtures to tests 2018-03-15 09:06:40 +01:00
javascript Load page before loading stylesheets 2018-03-19 21:44:47 +01:00
keyinput Swap Control/Meta back on macOS 2018-03-14 19:40:56 +01:00
mainwindow Merge remote-tracking branch 'origin/pr/3613' 2018-03-13 08:39:36 +01:00
misc Add missing qapp fixtures to tests 2018-03-15 09:06:40 +01:00
scripts Update copyright years 2018-02-05 12:19:50 +01:00
utils Refactor initialization of internal JavaScript 2018-03-19 09:14:55 +01:00
test_app.py Update copyright years 2018-02-05 12:19:50 +01:00