Commit Graph

2368 Commits

Author SHA1 Message Date
Florian Bruhin
22e1b22acc Remove unused import 2019-02-25 11:26:44 +01:00
Florian Bruhin
184e0ee44e Rename force_document_end to needs_document_end_workaround 2019-02-25 09:57:17 +01:00
Florian Bruhin
94542c5f78 Merge branch 'greasemonkey-quirks' 2019-02-25 09:56:18 +01:00
Florian Bruhin
8642b6e8ce Fix JSTester.run_file() for new pkg_resources
Read the file via open() instead of utils.read_file.
2019-02-25 09:28:25 +01:00
Florian Bruhin
0e11b85474 Re-enable stylesheet tests for Qt 5.12
This partially reverts commit 0953596ed6.
This reverts commit 0aa342eae6.
2019-02-25 09:28:25 +01:00
Florian Bruhin
6dd978ae05 GreaseMonkey: Force document-end for known-broken scripts
See #4322
2019-02-23 12:52:30 +01:00
Jay Kamat
3e816f5f8b
Update copyright for 2019 2019-02-22 21:45:08 -08:00
Florian Bruhin
7c1ddb39d1 Remove unused import 2019-02-22 11:28:06 +01:00
Florian Bruhin
99c8b80a46 Use i- as prefix for the IPC path on macOS
With Qt 5.12, standarddir.runtime() gives us a path in /private/var/folders/...
instead of /var/folders/... like before. Due to that change, the path length is
105 chars, which is too long for a named socket (104 seems to be okay).

The complete name is just slightly too long, so using i- instead of ipc- fixes
things...

Fixes #4471
See #888
2019-02-22 10:22:09 +01:00
Florian Bruhin
04764b9c39 Adjust filename suffix matching for Qt 5.12
https://codereview.qt-project.org/#/c/247517/
https://chromium-review.googlesource.com/c/chromium/src/+/1278137
https://cs.chromium.org/chromium/src/base/time/time_to_iso8601.cc

Fixes #4478
Fixes #4580
2019-02-17 17:53:17 +01:00
Florian Bruhin
2214fd63b5 Merge branch 'pyup-scheduled-update-2019-02-11' 2019-02-16 21:02:39 +01:00
Florian Bruhin
94f998ac3a Adjust for new pytest import handling
See #4511
2019-02-16 20:00:01 +01:00
Florian Bruhin
2d996baea0 Fix remaining new flake8 issues 2019-02-16 19:51:58 +01:00
Florian Bruhin
7c87f4e3d0 s/qApp/q_app/g 2019-02-16 19:51:58 +01:00
Jay Kamat
a343f9df28
Fix issues with tests 2019-02-01 23:03:44 -08:00
Jay Kamat
1c7178c92c
Merge branch 'master' of https://github.com/qutebrowser/qutebrowser into donottrack 2019-02-01 23:02:32 -08:00
Florian Bruhin
1799b7926a Make console available in PAC files 2019-01-14 22:23:30 +01:00
Florian Bruhin
d8c02f495e Add highlighting test 2019-01-13 10:36:14 +01:00
Florian Bruhin
cc0f5fc6d4 Fix migration of scrolling.bar 2019-01-11 11:26:08 +01:00
Florian Bruhin
2c1d039c9e Refactor tests for bool setting migrations 2019-01-11 11:26:08 +01:00
Jay Kamat
8a48e5d2a5
Add benchmark for config cache 2019-01-09 23:16:00 -08:00
Florian Bruhin
4da680f41c Fix lint/test issue 2018-12-15 16:50:15 +01:00
Florian Bruhin
e00a7ee5be Mark IPC test which is broken on macOS as xfail
See #4471
2018-12-12 11:34:18 +01:00
Florian Bruhin
0953596ed6 Skip remaining tests which are broken on Qt 5.12
See #4320, #4244
2018-12-11 18:36:52 +01:00
Florian Bruhin
0aa342eae6 Mark test_appendchild as xfail on Qt 5.12
See #4244
2018-12-11 11:05:06 +01:00
Florian Bruhin
a3279772d5 Fix lint 2018-12-10 18:34:11 +01:00
Florian Bruhin
7f06b54f25 Add more extensions.loader tests 2018-12-10 17:26:58 +01:00
Florian Bruhin
7b1bcea306 Bring back separate is_blocked method 2018-12-10 16:33:24 +01:00
Florian Bruhin
4e99caafb9 Skip hooks for vulture/docs 2018-12-10 16:33:24 +01:00
Florian Bruhin
9764472fd8 Move adblock from browser/ to components/ 2018-12-10 15:03:09 +01:00
Florian Bruhin
ec5a93a80d Add tests for extensions.loader 2018-12-10 12:37:58 +01:00
Maurits van Altvorst
c93bb0c1be Remove Do-Not-Track header, use DNT header instead 2018-12-09 14:42:34 +01:00
Maurits van Altvorst
f5b5aa70ed Edit tests 2018-12-09 11:15:29 +01:00
Florian Bruhin
7bddb7867b Add missing test for configtypes.Key 2018-12-05 17:23:09 +01:00
Florian Bruhin
a9c1fc665f Fix configtypes.Perc.to_str()
If we used an int/float in config.py for a Perc value (e.g. zoom.default),
to_str() returned int/float instead of str, causing qWarnings and bugs.
2018-12-05 17:15:57 +01:00
Florian Bruhin
f53fd56c3d mypy: Add annotations for qutebrowser.config.configtypes 2018-12-05 17:06:45 +01:00
Florian Bruhin
2cb277afd7 Fix exception messages in Command
The messages weren't updated in ac78039171.
2018-12-04 16:30:01 +01:00
Florian Bruhin
71f9c5d206 Fix handling of annotated varargs in commands
When we have something like "*values: str" in :config-cycle, we get a list of
values, but the type converter assumes it's a string.

We could implement proper conversion of *args, but for now, let's just make
sure it's always a string.
2018-12-03 15:55:04 +01:00
Florian Bruhin
40d376fbcf Move unit tests 2018-11-30 16:25:12 +01:00
Florian Bruhin
569bb0fa09 Add cmdutils.Value instead of using count=True/win_id=True 2018-11-30 12:45:01 +01:00
Florian Bruhin
d549d4d5e2 Fix test_configcommands 2018-11-30 11:19:34 +01:00
Florian Bruhin
b3fa43a97c Fix broken test_on_tab_changed 2018-11-30 11:19:34 +01:00
Florian Bruhin
f6c36ccbee Rename openurl to load_url
We still call the :open command openurl, but in the tab API and in
TabbedBrowser it's now called load_url.
2018-11-30 08:31:03 +01:00
Florian Bruhin
0104490978 Use enum values for load_status_changed 2018-11-29 19:44:48 +01:00
Florian Bruhin
b7de287e7b Move CommandError to api.cmdutils 2018-11-29 14:18:11 +01:00
Florian Bruhin
19628d0ae9 Move cmdutils.cmd_dict to objects.commands 2018-11-29 14:18:11 +01:00
Florian Bruhin
351b6c9b45 Add unit test for slashes in search terms 2018-11-29 08:29:56 +01:00
Florian Bruhin
b5253ec473 Fix lint 2018-11-28 13:01:43 +01:00
Florian Bruhin
14fe7f9b0b pass fixup 2018-11-28 12:58:48 +01:00
Florian Bruhin
2237ca2bcf Remove now unneeded pylint suppressions 2018-11-28 12:54:19 +01:00