Florian Bruhin
217e788f4b
Add 'cd' shortcut to clear downloads.
2015-04-04 15:02:08 +02:00
Florian Bruhin
f1ebbda7a0
test_signal: Add docstring for signal().
2015-04-04 12:08:22 +02:00
Florian Bruhin
8e93747040
test_log_time: Fix/simplify duration assert.
...
See #13 .
2015-04-04 12:07:15 +02:00
Raphael Pierzina
dd4096b5a4
Merge remote-tracking branch 'upstream/master'
2015-04-04 11:12:39 +02:00
Florian Bruhin
e23c9401f2
Merge branch 'convert-debug-signal-tests'
2015-04-04 01:18:38 +02:00
Florian Bruhin
cd7319de1e
Merge branch 'convert-logtime-tests'
2015-04-04 01:12:18 +02:00
Florian Bruhin
80b0692971
Remove blank line to make pep257 happy.
2015-04-04 01:11:57 +02:00
Florian Bruhin
1c9f116370
Merge branch 'convert-qflags-key-tests'
2015-04-03 23:52:53 +02:00
Florian Bruhin
2ac0c7b8f0
Remove now unused import from test_debug.
2015-04-03 23:52:13 +02:00
Florian Bruhin
05087b976a
test_qflags_key: Improve xfail message.
2015-04-03 23:43:06 +02:00
Florian Bruhin
544dc650e7
Remove now unused imports from test_debug.
2015-04-03 23:23:31 +02:00
Florian Bruhin
0e76f9b1f1
Whitespace adjustments
2015-04-03 23:19:49 +02:00
Florian Bruhin
e94a8a80f1
test_qenum_key: Use hasattr() for attribute checks.
2015-04-03 23:18:56 +02:00
Florian Bruhin
fba0ae69ce
Remove test_reconverted from qenum_key tests.
...
The test didn't really seem to test anything useful, and also uses a QFlags
instead of a QEnum.
2015-04-03 23:05:08 +02:00
Raphael Pierzina
231feda2c8
Use logger with name of local var logger_name
2015-04-03 22:45:26 +02:00
Raphael Pierzina
efbc8e0cbf
Remove former unittest module test_debug.py
2015-04-03 21:55:19 +02:00
Raphael Pierzina
7540a5bbf4
Convert test_dbg_signal_newline
2015-04-03 21:54:24 +02:00
Raphael Pierzina
22522406e1
Convert test_dbg_signal_eliding
2015-04-03 21:50:32 +02:00
Bruno Oliveira
9c533e1941
Moved tests to outside of qutebrowser package
2015-04-03 16:49:01 -03:00
Raphael Pierzina
9d39fbd4e5
Convert test_dbg_signal
2015-04-03 21:45:10 +02:00
Raphael Pierzina
45e95d497d
Convert test_signal_name using a signal fixture
2015-04-03 21:41:52 +02:00
Florian Bruhin
068947ba7e
Fix search engine syntax documentation.
...
We changed the syntax in 68398035ef
but didn't
adjust the documentation.
See #14 .
2015-04-03 20:54:27 +02:00
Raphael Pierzina
91a8b23aeb
Use actual unittest implementation of assertAlmostEqual
2015-04-03 20:40:37 +02:00
Raphael Pierzina
6fb83aacae
Add a local variable for the logger name
2015-04-03 20:32:29 +02:00
Raphael Pierzina
58a8a7e992
Introduce pytest plugin capturelog and convert test_log_time
2015-04-03 20:10:41 +02:00
Florian Bruhin
25fca03dca
Don't double ampersands in window title.
...
Fixes #599 .
2015-04-03 20:04:44 +02:00
Florian Bruhin
6917c3b32d
set-cmd-text: Add -s/--space argument.
...
We need this because quotes are ignored now, so there'd be no way to set the
text to ":open -t " for example.
2015-04-03 19:07:29 +02:00
Florian Bruhin
3b3b55234b
Add a signal to KeyConfigParser to save config.
...
Before, we used the 'changed' signal for the SaveManager - however, that also
was emitted when only the internal structure changed. Now we add a new signal
for that.
2015-04-03 19:07:29 +02:00
Florian Bruhin
ac63fc073f
save: Add possibility to mark things dirty on add.
...
KeyConfig needs this feature, because it can fix some deprecated commands
during __init__ and emit its dirty-signal, but that happens before the saveable
is added.
2015-04-03 19:07:29 +02:00
Florian Bruhin
630a827afc
Change CHANGED_KEY_COMMANDS to be regexes.
...
Break after first regex
2015-04-03 19:03:30 +02:00
Florian Bruhin
a504bd1436
Don't quote completions for maxsplit-commands.
...
Fixes #564 .
Obsoletes #313 and #453 .
2015-04-03 19:03:30 +02:00
Florian Bruhin
0b26e295bc
Revert fixes for quotes/spaces in maxsplit cmds.
...
Revert "Fix maxsplit-splitting with empty args (""/'')."
This reverts commit 46396cce1e
.
Revert "Remove quotes with split=False commands."
This reverts commit 81bc5dae94
.
See #564 and #453 .
2015-04-03 19:00:16 +02:00
Raphael Pierzina
5b372aeee0
Remove blank lines in test_qflags_key
2015-04-03 18:55:24 +02:00
Raphael Pierzina
0b063ab4b4
Convert test_unknown
2015-04-03 18:51:40 +02:00
Raphael Pierzina
ff75d18e62
Convert test_int
2015-04-03 18:40:41 +02:00
Raphael Pierzina
086f12600c
Convert test_int_noklass
2015-04-03 18:37:12 +02:00
Raphael Pierzina
75e927f79e
Convert test_add_base
2015-04-03 18:33:22 +02:00
Raphael Pierzina
6482025399
Convert test_combined
2015-04-03 18:29:33 +02:00
Raphael Pierzina
f68cfc13e0
Convert test_multiple and use custom xfail marker
2015-04-03 18:25:28 +02:00
Raphael Pierzina
9a47848794
Create a new module and convert test_single
2015-04-03 18:22:13 +02:00
Raphael Pierzina
96a600e9dc
Change containing directory name to debug
2015-04-03 16:37:31 +02:00
Raphael Pierzina
b938318d5f
Remove former unittest class and skip test_reconverted
2015-04-03 16:34:42 +02:00
Raphael Pierzina
6b7ae70e6d
Convert test_unknown
2015-04-03 16:34:42 +02:00
Raphael Pierzina
1b476d9af7
Convert test_int
2015-04-03 16:34:42 +02:00
Raphael Pierzina
9e59108788
Convert test_int_noklass
2015-04-03 16:34:42 +02:00
Raphael Pierzina
df3096fbb5
Convert test_add_base
2015-04-03 16:34:42 +02:00
Raphael Pierzina
11ded52f06
Convert test_metaobj
2015-04-03 16:34:42 +02:00
Raphael Pierzina
d4d14598dd
Convert test_no_metaobj
2015-04-03 16:34:42 +02:00
Raphael Pierzina
64b1b48be6
Extract test_no_metaobj to separate module
2015-04-03 16:34:42 +02:00
Florian Bruhin
7e51addeb0
Fix :set-cmd-text with empty argument.
2015-04-03 14:42:19 +02:00
Florian Bruhin
4e0712622b
Clear search when :search without args is given.
...
Needed for #564 because :search "" won't work anymore.
2015-04-03 14:40:26 +02:00
Florian Bruhin
1dcc5a32d6
Correct keybindings to deprecated commands.
...
Needed for #564 (because of :search "").
Also see #525 .
2015-04-03 14:14:20 +02:00
Bruno Oliveira
298892a4a8
Converted test_standarddir to pytest
...
related to #10
2015-04-02 19:46:52 -03:00
Bruno Oliveira
751b62e344
Moving logging and QApplication to conftest
...
As discussed in #8
2015-04-02 19:09:06 -03:00
Florian Bruhin
18b5512fe9
Remove 'fooled' from state file.
2015-04-02 14:58:34 +02:00
Florian Bruhin
953119ef75
Revert "Minor QWebSettings fix."
...
Happy April's fools!
This reverts commit a98060e020
.
Conflicts:
qutebrowser/app.py
qutebrowser/misc/utilcmds.py
2015-04-02 14:56:42 +02:00
Bruno Oliveira
47b9ea1f88
Fixing docstring typo in test_progress
2015-04-02 08:05:23 -03:00
Florian Bruhin
84b9d34a7f
Fix lint.
2015-04-02 11:57:56 +02:00
Franz Fellner
3d3324ccfa
Add TabIndex label to the statusbar.
...
It shows the current tab index and the number of tabs of the windows it
sits in.
2015-04-02 11:55:42 +02:00
Florian Bruhin
9f9996bc66
Refuse to add empty URLs to history.
2015-04-02 09:09:17 +02:00
Florian Bruhin
214347497a
Fix handling of first :completion-item-prev call.
...
Before, the first item was unconditionally selected when none was selected
before. With :completion-item-prev (e.g. Shift-Tab), it makes more sense to
select the *last* one.
2015-04-02 07:41:56 +02:00
Florian Bruhin
37ab5296a7
Adjust URL completion when quickmarks are changed.
...
Fixes #590 .
2015-04-02 07:40:00 +02:00
Bruno Oliveira
79be5b0f4a
Implemented test for Progress widget
...
Also created a conftest file with a "default_config" fixture.
2015-04-01 22:39:25 -03:00
Bruno Oliveira
1f08d8e319
Implemented test for Percentage widget
2015-04-01 21:24:25 -03:00
Bruno Oliveira
3096f3856a
Implemented test for TextBase widget
2015-04-01 20:50:20 -03:00
Florian Bruhin
068e1c14b6
Don't display internal sessions in completion.
2015-04-01 22:32:41 +02:00
Florian Bruhin
1fb848249e
Handle sessions starting with _ as internal.
...
:session-{load,save,delete} now refuses to handle sessions starting with _,
unless a new -f/--force parameter is given.
2015-04-01 22:31:19 +02:00
Florian Bruhin
840652f396
Use sessions for :restart.
...
This saves a lot more state compared to just passing a list of pages.
2015-04-01 22:18:28 +02:00
Florian Bruhin
2ba28a59fe
Prevent session from being loaded with :restart.
2015-04-01 21:42:02 +02:00
Florian Bruhin
371ec564e1
Split restart() into :restart and _do_restart().
2015-04-01 21:38:18 +02:00
Florian Bruhin
11bd4a13f6
Serialize arguments via json on restart.
...
We want to ignore some positional arguments without ignoring flags/values - and
since there's no easy way to "unparse" an argparse namespace, we instead pass
it as json.
Also note we can't pass it as a file easily, as args have to be available very
early. Passing it as an argument shouldn't be an issue though.
2015-04-01 21:37:06 +02:00
Florian Bruhin
6e435ad215
Add state config sections when initializing.
2015-04-01 18:26:45 +02:00
Florian Bruhin
a98060e020
Minor QWebSettings fix.
...
If you're reading the diff, congrats. Please be quiet and don't spoil the fun
for others though! :)
2015-04-01 00:06:34 +02:00
Florian Bruhin
eeb875d098
Handle unavailable registry in on_focus_changed.
2015-04-01 00:02:29 +02:00
Florian Bruhin
431257d380
Fix handling of key release events.
...
Fixes #593 .
It seems Qt "re-uses" existing keyevents, so we have to save and compare the
data instead.
2015-03-31 23:09:40 +02:00
Florian Bruhin
8ebac8d38c
Various spelling fixes.
2015-03-31 21:11:47 +02:00
Florian Bruhin
eb3b0b960f
Use hunter for line tracing.
2015-03-31 20:38:46 +02:00
Florian Bruhin
2f629befc3
Add an option to disable host blocking.
2015-03-30 18:33:10 +02:00
Florian Bruhin
70ccdd86b2
Add zooming with Ctrl-mousewheel.
...
Closes #51 .
2015-03-30 15:26:07 +02:00
Florian Bruhin
a38c3ae1e1
Add a :tab-detach command.
...
See #62 .
2015-03-30 12:14:15 +02:00
Florian Bruhin
33dff70357
:session-load: Add a -c/--clear argument.
...
See #523 .
2015-03-30 07:13:13 +02:00
Florian Bruhin
dff8f73a11
:session-save: Show which session was saved.
...
This also adds a -q/--quiet argument to not print this.
See #523 .
2015-03-30 07:13:13 +02:00
Florian Bruhin
5233e7fac8
Fix UnboundLocalError on invalid quickmarks.
...
This also improves FuzzyUrlError messages.
2015-03-29 21:20:42 +02:00
Florian Bruhin
b2427701fa
Handle element webFrame being None when hinting.
2015-03-29 19:52:30 +02:00
Florian Bruhin
8af2e712ae
Add a --pdb-postmortem argument.
2015-03-29 19:45:00 +02:00
Florian Bruhin
d062ff5138
Fix starting with -c '' again.
...
Before c5a2039da4
(standarddir refactoring), we
only checked the commandline arguments for the config file, but not when
getting the quickmarks location (as the 'args' argument was None). This means
quickmarks were saved to the default config dir even with -c ''.
With that commit, this was "fixed" accidentally, but quickmarks couldn't handle
the filename being None.
2015-03-27 12:29:12 +01:00
Florian Bruhin
82322beb03
Fix pep257 issues.
2015-03-26 07:08:54 +01:00
Florian Bruhin
ec487dd6b1
Add some logging for javascript messages.
2015-03-24 11:35:58 +01:00
Florian Bruhin
5043f58f3c
Add an --override-restore argument.
...
See #523 .
2015-03-24 07:50:23 +01:00
Florian Bruhin
db98b03f34
Never open URL arguments in background.
2015-03-24 07:44:49 +01:00
Florian Bruhin
1d1ac1ef6f
Save session to load in state file.
...
Before, we always loaded the default session (if it existed) and then deleted
it. This was surprising as the default session was deleted even when another
session was loaded.
Now we don't delete it at all, and save the session to load in the state file.
See #523 .
2015-03-24 07:12:35 +01:00
Florian Bruhin
1425d306bc
Fix lint.
2015-03-23 08:19:31 +01:00
Florian Bruhin
0e8b42a9d8
Add a --relaxed-config options.
2015-03-23 07:58:28 +01:00
Florian Bruhin
e7f5433da3
Enable python warnings earlier and unconditionally.
2015-03-23 07:40:22 +01:00
Florian Bruhin
21d2bb2291
Simplify some unneeded lambdas.
2015-03-23 07:04:50 +01:00
Florian Bruhin
8811947f50
Re-enable some pylint checks.
2015-03-23 07:04:41 +01:00
Florian Bruhin
97b678d8c7
Don't display time deltas < 1s in messages.
2015-03-22 23:50:12 +01:00
Florian Bruhin
c13e09b706
Add option to queue all msgs in unfocused windows.
2015-03-22 23:47:16 +01:00
Florian Bruhin
157c25bb13
Queue messages for 'current' window if unfocused.
...
Fixes #512 .
2015-03-22 22:39:56 +01:00
Florian Bruhin
19d369377e
Update references to HACKING/CONTRIBUTING.
2015-03-20 12:18:15 +01:00