Florian Bruhin
fecebd6ced
Start getting test_config.py to run
2018-02-19 22:09:49 +01:00
Florian Bruhin
7d80825853
Fix test_configfiles.py
2018-02-19 22:09:46 +01:00
Florian Bruhin
5d63dfb24c
Start fixing test_configfiles.py
2018-02-19 22:09:46 +01:00
Florian Bruhin
0f907b1a77
Fix getting YAML values in test_configcommands.py
2018-02-19 22:09:46 +01:00
Florian Bruhin
75181e16fa
Fix test_models.py
...
The Config object got initialized via the config_stub fixture early, so we need
to force it to re-init its values after patching configdata.DATA.
2018-02-19 22:09:46 +01:00
Florian Bruhin
19f7b92abb
Fix test_configinit.py
2018-02-19 22:09:43 +01:00
Florian Bruhin
5eeb223338
Use a different directory for file prompt tests
...
This way they aren't influenced by the config_tmpdir fixture.
2018-02-19 22:08:42 +01:00
Florian Bruhin
d3e8d46593
Use a real YamlConfig for tests
2018-02-19 22:08:42 +01:00
Florian Bruhin
7c1fb1d215
Refactor acceptNavigationRequest handling to use signals
2018-02-19 22:07:53 +01:00
Florian Bruhin
7033af816a
urlmatch: Add equality testcases
2018-02-19 22:07:53 +01:00
Florian Bruhin
eda15c53ad
urlmatch: Improve port error output
2018-02-19 22:07:53 +01:00
Florian Bruhin
d6ea9b1e47
urlmatch: Add test for invalid IPv6 URL
2018-02-19 22:07:53 +01:00
Florian Bruhin
5f6c8435a4
urlmatch: Add initial benchmark/hypothesis test
2018-02-15 18:47:07 +01:00
Florian Bruhin
5627a63265
urlmatch: Fix lint
2018-02-15 18:47:07 +01:00
Florian Bruhin
e161458f91
urlmatch: Add test cases for oddballs
2018-02-15 18:47:07 +01:00
Florian Bruhin
33b7c4bdd0
urlmatch: Fix and test port handling
2018-02-15 18:47:07 +01:00
Florian Bruhin
45cc1aaeb0
urlmatch: Add tests for file://
2018-02-15 18:47:07 +01:00
Florian Bruhin
0a10a4f751
urlmatch: Add more tests for special schemes
2018-02-15 18:47:07 +01:00
Florian Bruhin
28aadc4f96
urlmatch: Add tests for <all_urls>
2018-02-15 18:47:03 +01:00
Florian Bruhin
867f2a8e2b
urlmatch: Use None for match-all path
2018-02-15 18:47:03 +01:00
Florian Bruhin
a8a9cdd81e
urlmatch: Add more tests from Chromium
2018-02-15 18:47:03 +01:00
Florian Bruhin
978b90b5b1
urlmatch: Implement correct IP matching
2018-02-15 18:47:03 +01:00
Florian Bruhin
2d43a1d2e7
urlmatch: Use None as default for host
2018-02-15 18:47:03 +01:00
Florian Bruhin
5419d1caa1
urlmatch: Add glob escaping tests
2018-02-15 18:47:03 +01:00
Florian Bruhin
faeca30dfa
urlmatch: Add more tests
2018-02-15 18:47:03 +01:00
Florian Bruhin
b7c3c10b87
urlmatch: Use class in test
2018-02-15 18:47:03 +01:00
Florian Bruhin
2b274f8e0b
urlmatch: Implement initial matching
2018-02-15 18:47:02 +01:00
Florian Bruhin
3d6cbcf396
urlmatch: Improve matching error for TLD wildcards
2018-02-15 18:47:02 +01:00
Florian Bruhin
fa329c698e
urlmatch: Finish port parsing
2018-02-15 18:47:02 +01:00
Florian Bruhin
a2a95f5fee
urlmatch: Improve port handling
2018-02-15 18:47:02 +01:00
Florian Bruhin
d266190518
urlmatch: Improve port tests
2018-02-15 18:47:02 +01:00
Florian Bruhin
c728d78bea
urlmatch: Host/port parsing
2018-02-15 18:47:02 +01:00
Florian Bruhin
32abb67d1f
urlmatch: Use dedicated ParseError exception
2018-02-15 18:47:02 +01:00
Florian Bruhin
3c17bb97c0
urlmatch: Start with port parsing
2018-02-15 18:47:02 +01:00
Florian Bruhin
1b8dfb6c36
urlmatch: Disallow NUL byte
...
See https://bugs.chromium.org/p/chromium/issues/detail?id=390624
With Qt, we might run into the same issue as well at some point, and it sure
can't hurt to disallow it.
2018-02-15 18:46:58 +01:00
Florian Bruhin
76efba296f
urlmatch: Store path/port
2018-02-15 18:46:55 +01:00
Florian Bruhin
b93c0dad5a
urlmatch: Start UrlPattern
2018-02-15 18:46:51 +01:00
Florian Bruhin
9bf5ff1583
Merge remote-tracking branch 'origin/pr/3584'
2018-02-13 09:43:44 +01:00
Ryan Roden-Corrent
22d7490126
Remove unused import and TODO from urlmarks test.
2018-02-12 19:25:24 -05:00
Florian Bruhin
47451aa495
Open qute://tabs with :buffer
2018-02-12 23:00:26 +01:00
George Edward Bulmer
561e5d17b9
Remove extraneous space
2018-02-12 14:22:25 +00:00
George Edward Bulmer
5b718446b6
Add test for sourcing config with invalid source
2018-02-12 14:19:18 +00:00
George Edward Bulmer
b59a7cdcc0
Report syntax errors as unhandled exceptions
...
Update tests accordingly
2018-02-12 14:07:05 +00:00
George Edward Bulmer
ce8b457bac
Only display exception type if no traceback
...
Update test to match
2018-02-12 13:43:22 +00:00
Ryan Roden-Corrent
d0ca54a0cf
Add unit tests for urlmarks.
2018-02-11 16:40:20 -05:00
Florian Bruhin
3170e35b31
Simplify QtWebKit scheme handlers
2018-02-11 17:14:41 +01:00
Florian Bruhin
c112290664
Make QtNetwork download manager great^H^H^H^Hlobal again
...
We originally made it per-window in b502280c06
for
issue #228 , but that was back when we still needed window IDs for stuff like
message.info.
Nowadays, there's no reason for it to be per-window anymore. The rest of the
download code can deal with one global download manager (because QtWebEngine has
one), and apart from QNAM code which wasn't used here anyways (as tab_id=None)
there was nothing using the window ID anymore.
Also see #3456 which was the original motivation for this change.
2018-02-11 16:15:29 +01:00
Florian Bruhin
f28ab5285c
Merge remote-tracking branch 'origin/pr/3582'
2018-02-11 09:37:49 +01:00
Florian Bruhin
219b75524b
Fix TestCreatingDir on non-Linux
2018-02-10 23:08:47 +01:00
Jay Kamat
11e04c79f4
Add add/remove tests to benchmarks
2018-02-10 15:10:33 -05:00