Martin Tournoij
f806eefba6
Merge branch 'master' into referer-header
2015-06-27 20:43:54 +02:00
Florian Bruhin
6dbac1c047
Rewrite version.version() tests and test short arg.
2015-06-26 22:37:00 +02:00
Florian Bruhin
75b894a186
Include DESKTOP_SESSION in qute:version.
2015-06-24 20:54:37 +02:00
Florian Bruhin
220ac021f0
Print style name in version info.
2015-06-24 20:37:48 +02:00
Florian Bruhin
24424a0486
Fix expected qWarning messages for Qt 5.5.
2015-06-24 20:30:26 +02:00
Florian Bruhin
db267ae195
tests: Increase timeout for starting processes.
...
Windows can be slow...
2015-06-24 18:32:56 +02:00
Florian Bruhin
b7c3e7b959
Disallow {foo} in search engine URLs.
...
This causes an KeyError otherwise when trying to use str.format to insert the
search term.
2015-06-24 07:46:15 +02:00
Florian Bruhin
a5610fd6da
Fix TestReadFile when frozen.
2015-06-19 09:40:26 +02:00
Florian Bruhin
85f6b3c6df
Fix TestGitStr when frozen.
2015-06-19 09:40:26 +02:00
Florian Bruhin
08c8a5f7dd
Skip tests which need sys.executable when frozen.
...
See #770
2015-06-19 09:40:26 +02:00
Florian Bruhin
3de1299650
tests: Use utils.read_file to get javascript files.
...
This will make those tests pass when frozen.
See #770 .
2015-06-18 21:09:10 +02:00
Florian Bruhin
b1334bcc22
Use repr() for unknown objects in utils.qualname.
2015-06-17 06:46:03 +02:00
Florian Bruhin
219c2f8ae8
Ignore "Unable to set geometry" warnings in tests.
...
This reverts commits 9b066ec50a
and
83f7cf84a9
.
This was still broken even after setting the geometry:
https://ci.appveyor.com/project/The-Compiler/qutebrowser
2015-06-12 17:04:12 +02:00
Florian Bruhin
8033931bae
Test key_to_string with all Qt.Key members.
2015-06-12 16:37:07 +02:00
Florian Bruhin
9b066ec50a
Set geometry in test_textbase.py.
...
See 83f7cf84a9
- it seems with the Qt 5.4.2
upgrade there are some more warnings on Windows.
2015-06-12 13:44:10 +02:00
Florian Bruhin
e8830a631e
Increase test_guiprocess timeouts.
...
Apparently 1 second is not enough for Windows to start a process...
2015-06-12 11:54:20 +02:00
Florian Bruhin
425fcdf8e4
Merge branch 'util-tests-1'
2015-06-12 11:50:57 +02:00
Florian Bruhin
36a2f4a15a
Fix newline stripping.
2015-06-11 23:14:56 +02:00
Florian Bruhin
fc32858e5c
Add GUIProcess tests.
2015-06-11 23:05:57 +02:00
Florian Bruhin
1956158096
Make keyword arguments work for MessageModule stub.
2015-06-11 23:03:15 +02:00
Florian Bruhin
fc5349e1dc
Change FakeQProcess stub to a function with spec.
2015-06-11 23:02:18 +02:00
Florian Bruhin
ad401e035f
Proxy QProcess signals.
2015-06-11 20:30:37 +02:00
Florian Bruhin
1f67353a40
Adjust editor tests for GUIProcess.
2015-06-11 20:30:28 +02:00
Florian Bruhin
163bc2e12e
Add GUIProcess.
...
This aims to unify the code which spawns a process and then shows statusbar
notifications when it exited, etc.
2015-06-11 20:30:03 +02:00
Florian Bruhin
3e8a394217
Disable no-member for pylint for os.SEEK_*.
...
This should fix pylint on Windows.
2015-06-11 10:49:06 +02:00
Florian Bruhin
480c4e878e
Ignore pylint warning on Ubuntu/Travis.
2015-06-11 10:26:18 +02:00
Florian Bruhin
171a0f201b
Merge branch 'relapaths' of https://github.com/lamarpavel/qutebrowser into lamarpavel-relapaths
2015-06-08 18:48:11 +02:00
Lamar Pavel
7f27c183be
Include expandvars in File.validate
...
I thought I put this in here before, but apparently I did not. So here it is,
together with a new test to verify it. Other tests needed to be updated with a
mock for os.path.expandvars.
2015-06-08 13:18:16 +02:00
Florian Bruhin
c08078841f
Fix test_qprocess.
2015-06-08 07:49:22 +02:00
Florian Bruhin
1fcce12870
Fix TestPyQIODevice.failing_open on Windows.
2015-06-08 07:45:19 +02:00
Florian Bruhin
00747be9d3
Fix TestSavefileOpen.test_existing_dir on older Qt.
2015-06-08 07:43:40 +02:00
Florian Bruhin
261c44bea9
Fix TestPyQIODevice.test_qprocess on Windows.
2015-06-08 07:42:17 +02:00
Florian Bruhin
1e982a9a84
Add/improve tests for qutebrowser.utils.qtutils.
2015-06-07 23:20:34 +02:00
Florian Bruhin
e60f698615
Add/improve tests for qutebrowser.utils.standarddir.
2015-06-07 23:20:34 +02:00
Florian Bruhin
df53ccf426
Write tests for qutebrowser.utils.version.
2015-06-07 23:20:34 +02:00
Florian Bruhin
4204579c06
Add/improve tests for qutebrowser.utils.utils.
2015-06-07 22:53:30 +02:00
Florian Bruhin
83f7cf84a9
tests: Set progress widget geometry.
...
This hopefully fixes this warning on Windows:
QWindowsWindow::setGeometryDp: Unable to set geometry 113x16+192+124 on
QWidgetWindow/'ProgressClassWindow'. Resulting geometry: 124x16+192+124
(frame: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 0x0, maximum
size: 16777215x16777215).
2015-06-07 11:14:14 +02:00
Florian Bruhin
e98a05e53d
Fix scroll_anchor in javascript tests.
...
It seems scrollRequested doesn't actually get emitted.
2015-06-07 10:38:58 +02:00
Florian Bruhin
e86a79740a
Use raising=True for QtBot.waitSignal.
2015-06-07 02:30:36 +02:00
Florian Bruhin
aa4cb2927d
Fix TestHideQtWarning tests for pytest 1.4.0.
...
pytest captures the Qt logging messages, so we can't use qWarning to test.
2015-06-07 02:29:20 +02:00
Florian Bruhin
2117b2afc6
Revert "Skip test which might be responsible for segfaults."
...
This reverts commit 592ace18d4
.
2015-06-07 01:25:10 +02:00
Martin Tournoij
463e85ff5d
Add referer-header setting, #712
2015-06-05 18:00:21 +02:00
Florian Bruhin
8001099661
Adjust tests.
2015-06-05 17:45:32 +02:00
Lamar Pavel
402aa66756
Merge branch 'master' of github.com:The-Compiler/qutebrowser
2015-06-05 16:10:55 +02:00
Florian Bruhin
9ec6e6da80
Fix exit status codes to be 0-based.
2015-06-04 15:13:20 +02:00
Florian Bruhin
592ace18d4
Skip test which might be responsible for segfaults.
2015-06-01 22:32:11 +02:00
Florian Bruhin
7daf1cb239
Merge branch 'rltests'
2015-06-01 09:03:06 +02:00
Lamar Pavel
f5d299d8c7
Fix intents
2015-05-28 13:05:12 +02:00
Lamar Pavel
b5eea81e2e
Fix File.validate and corresponding tests
...
There were no tests regarding the return value of standarddir.config() and thus
it wasn't caught that it returned None in some cases. This is now fixed by
checking the return of standdarddir.config before calling it and modifying the
corresponding test_validate_exists_rel as well as adding a new
test_validate_rel_config_none.
2015-05-28 12:14:12 +02:00
Lamar Pavel
4851a3d442
Replace isabs with exists in transform
...
In UserStyleSheet.transform os.path.isabs was replaced with os.path.exists, a
more fitting condition. Accordingly two test cases needed to include mocks for
os.path.exists and QUrl.fromLocalFile.
2015-05-27 15:39:58 +02:00