Florian Bruhin
a119e9d5b0
Mark :insert-text with undo test as xfail on OS X
2016-09-07 19:01:24 +02:00
Florian Bruhin
44d1056e54
QtWebEngine: Implement custom HTTP headers
2016-09-07 18:29:38 +02:00
Florian Bruhin
3ce9e795a1
Add a simple end2end test for :adblock-update
2016-09-07 16:27:27 +02:00
Florian Bruhin
fca37abf55
QtWebEngine: Implement webelem.classes
2016-09-07 12:31:48 +02:00
Florian Bruhin
522049132b
Add a test for hinting with ACE editor
2016-09-07 12:28:12 +02:00
Florian Bruhin
948fa033c7
Implement :insert-text for QtWebEngine
2016-09-07 11:20:32 +02:00
Florian Bruhin
919196714b
QtWebEngine: Implement WebEngineScroller.at_bottom
2016-09-07 09:32:51 +02:00
Florian Bruhin
08302c5a5f
Apply @qtwebengine_flaky (too) liberally
2016-09-06 22:10:28 +02:00
Florian Bruhin
1106104700
Add a @qtwebengine_flaky marker
2016-09-06 21:43:02 +02:00
Florian Bruhin
37b1c26e1c
Don't check active win for WebEngine session test
2016-09-06 21:22:50 +02:00
Daniel Schadt
22ac19b151
style fixes
2016-09-06 20:33:48 +02:00
Florian Bruhin
c58a0e926f
Skip scrolling tests on Qt < 5.7
...
This fixes tests on OS X on Travis, since Homebrew is still on Qt 5.6.
2016-09-06 20:29:58 +02:00
Florian Bruhin
22d9c49169
Stabilize scrolling in :repeat-command test
2016-09-06 19:34:38 +02:00
Florian Bruhin
010a52efb8
Stabilize :tab-detach test in invoke.feature
...
When we detach a tab, we need to wait until the page is actually loaded
in the newly detached tab before saving the session.
2016-09-06 19:33:09 +02:00
Florian Bruhin
c59a1535c5
Don't check active window in session test
...
This is flaky as we don't know which window is actually focused.
2016-09-06 19:29:12 +02:00
Daniel Schadt
0ab1902c98
add an userscript test for Windows
2016-09-06 18:41:24 +02:00
nanjekyejoannah
d3e19ec8fc
Add general -> yank-ignored-url-parameters
2016-09-06 18:19:40 +02:00
Florian Bruhin
e77bf62ace
Remove unnecessary @qtwebengine_createWindow tags
...
Since we did now remove the error message, some more tests actually run
fine without the createWindow patch.
2016-09-06 18:04:54 +02:00
Florian Bruhin
7356e32b94
QtWebEngine: Don't search the Holy Grail
2016-09-06 17:38:13 +02:00
Florian Bruhin
fcaadb9352
Stabilize :save-session --force test
2016-09-06 17:04:13 +02:00
Florian Bruhin
7f013b7808
Fix lint
2016-09-06 17:00:25 +02:00
Florian Bruhin
8b3517af7b
bdd: Skip another flaky QtWebEngine tabs test
2016-09-06 17:00:25 +02:00
Florian Bruhin
82180429ed
Add missing wait in :undo test
2016-09-06 15:50:27 +02:00
Florian Bruhin
4b431fdf61
Add some more @qtwebengine_createWindow tags
2016-09-06 15:28:30 +02:00
Florian Bruhin
8a5d7455c1
Skip some broken :undo tests with QtWebEngine
2016-09-06 15:28:19 +02:00
Florian Bruhin
7b9b08a167
QtWebEngine: Fix session tests
2016-09-06 15:13:43 +02:00
Florian Bruhin
85b3d08c66
bdd: Fix scrolling tests with QtWebEngine
...
Scrolling happens async with QtWebEngine, so we add a new log output
when the page was scrolled, and wait for that in various places.
2016-09-06 14:58:33 +02:00
Florian Bruhin
f6392d730f
Stabilize test in invoke.feature
...
When we use about:blank, the wait doesn't actually wait (because we
already did open about:blank earlier), so we need to use another URL or
this test will be flaky.
2016-09-06 14:04:54 +02:00
Florian Bruhin
2e49368b51
Add missing @qtwebengine_createWindow tag
2016-09-06 13:56:41 +02:00
Florian Bruhin
1ed637a906
QtWebEngine: Initial session implementation
2016-09-06 13:55:35 +02:00
Florian Bruhin
4f55b435f0
Move various session unit tests to BDD tests
2016-09-06 13:55:28 +02:00
Florian Bruhin
ff5bfced9d
Skip flaky QtWebEngine :forward test
2016-09-05 22:05:12 +02:00
Florian Bruhin
59300cb71e
Add tests for js-can-open-windows-automatically
2016-09-05 17:25:52 +02:00
Florian Bruhin
0b3656c446
tests: Don't wait for nonexistant log message
2016-09-05 17:25:41 +02:00
Florian Bruhin
525d5ce922
Mark another flaky test with @qtwebengine_skip
2016-09-05 17:10:30 +02:00
Florian Bruhin
22be46e7d3
Skip flaky QtWebEngine test
2016-09-05 16:53:27 +02:00
Florian Bruhin
bdc1885f6d
Add missing @qtwebengine_createWindow marker
2016-09-05 16:48:21 +02:00
Florian Bruhin
c6142df3ec
bdd: Re-add test for #906 for QtWebEngine
2016-09-05 15:53:31 +02:00
Florian Bruhin
f2c4cedf61
QtWebEngine: Don't add invalid URLs to history
2016-09-05 15:08:00 +02:00
Florian Bruhin
8115fa2af8
Re-enable some createWindow tests
2016-09-05 15:08:00 +02:00
Florian Bruhin
a52c8d6576
Clean up javascript double-close test
...
The test for QtWebEngine was removed because something weird happened
with the two pytest-bdd tags, and I'm too annoyed with everything being
broken to investigate now... Future me, I'm sorry.
2016-09-05 15:08:00 +02:00
Florian Bruhin
ce98d89352
Add some (crashing...) window.open/.close tests
2016-09-05 15:08:00 +02:00
Florian Bruhin
141b7c5893
Increase timeout in auto-follow-timeout test
2016-09-05 15:08:00 +02:00
Florian Bruhin
19ac488997
tests: Add QUTE_BDD_WEBENGINE environment variable
2016-09-05 15:08:00 +02:00
Florian Bruhin
cf070d48f2
WebEngine: Disable createWindow for Qt < 5.7.1
...
Fixes #1911 .
The bugfix is backported in my qt5-webengine-debug package, and
QUTE_QTBUG54419_PATCHED can be set to force qutebrowser to use
createWindow.
2016-09-05 15:08:00 +02:00
Florian Bruhin
2c2375ff18
Add a separate QtWebEngine test for #906
2016-09-05 15:08:00 +02:00
Florian Bruhin
30327b2acf
Move end2end tag handling to end2end/conftest.py
2016-09-05 15:08:00 +02:00
Florian Bruhin
6c6e98aac4
Add a @qtwebkit_skip marker
2016-09-05 15:08:00 +02:00
Florian Bruhin
a4cd0291a6
Implement QWebEngineView.createWindow
2016-09-05 15:08:00 +02:00
Florian Bruhin
a85ea92a21
Merge branch 'open-editor-all-modes' of https://github.com/kobezda/qutebrowser into kobezda-open-editor-all-modes
2016-09-05 10:59:53 +02:00
Ján Kobezda
da65f7234a
Allow :open-editor in modes other than insert
...
':open-editor' can now be run in all modes.
Resolves #1902
2016-09-04 22:23:16 +02:00
Florian Bruhin
ea4f4e197f
Handle elements which are out of view correctly
...
Fixes #1910
2016-09-04 21:09:15 +02:00
Florian Bruhin
faa052ad6f
Fix hang with multiple spaces in URL completion
2016-09-04 20:19:16 +02:00
Florian Bruhin
6798583e91
Merge branch 'test_yanking' of https://github.com/julianuu/qutebrowser into julianuu-test_yanking
2016-09-01 22:05:21 +02:00
Ryan Roden-Corrent
24a5bffbd8
Test for completion warnings with 1 item.
...
Add a regression test for #1600 : Warnings from completionwidget when it
only has 1 item.
Addresses #1899 .
2016-08-31 22:25:34 -04:00
Julian Weigt
fc3c93d3dd
run test for clipboard also if selection is not supported
2016-08-30 11:30:32 +02:00
Florian Bruhin
1c0cbc3269
Improve qute:settings tests
2016-08-29 07:09:14 +02:00
Florian Bruhin
5917f34eab
Merge branch 'settings' of https://github.com/lahwaacz/qutebrowser into lahwaacz-settings
2016-08-29 06:52:17 +02:00
Jakub Klinkovský
b272fce2cf
fix test for setting an invalid value via qute://settings
2016-08-26 15:33:35 +02:00
Jakub Klinkovský
9ff945c56f
add tests for qute://settings
2016-08-26 14:51:40 +02:00
Julian Weigt
853e75e3db
Split test for yanking
2016-08-25 13:41:47 +02:00
Julian Weigt
193d219eaf
Added test for yanking
2016-08-24 17:39:52 +02:00
Florian Bruhin
8c9bf96435
Merge branch 'test_no_dict' of https://github.com/julianuu/qutebrowser into julianuu-test_no_dict
2016-08-23 23:08:51 +02:00
Florian Bruhin
77aa8b4337
pylint: Use ignored-modules for pytest
...
See https://github.com/PyCQA/astroid/pull/357
2016-08-23 07:45:31 +02:00
Julian Weigt
be89e8f499
Add check that qutebrowser defaults to letter hints
2016-08-21 19:37:30 +02:00
Julian Weigt
f98ba7ba0e
Added test for empty dictionary
2016-08-21 15:33:55 +02:00
Florian Bruhin
679165ebab
Remove unneeded import
2016-08-19 19:02:12 +02:00
Florian Bruhin
dec0f0753d
Relax the checking in :view-source test
2016-08-19 17:22:07 +02:00
Florian Bruhin
3b897d6a64
bdd: Move :debug-log-* near :log-capacity tests
2016-08-19 15:05:45 +02:00
Florian Bruhin
6781f6409b
bdd: Test :debug-log-capacity with negative value
2016-08-19 15:05:20 +02:00
Florian Bruhin
33e71525ed
bdd: Test :debug-log-filter with invalid filter
2016-08-19 15:04:11 +02:00
Florian Bruhin
75c3b1a9f8
Fix test for :debug-log-level with invalid level
...
Since we're getting dictionary keys in choices=..., we need to sort them
so we get a consistent message.
2016-08-19 14:57:21 +02:00
Florian Bruhin
37758131f5
Delete broken :debug-log-{filter,level} tests
2016-08-19 14:43:42 +02:00
knaggita
bd6f4ae7c0
Add end2end tests issue52
2016-08-19 14:21:06 +02:00
knaggita
1d5a3a6175
Add :debug-loglevel :debug-logfilter commands
2016-08-19 14:12:19 +02:00
Florian Bruhin
f7a7e82939
bdd: Skip another flaky backforward test with qtwe
2016-08-19 13:15:45 +02:00
Florian Bruhin
8378e16139
Fix ignored tag in misc.feature
...
Seems like pytest-bdd ignores that second tag...
2016-08-19 12:20:23 +02:00
Florian Bruhin
a88adcca17
bdd: Stop checking requests in yankpaste.feature
...
It's not needed and only makes the test more unreliable (e.g. flaky with
QtWebEngine)
2016-08-18 23:58:33 +02:00
Florian Bruhin
044b3df872
bdd: Skip another flaky test for QtWebEngine
2016-08-18 23:47:27 +02:00
Florian Bruhin
fa0bde631d
bdd: at_top is actually implemented (scroll)
2016-08-18 23:47:09 +02:00
Florian Bruhin
ea0f137fd1
bdd: Tag flaky backforward test qtwebengine_skip
2016-08-18 23:33:56 +02:00
Florian Bruhin
339ac42623
bdd: Mark :insert-text tests as @qtwebengine_todo
2016-08-18 23:04:03 +02:00
Florian Bruhin
d2f69db0ff
bdd: Mark qute:bookmarks tests as qtwebengine_todo
2016-08-18 23:00:10 +02:00
Florian Bruhin
63628d2f97
bdd: Wait for any focus object in tabs.feature
...
With QtWebEngine, we get a "Focus object changed" logged pointing to the
QOpenGLWidget, not the tab.
2016-08-18 22:57:21 +02:00
Florian Bruhin
50031c5aae
bdd: xfail in check_open_tabs for QtWebEngine
2016-08-18 22:54:41 +02:00
Florian Bruhin
15f142880e
bdd: Mark qute:settings test as @qtwebengine_todo
2016-08-18 22:52:36 +02:00
Florian Bruhin
1763f9bb58
bdd: Mark search/sessions as qtwebengine_todo
2016-08-18 22:50:57 +02:00
Florian Bruhin
2969d3dc91
bdd: Mark prompt.feature as TODO on QtWebEngine
2016-08-18 22:47:11 +02:00
Florian Bruhin
84b8ea856d
bdd: Skip :scroll-page+navigate tests on webengine
2016-08-18 22:46:48 +02:00
Florian Bruhin
8da942ddc7
bdd: Skip tests on WebEngine causing memory leaks
2016-08-18 22:46:32 +02:00
Florian Bruhin
d5131aa0a4
navigate.feature: Add @qtwebengine_todo
2016-08-18 22:23:11 +02:00
Florian Bruhin
69514df126
hints.feature: Skip flaky test on QtWebEngine
2016-08-18 22:22:56 +02:00
Florian Bruhin
0557fea79e
Use QApplication.sendEvent instead of postEvent
...
From the QApplication.postEvent docs:
http://doc.qt.io/qt-5/qcoreapplication.html#postEvent
The event must be allocated on the heap since the post event queue
will take ownership of the event and delete it once it has been
posted. It is not safe to access the event after it has been posted.
We can't reliably guarantee that from Python, so we need to use
sendEvent instead.
2016-08-18 21:36:43 +02:00
Florian Bruhin
25faa04196
bdd: Add qtwebengine tags in misc.feature
2016-08-18 20:34:03 +02:00
Florian Bruhin
577f1b850a
bdd: Make :jseval tests work with QtWebEngine
2016-08-18 19:26:50 +02:00
Florian Bruhin
d298787b1a
bdd: Make marks.feature work with QtWebEngine
2016-08-18 19:22:18 +02:00
Florian Bruhin
105c1952a8
bdd: Skip scroll checks with QtWebEngine
2016-08-18 19:20:48 +02:00
Florian Bruhin
2cbaf0ccb3
Add @qtwebengine_todo in javascript.feature
2016-08-18 18:44:07 +02:00
Florian Bruhin
e477b810bd
bdd: Mark backforwards test as qtwebengine_todo
2016-08-18 18:29:10 +02:00
Florian Bruhin
0c50e7dfb9
WebEngine: Don't bother running downloads.feature
2016-08-18 18:28:41 +02:00
Florian Bruhin
f03cd5022e
pylint doesn't know pytest.xfail
2016-08-18 18:27:24 +02:00
Florian Bruhin
ab4e442602
QtWebEngine: Don't bother running caret.feature
2016-08-18 18:26:31 +02:00
Florian Bruhin
001e839ca9
Remove qtwebengine_todo for backforward.feature
2016-08-18 18:22:44 +02:00
Florian Bruhin
2d97ffa323
bdd: xfail in compare_session with WebEngine
2016-08-18 18:20:25 +02:00
Florian Bruhin
e950b09027
tests: Get history.feature to work with WebEngine
2016-08-18 18:17:01 +02:00
Florian Bruhin
8d381aaa01
tests: Improve @qtwebengine_* markers
...
This uses xfail for @qtwebengine_todo and adds a new @qtwebengine_skip
marker.
2016-08-18 18:16:33 +02:00
Florian Bruhin
4b7a3db0eb
tests: QtWebEngine: Make hints.feature work
2016-08-18 17:50:52 +02:00
Florian Bruhin
5e8254d470
bdd: Mark some hint tests as @qtwebengine_todo
2016-08-18 17:43:50 +02:00
Florian Bruhin
745614e45d
BDD: Wait until hints are ready after hinting
...
With QtWebEngine, hinting happens async, so we need to wait for
"hints: ..." in the log before we can actually follow a hint.
2016-08-18 17:21:50 +02:00
Florian Bruhin
d7110069bb
Fix broken :repeat-command test
2016-08-18 16:58:56 +02:00
Florian Bruhin
a06dcc7f0b
BDD: Use :click-element instead of hints
2016-08-18 16:25:58 +02:00
Florian Bruhin
4719e11e78
Add a test for :click-element with --target
2016-08-18 15:58:46 +02:00
Florian Bruhin
cc9b776476
tests: Use :click-element in editor.feature
2016-08-18 15:58:40 +02:00
Florian Bruhin
0cef4ac2db
Add a :click-element command
2016-08-18 15:30:04 +02:00
Florian Bruhin
28a6b3918c
Fix lint
2016-08-18 14:42:42 +02:00
Florian Bruhin
c37c501b25
Mark download BDD tests as TODO for QtWebEngine
2016-08-18 13:16:52 +02:00
Florian Bruhin
7515438f88
Skip back/forward BDD tests for now
2016-08-18 13:12:07 +02:00
Florian Bruhin
082fc5667e
Remove requests check for :back/:forward test
2016-08-18 13:06:42 +02:00
Florian Bruhin
e10b7ba8ab
tests: Add @qtwebengine_todo marker
2016-08-18 13:05:37 +02:00
Florian Bruhin
01fd7cd210
Merge branch 'issue1060' of https://github.com/haasn/qutebrowser into haasn-issue1060
2016-08-17 12:01:53 +02:00
Florian Bruhin
8d6b905f95
Merge branch 'insert-text' of https://github.com/blyxxyz/qutebrowser into blyxxyz-insert-text
2016-08-16 13:29:42 +02:00
Florian Bruhin
2d7d47dc30
Rewrite word hint test as BDD test
...
See #1842 .
2016-08-16 13:08:49 +02:00
Florian Bruhin
8e6d784fd7
Merge branch 'fix_hints_autofollow' of https://github.com/lahwaacz/qutebrowser into lahwaacz-fix_hints_autofollow
2016-08-16 12:58:56 +02:00
Niklas Haas
c2cc28a72b
Add new-instance-open-target.window = first-opened
...
Fixes #1060 .
In the process of adding this, I also decided to rewrite
mainwindow.get_window() for clarity (and also because flake8 was warning
about complexity).
Also adds some tests to the new-instance-target mechanism, in particular
a specific test for the issue in question.
2016-08-16 12:24:38 +02:00
Florian Bruhin
cf0b12b5a9
Merge branch 'var_replacements' of https://github.com/lahwaacz/qutebrowser into lahwaacz-var_replacements
2016-08-16 11:49:31 +02:00
Florian Bruhin
380856bcb2
Merge branch 'navigate-count' of https://github.com/pvsr/qutebrowser into pvsr-navigate-count
2016-08-16 11:21:07 +02:00
Florian Bruhin
9d7d307aa5
Merge branch 'winonly' of https://github.com/haasn/qutebrowser into haasn-winonly
2016-08-16 11:02:49 +02:00
Peter Rice
ad9dfc1981
add end-to-end tests for navigating with a count
2016-08-16 04:28:31 -04:00
Michael Hoang
8608c6b8b3
Remove unnecessary fresh instance requirement for test
2016-08-16 08:04:54 +10:00
Michael Hoang
c0ab474b21
Give error when trying to detach a single tab
2016-08-16 07:36:39 +10:00
Jakub Klinkovský
befaf4f6dc
fix nested expansion of {variables} in command args
2016-08-14 15:29:16 +02:00
Niklas Haas
b6145d98a4
Remove some unnecessary "fresh instances" in tests
...
With the addition of :window-only, it's no longer necessary to use
"Given I have a fresh instance" to clean up previous windows. This
greatly cuts down on the amount of process restarts that need to happen
to complete a full testing cycle.
I also made one of the tests more robust against order alterations, and
removed some unnecessary extra commands that were already implied by the
background on others.
2016-08-12 00:20:57 +02:00
Niklas Haas
d5080bdb1a
Add :window-only command
...
I mainly added this so I can speed up all of the tests that rely on
closing other windows.
2016-08-11 23:37:14 +02:00
Florian Bruhin
fe3c748e44
Fix another navigation request log
2016-08-11 17:47:13 +02:00
Florian Bruhin
20517e9a8f
Adjust navigation request logging in hints.feature
2016-08-11 16:38:51 +02:00
Jakub Klinkovský
9b1c07e2e2
add tests for hints auto-follow in word mode
2016-08-11 15:20:52 +02:00
Jan Verbeek
79ab5da45b
Update test comment
2016-08-11 14:04:30 +02:00
Florian Bruhin
aafdc225bc
tests: Use last history item to check scroll pos
2016-08-11 11:56:11 +02:00
Florian Bruhin
bb2eee6178
Add a test for #1821
2016-08-11 11:49:56 +02:00
Florian Bruhin
c12aeea670
tests: Move data/scroll.html to data/scroll/simple
2016-08-11 11:47:55 +02:00
Jan Verbeek
e7367bd949
Make :insert-text test platform-independent
...
The test for inserting text at a specific position failed because
<Ctrl+Right> doesn't behave the same on Windows and Linux. This changes
it to move the cursor using other keys.
2016-08-11 02:26:48 +02:00
Jan Verbeek
4966debd61
Deprecate :paste-primary to :insert-text {primary}
2016-08-10 21:55:16 +02:00
Florian Bruhin
57896dc00e
Merge branch 'clip' of https://github.com/blyxxyz/qutebrowser into blyxxyz-clip
2016-08-10 20:38:54 +02:00
Jan Verbeek
efa53ac25e
Add variable tests
2016-08-10 19:42:03 +02:00
Jakub Klinkovský
073e5555ca
add more tests for hints auto-follow
2016-08-10 16:12:09 +02:00
Michael Hoang
66dcc391ba
Add tests to check :undo opens in the old position
2016-08-10 21:52:02 +10:00
Jakub Klinkovský
605e90a222
simplify hints auto-follow tests
2016-08-10 13:14:21 +02:00
Jakub Klinkovský
f69c02a2b1
tests: fix hints auto-follow tests
2016-08-10 13:05:53 +02:00
Jakub Klinkovský
a31565f46e
hints: make auto-follow a quadruple option instead of binary
2016-08-10 12:40:16 +02:00
Florian Bruhin
cc0579bd1a
Merge branch 'bind-alias' of https://github.com/rcorre/qutebrowser into rcorre-bind-alias
2016-08-10 09:35:28 +02:00
Ryan Roden-Corrent
245212efa1
Allow binding to an alias.
...
Fix #1813 : Cannot :bind to alias
2016-08-09 21:37:12 -04:00
Florian Bruhin
fb3da578c5
Fix lint
2016-08-09 17:28:14 +02:00
Niklas Haas
62e58c0ab9
Add a --mode flag to :hints
...
This allows a specific keybinding, for whatever reason, to override the
default mode. Examples of when this could be useful:
* :hint --rapid --mode=word (to type them more rapidly)
* :hint --mode=letter input (if the default mode is number)
Also reword the description of 'group' to make the distinction between
'group' and 'mode' clearer.
2016-08-09 15:34:13 +02:00
Jan Verbeek
ebfe23c376
Merge https://github.com/The-Compiler/qutebrowser into clip
...
Also make it possible to use multiple variables in one argument.
2016-08-07 13:14:46 +02:00
Jan Verbeek
0177dafbd0
Add {clipboard} and {primary} to replace :paste
...
:paste is deprecated and replaced by equivalents using :open and the
new variables, and :open supports opening newline-separated lists of
URLs.
2016-08-06 22:03:50 +02:00
Marshall Lochbaum
54ba27cf77
Merge :yank-selected into :yank ( fixes #820 )
...
Changes :yank's flag arguments to a positional "what" argument
specifying the object to be yanked. Including "selection" as a
possibility allows for the replacement of :yank-selected with
:yank selection.
2016-08-05 22:01:17 -04:00
Florian Bruhin
8cc9f30eba
Add a BDD test for :debug-log-capacity
2016-08-05 15:13:36 +02:00
Florian Bruhin
466a87af6a
Merge branch 'end2endTest4@844' of https://github.com/nanjekyejoannah/qutebrowser into nanjekyejoannah-end2endTest4@844
2016-08-04 18:21:43 +02:00
nanjekyejoannah
04b007986f
end2end testcase for #844
2016-08-04 13:47:14 +03:00
Daniel Schadt
8730dc6f8e
tests: use :hint instead of :hint all download
...
:hint all download does not use the response headers to determine the
filename (the prompt is shown before a request is even done), so our
long filename was pretty useless.
:hint works because it does a request first and uses the right filename,
but we need to wait until the prompt is shown before we can do
:prompt-open-download, since the request is a bit slower and would fail
otherwise.
2016-08-04 11:16:43 +02:00
Daniel Schadt
e21bdab2c0
rename function to remove duplicate
2016-08-04 02:14:46 +02:00
Daniel Schadt
47b455957f
tests: actually download file
...
Otherwise the :prompt-open-download will throw an error since the
request is not fast enough.
2016-08-04 01:47:02 +02:00
Daniel Schadt
8f4377937d
use shlex.quote instead of "{}"
2016-08-04 01:41:50 +02:00
Daniel Schadt
d2107498a2
add a test for downloads with long filenames
...
See issue #1725 .
2016-08-04 01:06:42 +02:00
Daniel Schadt
afa7494c5f
add tests for download-open/prompt-open-download
...
This has tests for
* standard :download-open
* standard :prompt-open-download
* :prompt-open-download + cancel the download (issue #1728 )
2016-08-03 17:59:32 +02:00
nanjekyejoannah
4e93e04468
end2end testcase for issue #844
2016-08-03 18:55:33 +03:00
Florian Bruhin
1fb4aa3532
Merge branch 'tab-open-implicit' of https://github.com/mlochbaum/qutebrowser into mlochbaum-tab-open-implicit
2016-08-03 09:16:49 +02:00
Marshall Lochbaum
97a249d8a6
Rewrite tests in open.feature
2016-08-02 15:27:26 -04:00
Marshall Lochbaum
66adbc9323
Add --implicit flag to :open
2016-08-02 13:49:25 -04:00
Marshall Lochbaum
8a127f2839
Remove cmdutils.arg_or_count
2016-08-02 11:31:03 -04:00
Florian Bruhin
424758a6d1
Use HTML content for localstorage test
...
JS logging is disabled by QtWebKit in private browsing mode
2016-08-02 15:18:25 +02:00
Florian Bruhin
43ff1b0d97
Tunnel private-browsing to QtWebKit correctly
2016-08-02 14:19:31 +02:00
Florian Bruhin
5ec39b7540
Fix crash when opening http://foo%40bar@baz
2016-08-01 17:18:14 +02:00
Florian Bruhin
4414f5fea9
Merge branch 'tab-move-index' of https://github.com/mlochbaum/qutebrowser into mlochbaum-tab-move-index
2016-08-01 16:17:09 +02:00
Florian Bruhin
86669600ff
Consider input elements without type for hinting
2016-08-01 15:49:50 +02:00
Marshall Lochbaum
a7438f4f15
Extend tab-move's direction argument to take an index ( fixes #1701 )
2016-07-29 23:06:51 -04:00
Claire Cavanaugh
e409eafe2a
Add test for opening a quickmark
2016-07-28 23:36:05 -07:00
Florian Bruhin
be609d5779
Improve logging for BaseKeyParser
...
See #1653
2016-07-27 10:27:53 +02:00
Marshall Lochbaum
826d0befe0
Update number files
2016-07-26 13:57:35 -04:00
Marshall Lochbaum
b2c2d5a4f4
Add --delete option to bookmark-load
2016-07-26 13:49:17 -04:00
Marshall Lochbaum
ae7fe2ee33
Update number files
2016-07-26 09:14:51 -04:00
Marshall Lochbaum
28842c90b6
Add --toggle flag to bookmark-add ( fixes #1667 )
2016-07-26 09:07:21 -04:00
Florian Bruhin
f4f6a3dac1
Merge branch 'open-download' of https://github.com/Kingdread/qutebrowser into Kingdread-open-download
2016-07-26 10:32:34 +02:00
Marshall Lochbaum
028e7239ed
Add more number files
2016-07-25 15:37:02 -04:00
Marshall Lochbaum
3ffb726b98
Merge branch 'master' into mark-del-no-args
2016-07-23 12:12:19 -04:00
Marshall Lochbaum
f52c7f13d3
Update numbers in urlmarks test
2016-07-23 12:05:26 -04:00
Marshall Lochbaum
9eeda62adf
Use quickmark-add rather than quickmark-save in test
2016-07-23 12:05:26 -04:00
David Vogt
1f320b8686
Various fixes after code review.
...
* Move documentation changes of bookmark / quickmarks to docstrings, as the
asciidoc is autogenerated from those
* Fix some whitespaces in the BDD test cases
* Improved docstring in qute_bookmarks handler
2016-07-23 14:50:28 +02:00
David Vogt
85be6565fc
Implement feature request #1033 : Bookmark display
...
There is a new page now, qute:bookmarks that will display all bookmarks and
quickmarks. It's still missing a search / filter feature, but you can use
the built-in search / navigation just as easily for now.
2016-07-23 12:09:49 +02:00
Marshall Lochbaum
e9660ad676
Fix incorrect number in test
2016-07-21 22:45:36 -04:00
Marshall Lochbaum
ff682606ab
Add tests for bookmark-del and quickmark-del with no arguments
2016-07-21 22:34:10 -04:00
Florian Bruhin
8a290bf9b2
Add a test for #1657/#1658
2016-07-18 14:31:01 +02:00
Florian Bruhin
ff89ae7839
Merge branch 'master' of https://github.com/blyxxyz/qutebrowser into blyxxyz-master
2016-07-13 21:21:37 +02:00
Jan Verbeek
13cbdbb8bd
Record mode for :repeat-command before executing
2016-07-13 15:24:45 +02:00
Florian Bruhin
9c49900f9e
QtWebEngine: Add JS logging
2016-07-13 10:55:04 +02:00
Daniel Schadt
8795f89c88
tests: fix tests for downloads bdd test
...
The test was failing because of two reasons:
First, the old code had filename questions in DownloadManager.get and
DownloadManager.fetch which were almost identical, thus the part in
DownloadManager.get was removed in an earlier commit. All filename
asking is now done by DownloadManager.fetch. The good part is code
deduplication, the bad part is slightly modified behavior: The new code
doesn't wait for a filename to start the download, instead it tries to
fill the buffer immediately. This made the test fail because qute:// has
no registered handler, so in order for the test to pass now, the "no
crash" part is not enough, we also need to expect the "No handler"
error.
Secondly, and a rather rare (race) condition was the handling of errors
in the DownloadItem. If an error occured after the registration of
self.on_reply_error as error handler and before the check
reply.error() != QNetworkReply.NoError
at the end of the function, the error signal would be emitted twice:
Once by _die() (called by on_reply_error), and once by the init_reply
function directly (in the last if block). This lead to duplicated error
messages. This is also explained in a comment in the file (with small
"stack traces").
2016-07-12 16:52:01 +02:00
Daniel Schadt
7608805c9a
tests: adjust tests for new download mode
...
Now the prompt is shown with PromptMode.download instead of
PromptMode.text, which we need to change in the tests.
2016-07-12 16:52:01 +02:00
Florian Bruhin
64b32ec87d
Remove general -> wrap-search
2016-07-12 16:47:57 +02:00
Florian Bruhin
f0da508c21
Move searching out of WebView subclass
...
This also makes it work for QtWebEngine.
It also seems to fix #1050 though I'm not 100% sure why.
2016-07-12 16:29:50 +02:00
Florian Bruhin
9f6b3973d3
Adjust :print --pdf test title
2016-07-12 13:29:32 +02:00
Florian Bruhin
77035851a3
Sanity check the PDF file for :print --pdf test
2016-07-12 13:28:43 +02:00
Florian Bruhin
fce825f9df
Remove redundant "Given a new tmpdir" step
...
With the (tmpdir) replacement we'll get a temporary directory no matter
what, so this is unnecessary.
2016-07-12 13:22:47 +02:00
Florian Bruhin
7a39021d41
Merge branch 'issues/1630' of https://github.com/jdkaplan/qutebrowser into jdkaplan-issues/1630
2016-07-12 10:07:59 +02:00
Jeremy Kaplan
6b2b096f3c
Add test for :print --pdf
2016-07-11 20:08:24 -04:00
Florian Bruhin
4f9be56d7d
Merge branch 'add-bookmark-by-url' of https://github.com/ismail-s/qutebrowser into ismail-s-add-bookmark-by-url
2016-07-11 20:54:09 +02:00
Florian Bruhin
9f9e41687f
Add a (tmpdir) replacement for BDD tests
...
See #1639
2016-07-11 20:47:37 +02:00
Ismail S
394d9d1404
Add more tests for :bookmark-add
2016-07-08 15:54:39 +01:00
Florian Bruhin
00b287117a
Fix tabs.feature tests
2016-07-07 18:32:52 +02:00
Florian Bruhin
70117265d6
Fix some a/an misspellings
...
Thanks to https://github.com/jwilk/anorack
2016-07-05 08:34:03 +02:00
Jan Verbeek
8039e7ab74
Move :repeat-command tests
2016-07-03 22:32:07 +02:00
Florian Bruhin
d1f6ae99b5
tests: Skip :spawn with invalid quoting on Windows
...
For some reason this often causes segfaults lately - let's skip it until
we can investigate what's wrong.
See #1614
2016-07-03 17:32:19 +02:00
Jan Verbeek
4172e39045
Move :repeat-command tests to scroll.feature
2016-07-02 01:42:47 +02:00
Jan Verbeek
4f32d94f5f
Remove obsolete :edit-url with count test
2016-06-30 22:58:05 +02:00
Florian Bruhin
eb463ab2d3
Fix pytest-bdd tags
2016-06-30 14:47:55 +02:00
Florian Bruhin
8d9a699b5b
test requirements: Update to pytest-bdd 2.17.0
...
This also allows us to have dynamic pyqt>=5.3.1 etc. tags.
2016-06-30 14:02:30 +02:00
Jan Verbeek
320b9cac3f
Move repeat-command, make it work with multiple modes, improve tests
2016-06-30 02:22:02 +02:00
Jan Verbeek
cc1899ebca
Add tests for repeat-command, make compatible with different count methods
2016-06-29 20:29:56 +02:00
Jan Verbeek
3c2c7ecaae
Test for scroll with count and argument
2016-06-29 11:47:51 +02:00
Florian Bruhin
8eee3f6bce
Add a test for zooming in cloned tab
2016-06-15 14:44:01 +02:00
Florian Bruhin
4fccc89d7d
Split browser into browser/browser.webkit
2016-06-13 11:18:21 +02:00
Florian Bruhin
66938ed44b
Full redirect support for history
...
When a redirect occurs, the item is saved in history with a -r suffix
now. When opening qutebrowser that's picked up and the item is hidden
from completion.
2016-06-10 14:40:42 +02:00
Florian Bruhin
e0acda403f
Add an end-to-end test for :history-clear
2016-06-10 13:20:58 +02:00
Florian Bruhin
089131c79d
Improve error message when clicking invalid link
2016-06-09 17:43:33 +02:00
Florian Bruhin
ab8a2f7147
Fix lint
2016-06-09 17:12:23 +02:00
Florian Bruhin
035526848e
Add a hints -> find-implementation setting
...
This makes it possible to switch to an alternative implementation if
there are weird issues like #1568 . Some users might also prefer the
slightly better performance over more accurate hints.
2016-06-09 17:00:08 +02:00
Florian Bruhin
9e1d20017c
tests: Mark "History with an error" as flaky
...
For some reason, sometimes on Travis the history file we read is empty.
I have no idea why though, as we successfully wait until ":save saved
history" is logged, and that is working fine.
Let's just mark the test as flaky for now so we can move on.
2016-06-09 11:17:18 +02:00
Florian Bruhin
288744c8d0
Use BDD test for link with spaces issue
...
Clicking actually works fine without the strip() as _resolve_url is
never called in that case, so we need to do something which actually
needs the URL as well.
2016-06-09 10:50:08 +02:00
Florian Bruhin
4fe6935003
Merge branch 'lowercase-toggle' of https://github.com/EliteTK/qutebrowser into EliteTK-lowercase-toggle
2016-06-08 22:39:19 +02:00
Florian Bruhin
01a622bf02
history tests: Sync with :save better
2016-06-08 22:32:39 +02:00
Tomasz Kramkowski
a98cd9a528
Change relevant tests to work with new toggle behaviour
2016-06-08 19:37:13 +01:00
Florian Bruhin
e08c6cb059
Don't save the original URL for redirected pages
...
See #1345
2016-06-08 17:15:08 +02:00
Florian Bruhin
483a5f8103
Fix sharing of cookie jars with private browsing
...
Fixes #1219
2016-06-08 16:35:43 +02:00
Florian Bruhin
b6e534f9b8
Add BDD tests for new history code
2016-06-08 15:15:54 +02:00
Florian Bruhin
1104a731a5
Fix filtering of all hints in number mode
...
Fixes #1559
2016-06-07 18:34:46 +02:00
Florian Bruhin
db0a67766d
Ignore hints -> scatter for number hints
...
See https://github.com/The-Compiler/qutebrowser/issues/308#issuecomment-167091450
2016-06-07 15:13:30 +02:00
Florian Bruhin
ca88b7a1cf
Add test for multi-word matching
2016-06-07 14:24:53 +02:00
Florian Bruhin
d3eec49b6e
Add automated test for #1186
2016-06-07 14:15:32 +02:00
Florian Bruhin
8ff53fdb7f
Add an automated test for #576
...
This is now testable easily since hints are renumbered
2016-06-07 14:08:25 +02:00
Florian Bruhin
efddd64d56
Add test for #308
2016-06-07 13:52:17 +02:00
Florian Bruhin
82d7c33b29
Add tests for hints -> auto-follow-timeout
2016-06-07 11:06:39 +02:00
Florian Bruhin
bdef8c4e3a
Fix lint
2016-06-07 08:23:35 +02:00
Florian Bruhin
fd8286d4eb
Fix BDD runtest_makereport hook on non-BDD tests
2016-06-06 23:37:26 +02:00
Florian Bruhin
b635d10836
Merge branch 'iframe_tests' of https://github.com/lahwaacz/qutebrowser into lahwaacz-iframe_tests
2016-06-06 23:32:20 +02:00
Florian Bruhin
b0df87842e
Show BDD scenario on failed tests
...
See #1552
2016-06-06 23:09:19 +02:00
Jakub Klinkovský
b1997c1e00
tests: add missing wait in "Scenario: Opening a link with specific target frame in a new tab"
2016-06-06 18:26:04 +02:00
Jakub Klinkovský
199f0aeb76
tests: un-xfail some iframe tests ( #1525 )
...
The given reason (clicking an iframe to get a focus) applies to only one
test, the others are either stable or flaky for a different reason.
2016-06-06 17:34:22 +02:00
Florian Bruhin
c9d85d3a12
bdd: Add tests for partial commandline matching
2016-06-06 16:10:10 +02:00
Florian Bruhin
2f60073cdf
bdd: Allow to run invalid commands via quteproc
2016-06-06 16:10:01 +02:00
Florian Bruhin
abfd789f9e
Fix zooming with a too big count
...
Fixes #1118
Supersedes #1140
2016-06-06 13:25:01 +02:00
Florian Bruhin
0e4dbd646c
Merge branch 'hints_positioning' of https://github.com/lahwaacz/qutebrowser into lahwaacz-hints_positioning
2016-06-06 10:22:06 +02:00
Florian Bruhin
164be08627
Rename shadowed function
2016-06-06 09:06:49 +02:00
Florian Bruhin
3cfb430cdf
bdd: Add test for spawning an external editor
2016-06-06 08:36:30 +02:00
Florian Bruhin
9f3c2dfada
Merge branch 'bind_case_fix' of https://github.com/rcorre/qutebrowser into rcorre-bind_case_fix
2016-06-04 23:30:50 +02:00
Ryan Roden-Corrent
68faf2b873
Allow hint --rapid in normal mode.
...
This was disallowed by an assertion, but has a legitimate use case for
clicking multiple buttons or ticking multiple checkboxes.
Resolves #1541 .
2016-06-04 15:32:58 -04:00
Ryan Roden-Corrent
1dc20f4d02
Handle special keystrings case-insensitively.
...
Load all special keystrings (e.g. <ctrl-a>) into memory as lowercase,
and automatically lowercase any special keystring given to bind/unbind.
This prevents <ctrl-a> and <Ctrl-A> from being treated differently.
Resolves #816 .
Also resolves #1544 (dupe).
2016-06-04 07:39:09 -04:00
Florian Bruhin
163082b3ea
Wait until download is started
2016-06-04 13:15:22 +02:00
Daniel Schadt
fd27caf311
tests: remove wait in mhtml cancel test
2016-06-03 16:09:31 +02:00
Daniel Schadt
c3e7ab52b5
tests: add test for cancelling a mhtml download
2016-06-02 23:07:03 +02:00
Florian Bruhin
3e5994cff6
bdd: Get rid of "I execute the userscript" step
...
Since we now have a (testdata) substitution this is much easier.
2016-05-30 16:21:32 +02:00
Florian Bruhin
c17a1be8fd
Add a test for flags passed to a command
2016-05-30 16:18:03 +02:00
Florian Bruhin
a39c662633
Merge branch 'hint_spawn_fix' of https://github.com/rcorre/qutebrowser into rcorre-hint_spawn_fix
2016-05-30 16:09:28 +02:00
Florian Bruhin
9a0fa9068c
Stabilize tests using :follow-hint
2016-05-30 14:54:06 +02:00
Florian Bruhin
6741a16957
Stabilize :buffer tests
...
Fixes #1493
2016-05-30 01:16:44 +02:00
Florian Bruhin
402e110cab
bdd: Delete "Navigating up with root directory"
...
This test causes various trouble for reasons I don't understand, so
let's get rid of it.
2016-05-29 23:59:28 +02:00
Florian Bruhin
5b84fc93df
Do a final userscript command read on cleanup
...
On OS X, sometimes the userscript exited before the QSocketNotifier was
triggered. By doing a final read when cleaning up we make sure we don't
miss anything.
Fixes #1533 .
2016-05-29 18:42:56 +02:00
Florian Bruhin
e10e9c7df2
bdd: Don't run :spawn -u test on OS X for now
...
See #1533
2016-05-29 18:25:23 +02:00
Florian Bruhin
a905d46757
bdd: Merge userscripts.feature into spawn.feature
2016-05-29 18:24:34 +02:00
Florian Bruhin
64d4c9f83e
Clean up end2end test file structure
...
This renames tests/integration to tests/end2end and moves some files to
tests/end2end/fixtures.
2016-05-29 18:20:00 +02:00