Florian Bruhin
e8e6d8409b
Adjust pylint exceptions.
2015-03-11 20:14:39 +01:00
Florian Bruhin
12a82eb371
Add an unittest for foo::bar URLs.
...
See #544 , #546 .
2015-03-11 17:48:24 +01:00
Florian Bruhin
bfc114ae35
Fix lint
2015-03-08 23:15:35 +01:00
Florian Bruhin
181bcc4f8d
Add tests for lineparser.
2015-03-08 22:13:29 +01:00
Florian Bruhin
edf762e210
Avoid pylint duplicate-code warning.
2015-03-06 17:04:56 +01:00
Florian Bruhin
3e5b9a4a4a
log.utils: Add Qt warning filter context manager.
2015-03-06 16:32:26 +01:00
Florian Bruhin
034f1136d3
Add missing qutebrowser.test.log module.
2015-03-06 16:28:30 +01:00
Florian Bruhin
7ed8f3d4ac
unittests: Set up logging properly.
2015-03-05 23:41:46 +01:00
Florian Bruhin
ebae77e8c5
Fix lint.
2015-03-04 20:52:33 +01:00
Florian Bruhin
e5ebea80b3
Add qApp.quit atexit handler in tests.
...
This FINALLY fixes the test segfaults on Windows 8.
2015-03-04 20:48:58 +01:00
Florian Bruhin
be6ea2f0e8
Call QApplication.processEvents on exit.
2015-03-04 20:26:19 +01:00
Florian Bruhin
e431f09fab
test_editor: Fix handling of statusbar messages.
2015-03-04 20:25:57 +01:00
Florian Bruhin
65f21fc8ee
Use unittest.mock.patch for tests. Closes #76 .
2015-03-01 22:10:16 +01:00
Florian Bruhin
c0eb8daff7
Add tests for keyinput->partial-timeout.
2015-03-01 21:35:14 +01:00
Florian Bruhin
003f7fd957
tests: Improve FakeTimer.
2015-03-01 21:30:22 +01:00
Florian Bruhin
bb2caaa11d
Suppress Qt warning in unittests.
2015-03-01 21:30:22 +01:00
Florian Bruhin
84643b4a39
Various unittest fixes and improvements.
2015-02-27 12:43:54 +01:00
Florian Bruhin
d66997610b
Use a single Timer for ambigious keybindings.
2015-02-27 10:59:03 +01:00
Florian Bruhin
5f46870594
Add a FuzzyUrl config type.
2015-02-27 08:08:46 +01:00
Florian Bruhin
fcbd69e209
Clean up standarddir handling #2 .
...
We already attempted this in c5a2039da4
, but
having the directories as module attributes means they'll be created on start
(rather than when they're actually used), and it'd also be impossible to change
them after init for some reason in the future.
To still have a nice short API, we simply change the attributes to functions.
2015-02-26 07:01:22 +01:00
Florian Bruhin
1dc9862c0b
Allow font names with integers in them.
2015-02-25 23:20:09 +01:00
Florian Bruhin
c5a2039da4
Refactor QStandardPaths handling.
2015-02-22 19:13:51 +01:00
Florian Bruhin
cabe5bf2a3
Use the real argparser instance for qtutils tests.
2015-02-22 12:10:42 +01:00
Florian Bruhin
05d8a2429b
tests: Fix double tearDown.
2015-02-20 09:27:41 +01:00
Florian Bruhin
42c8acc7aa
Fix lint
2015-02-20 09:23:06 +01:00
Florian Bruhin
f33bc7bf31
tests: Get rid of second QCoreApplication.
2015-02-20 09:21:59 +01:00
Florian Bruhin
5fe85d0dde
Add test for starting with -c ''.
2015-02-20 09:09:35 +01:00
Florian Bruhin
60d4305cc4
tests: Adjust environ_set_temp to take a dict.
2015-02-20 08:34:24 +01:00
Florian Bruhin
14f2420500
Fix wrong parsing of faulthandler logs.
2015-02-19 22:45:37 +01:00
Florian Bruhin
a41331a402
Remove test QApplication "fix" again.
...
This causes more segfaults than it prevents...
2015-02-19 22:41:36 +01:00
Florian Bruhin
81fb57bbf0
Revert "Try another workaround for broken Windows tests."
...
This reverts commit 852fe2f84c
.
2015-02-19 16:59:33 +01:00
Florian Bruhin
852fe2f84c
Try another workaround for broken Windows tests.
2015-02-19 10:41:04 +01:00
Florian Bruhin
7dd908bd51
Try calling sip.delete on the test QApplication.
...
Maybe this helps with the unit tests on Windows?
2015-02-19 10:03:19 +01:00
Florian Bruhin
543c6cb90b
Quit test QApplication properly.
...
Maybe this fixes the hangs and crashes on the Windows buildbots?
2015-02-19 07:46:08 +01:00
Florian Bruhin
dc9e2a9772
Add a list of common user agents to completion.
2015-02-19 07:09:34 +01:00
Samir Benmendil
0ec05e071f
expand environment vars in settings accepting paths
2015-02-18 15:04:49 +00:00
Florian Bruhin
7a90d7fca8
Fix standarddir tests when XDG_*_HOME is set.
2015-02-18 13:47:15 +01:00
Florian Bruhin
83b636a0a7
Add some more tabhistory test URLs.
2015-02-18 07:10:46 +01:00
Florian Bruhin
8f1d81a644
Add session support.
...
Closes #12 .
See #499 .
See #11 .
This adds PyYAML as a new dependency.
It adds the following new commands:
:session-delete <name>
Delete a session.
:session-load <name>
Load a session.
:session-save [<name>]
Save a session.
:wq [<name>]
Save open pages and quit.
And the following new settings:
general -> save-session:
Whether to always save the open pages.
2015-02-16 20:26:09 +01:00
Florian Bruhin
31e71ed6d9
Fix copyright years.
...
Files created in 2015 don't need to have 2014 as copyright year.
2015-02-06 00:21:57 +01:00
Florian Bruhin
370c182f48
Fix header encoding in FakeNetworkReply test stub.
...
This was broken since ef9ddb2d5f
but we never
noticed it, as an __init__.py was missing in the test folder since
06ec1a3885
.
2015-02-05 07:12:36 +01:00
Florian Bruhin
0957d5df8e
Make tests for browser.http run again.
2015-02-05 06:59:00 +01:00
Florian Bruhin
a95dda8e92
Handle explicit searches with auto-search=false.
...
See #497 .
2015-02-02 22:19:43 +01:00
Florian Bruhin
503fc9f56b
Re-enable some flake8 checks.
2015-02-01 22:38:40 +01:00
Florian Bruhin
b9f16804f7
Make the window title configurable.
...
Closes #489 .
2015-01-28 08:40:16 +01:00
Florian Bruhin
1d167fa428
Fix duplicate method name in crashdialog tests.
2015-01-24 17:45:39 +01:00
Florian Bruhin
3edffefff4
Fix qutebrowser.misc tests.
...
After the utils -> misc rename, we forgot an __init__.py, which means these
tests did never run.
2015-01-24 14:48:16 +01:00
Florian Bruhin
5b3b324331
Produce better titles for crash logs.
...
See #483 and #447 .
2015-01-24 14:48:16 +01:00
Florian Bruhin
6d3f871119
Add workaround for unknown pylint no-member bug.
2015-01-21 00:01:05 +01:00
Florian Bruhin
354018efcd
Make sure QUrl::fromUserInput is valid in is_url.
...
Fixes #460 .
Without this fix, it's possible for URLs to be valid according to is_url, but
not according to QUrl::fromUserInput, e.g. "http:foo:0". This caused an
exception later because fuzzy_url runs qtutils.ensure_valid.
2015-01-09 21:49:26 +01:00