Florian Bruhin
6eadff4a10
Add Python executable to :version
2018-05-14 22:13:15 +02:00
Florian Bruhin
32df91fbae
Merge remote-tracking branch 'origin/pr/3604'
2018-03-20 06:24:57 +01:00
Florian Bruhin
1b84bbd61d
Refactor initialization of internal JavaScript
...
- Initialize JavaScript in webenginesettings.py instead of webenginetab.py
- Move JavaScript snippet into a .js file
- Make sure scripts can be re-run and do nothing if already run.
- Run scripts on DocumentCreation *and* DocumentReady. Closes #3717 .
- Give each script an unique name for debugging.
- Also make custom stylesheets work on chrome:// pages
2018-03-19 09:14:55 +01:00
gammelon
f57e47c742
Separate tests for _get_search_url
2018-03-16 11:42:51 +01:00
Florian Bruhin
1d25b212d5
Add missing qapp fixtures to tests
...
See #3723
2018-03-15 09:06:40 +01:00
gammelon
455f6b8a70
Fix blank lines
2018-03-12 12:37:52 +01:00
Florian Bruhin
b6e29d8eae
Be explicit about expected output in test
2018-03-11 14:35:15 +01:00
Roman Bogorodskiy
d0342bffc4
Show version for POSIX OSes
...
For POSIX OSes other than Linux and macOS set OS Version to
platform.uname() instead of showing 'OS Version: ?'.
2018-03-11 13:28:53 +04:00
gammelon
0ce94dae1c
forgot one bit
2018-03-09 15:55:40 +01:00
gammelon
7e3c966afe
rewrite tests
2018-03-09 15:52:03 +01:00
Florian Bruhin
257753841b
Allow lightweight URL patterns without a scheme
...
See #3622
2018-03-06 10:33:55 +01:00
Florian Bruhin
7fc53ae78a
Make path optional in URL patterns
...
See #3622
2018-03-06 09:45:06 +01:00
gammelon
a730290d40
Use QUrl for parsing, add tests
2018-03-05 16:32:41 +01:00
Florian Bruhin
67b4502fdb
Fix test_version without cssutils
2018-03-05 11:36:50 +01:00
Florian Bruhin
b4a2352833
Cache HTML/JS resource files when starting
...
This mostly reverts 9edc5a665e
(see #1362 ).
Fixes #1943
2018-03-05 09:08:06 +01:00
Florian Bruhin
898f5c50c4
Add a test for utils.chunk
2018-02-27 13:02:32 +01:00
Florian Bruhin
362f923f06
Fix lint
2018-02-27 09:34:55 +01:00
Florian Bruhin
321d5c5d20
Merge branch 'master' into keys
2018-02-25 21:25:12 +01:00
Florian Bruhin
52b5492c6a
Merge branch 'per-url'
2018-02-25 19:44:51 +01:00
Florian Bruhin
49ead32f13
Update urlmatch tests for Chromium changes
...
See:
0ab1294c92
%5E%21/
https://bugs.chromium.org/p/chromium/issues/detail?id=812543
2018-02-23 06:31:49 +01:00
Florian Bruhin
13bd4dd05d
Clean up version.pastebin_url in pbclient fixture
2018-02-21 10:49:42 +01:00
Florian Bruhin
ea6a5de374
Update FIXMEs
2018-02-20 23:28:11 +01:00
Florian Bruhin
18848315f5
urlmatch: Make it possible to leave off trailing slash
2018-02-20 22:45:16 +01:00
Florian Bruhin
46aeb25e7e
Fix lint
2018-02-20 20:55:42 +01:00
Florian Bruhin
63c77a4d76
urlmatch: Fix equality with non-UrlPattern types
2018-02-20 12:30:34 +01:00
Florian Bruhin
685e3ffcfe
Fix and test UrlPattern/configutils.Values stringification
2018-02-20 12:30:34 +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