Florian Bruhin
c236e70920
Merge branch 'log-javascript-console' of https://github.com/flv0/qutebrowser into flv0-log-javascript-console
2015-11-28 21:12:25 +01:00
Florian Bruhin
83b94a8be5
Fix session tests.
...
FakeMainWindow needs to be a QObject now as we use sip.isdeleted since
8cf6ace0e7
and that raises a TypeError on
non-QObject's.
2015-11-28 20:41:42 +01:00
Florian Bruhin
03b6459d2f
tox: Update py to 1.4.31.
2015-11-28 20:38:20 +01:00
Florian Bruhin
8cf6ace0e7
Ignore deleted windows when saving session.
...
This hopefully helps with a crash on Windows which happens from time to time
during some multi-window tabs.feature tests:
Traceback (most recent call last):
File "...\mainwindow\mainwindow.py", line 446, in closeEvent
self._do_close()
File "...\mainwindow\mainwindow.py", line 405, in _do_close
objreg.get('session-manager').save_last_window_session()
File "...\misc\sessions.py", line 247, in save_last_window_session
self._last_window_session = self._save_all()
File "...\misc\sessions.py", line 183, in _save_all
win_data['geometry'] = bytes(main_window.saveGeometry())
RuntimeError: wrapped C/C++ object of type MainWindow has been deleted
2015-11-28 20:30:41 +01:00
Patric Schmitz
913aa209c6
remove BadMappingSubclass and rename MappingSubclass
2015-11-28 20:17:31 +01:00
Patric Schmitz
dbc6f63fc0
remove whitespace
2015-11-28 18:57:41 +01:00
Patric Schmitz
03ba38578e
set valid_values after __init__ consistently, move type validation out of class into pytest
2015-11-28 18:29:51 +01:00
Patric Schmitz
fdde05569c
remove redundant __init__ and rely on base class
2015-11-28 18:29:51 +01:00
Patric Schmitz
c14b52f916
initialize valid_values separately, not using base class __init__ parameter
2015-11-28 18:29:51 +01:00
Patric Schmitz
c322130dc0
style changes
2015-11-28 18:29:51 +01:00
Patric Schmitz
6f65397dfe
always set valid_values in __init__ instead of class scope variable
2015-11-28 18:29:51 +01:00
Patric Schmitz
9b453aaad5
revert config transformation
2015-11-28 18:29:51 +01:00
Patric Schmitz
9aaf5c18c1
set valid_values in __init__ methods, except for BaseType s.t. variable is shared across derived class scopes
2015-11-28 18:29:51 +01:00
Patric Schmitz
55edd9cda7
add valid_values = None to config basetype
2015-11-28 18:29:51 +01:00
Patric Schmitz
2867df4c21
revert log-javascript-console changes
2015-11-28 18:29:51 +01:00
Patric Schmitz
6431542eba
fixes to config types, remove unneeded derived __init__ and call base __init__
2015-11-28 18:29:51 +01:00
Patric Schmitz
2a705e2eb6
Make non-specialized config types String. Closes #1103
2015-11-28 18:29:51 +01:00
Patric Schmitz
75f9f2af8d
get rid of redundant option description
2015-11-28 18:29:51 +01:00
Patric Schmitz
ff6d3e05a6
log-javascript-console now String option: none, debug, info
...
Make BaseType.valid_values per-instance variable
2015-11-28 18:29:51 +01:00
Florian Bruhin
f847ddf3cb
bdd: Remove :rl-backward-delete-char test.
...
It's flaky and tested enough via unittests.
2015-11-27 20:29:49 +01:00
Florian Bruhin
9d92baa996
Stop uploading test results to AppVeyor.
...
Seems like we get a HTTP 500 now...
2015-11-27 20:12:25 +01:00
Florian Bruhin
bf3bd3bb9d
Wait for favicon to be loaded for mhtml tests.
...
This hopefully helps with the flaky MHTML tests on Windows where the favicon
was loaded *after* clearing the requests:
http://qutebrowser.org:8010/builders/win8/builds/1370/steps/unittests-frozen/logs/stdio
2015-11-27 19:30:06 +01:00
Florian Bruhin
962ba36cda
Skip qtutils.savefile_open tests without DISPLAY.
...
I don't get why, but for some reason they cause a segfault from time to time...
So let's just skip them.
2015-11-27 19:11:37 +01:00
Florian Bruhin
d6acb3c3f4
bdd: Hopefully make caret tests more stable.
...
We now wait until the clipboard actually changed, which should make things run
better.
This should fix the cases where the expected value is empty in #1142 .
2015-11-27 18:44:59 +01:00
Florian Bruhin
b79049261e
Delay :yank notification until message was yanked.
...
This should make yankpaste tests more reliable.
2015-11-27 18:32:17 +01:00
Florian Bruhin
d5b634301f
Make :rl-backward-delete-char test more stable.
...
The text could be inserted *after* :rl-backward-delete-char was run.
2015-11-27 18:15:17 +01:00
Florian Bruhin
f577da9a6b
Disable App Nap on OS X on Travis. Fixes #1143 .
2015-11-27 17:50:19 +01:00
Florian Bruhin
e9ca1ba5c1
bdd: Add a test for :rl-backward-delete-char.
2015-11-27 16:28:06 +01:00
Florian Bruhin
be4cf19bb1
tests: Improve some parametrized test IDs.
2015-11-27 16:25:25 +01:00
Florian Bruhin
f3c378858b
tests: Remove duplicate test_split testcases.
2015-11-27 16:22:48 +01:00
Florian Bruhin
edf5463007
tests: Fix cmdline_test generation.
...
We accidentally provided valid values twice and invalid values not at all.
2015-11-27 16:17:07 +01:00
Florian Bruhin
84d6359990
bdd: Wait until page is loaded for tab-detach test
...
This should make this test more stable hopefully.
2015-11-27 15:18:53 +01:00
Florian Bruhin
b344f92a90
Add two missing xfail markers.
2015-11-27 15:10:08 +01:00
Florian Bruhin
a43c206893
Mark some caret tests as xfail on Windows/OS X.
...
See #1142 .
2015-11-27 14:39:33 +01:00
Florian Bruhin
e4947b03be
Fix lint.
2015-11-27 11:50:23 +01:00
Florian Bruhin
b4a630563f
bdd: Add tests for caret mode.
2015-11-26 23:42:43 +01:00
Florian Bruhin
dbdedf74c0
bdd: Handle \n when checking clipboard contents.
2015-11-26 22:32:01 +01:00
Florian Bruhin
23068e9679
Don't log yanked test with :yank-selected.
...
It makes our tests fail (invalid log line) and is probably not needed.
2015-11-26 21:23:11 +01:00
Florian Bruhin
3d291482a3
bdd: Move clipboard functions to conftest.py.
...
Those are needed for caret.feature and yankpaste.feature.
2015-11-26 21:22:50 +01:00
Florian Bruhin
bf8a82db12
bdd: Add a test for :tab-detach.
2015-11-26 20:56:36 +01:00
Florian Bruhin
8d1a60528d
bdd: Add some tests for :tab-clone.
2015-11-26 20:44:32 +01:00
Florian Bruhin
8e7a76280b
Use cmdutils.check_exclusive for :tab-clone.
2015-11-26 20:11:53 +01:00
Florian Bruhin
26bbf11ed2
Fix coverage.xml path in .gitignore.
2015-11-26 19:02:22 +01:00
Florian Bruhin
7f5e07d7cc
bdd: Add some tests for :tab-move.
2015-11-26 18:37:47 +01:00
Florian Bruhin
3bcc80048d
bdd: Move yankpaste.html to title.html.
2015-11-26 18:37:33 +01:00
Florian Bruhin
6f1474be71
bdd: Remove trailing dots.
2015-11-26 17:50:39 +01:00
Florian Bruhin
f56e7b1220
Simplify :tab-move code.
2015-11-26 17:44:34 +01:00
Florian Bruhin
987ee59f58
:tab-move: Fix tab index shown in error message.
2015-11-26 16:37:54 +01:00
Florian Bruhin
5a95cfdc7a
Change CommandError to ValueError for :tab-move.
...
This should never happen.
2015-11-26 16:37:29 +01:00
Florian Bruhin
bc28a168cc
bdd: Add tests for :tab-prev/:tab-next/tabs->wrap.
2015-11-26 16:19:03 +01:00