Florian Bruhin
822623f2ed
Finally update copyrights...
2017-05-09 21:37:03 +02:00
Florian Bruhin
90b0af97ce
Improve serialization crash check
...
It now works correctly with view-source URLs and is disabled on Qt 5.9.
Fixes #2289
See #2458
2017-05-03 23:15:17 +02:00
Florian Bruhin
a4619d07db
tests: Wait until about:blank is loaded
2017-03-31 13:03:40 +02:00
Florian Bruhin
ac9b0e5c59
bdd: Allow checking open tabs without (active)
2017-02-17 22:07:23 +01:00
Florian Bruhin
34dd30e984
Fix bad merge
2016-11-24 08:29:31 +01:00
Niklas Haas
32cc6bea1d
Add tests for the completion engine
...
I tested everything that I thought was interesting enough to warrant a
test: especially the ability to test multiple parameters deep, as well
as testing :set --cycle and some involved example to make sure
completion actually works and updates in realtime
2016-11-24 07:31:26 +01:00
Florian Bruhin
d05918ac0b
Add custom user-agent support for QtWebEngine
2016-11-15 11:32:05 +01:00
Florian Bruhin
6b14cda5d0
Re-enable SSL download test on QtWebEngine
2016-11-10 22:45:27 +01:00
Florian Bruhin
fb9415a809
bdd: Allow multiple "When I open" suffixes
2016-11-04 07:20:48 +01:00
Florian Bruhin
b0a2bfa3ee
tests: Make scrolling checks stricter
2016-09-29 07:13:34 +02:00
Florian Bruhin
101d30fe1e
Make _get_echo_exe_path() private in bdd conftest
2016-09-11 16:15:27 +02:00
Florian Bruhin
1fe2579bb1
Merge branch 'windows-userscripts' of https://github.com/Kingdread/qutebrowser into Kingdread-windows-userscripts
2016-09-11 16:14:25 +02:00
Florian Bruhin
11ee5befcc
Fix download tests on Windows
2016-09-11 15:53:46 +02:00
Florian Bruhin
17caf80f2a
bdd: Add "I wait for the javascript message" step
2016-09-10 16:42:26 +02:00
Florian Bruhin
9f1aacc4f0
Move pdfjs check to the end2end conftest
2016-09-10 16:24:31 +02:00
Daniel Schadt
b0114768c7
fix spawn tests on Windows
...
On Windows, no echo.exe exists normally, so calling echo from the tests
is no good idea, since it relies on Cygwin to be installed and in %PATH%
(so that echo.exe is available).
This fixes this by providing a small echo.bat which is callable from the
tests, and then using a platform-specific path to the executable instead
of the hardcoded "echo". This should ensure that the tests pass even on
systems where echo.exe is not installed.
Note that we can't simply use a do-nothing exe (like rundll or hh.exe),
as we're passing parameters, and those executables may behave
differently in the presence of those parameters.
2016-09-08 23:14:10 +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
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
1ed637a906
QtWebEngine: Initial session implementation
2016-09-06 13:55:35 +02:00
Florian Bruhin
19ac488997
tests: Add QUTE_BDD_WEBENGINE environment variable
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
77aa8b4337
pylint: Use ignored-modules for pytest
...
See https://github.com/PyCQA/astroid/pull/357
2016-08-23 07:45:31 +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
50031c5aae
bdd: xfail in check_open_tabs for QtWebEngine
2016-08-18 22:54:41 +02:00
Florian Bruhin
105c1952a8
bdd: Skip scroll checks with QtWebEngine
2016-08-18 19:20:48 +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
2d97ffa323
bdd: xfail in compare_session with WebEngine
2016-08-18 18:20:25 +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
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
28a6b3918c
Fix lint
2016-08-18 14:42:42 +02:00
Florian Bruhin
e10b7ba8ab
tests: Add @qtwebengine_todo marker
2016-08-18 13:05:37 +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
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
Florian Bruhin
aafdc225bc
tests: Use last history item to check scroll pos
2016-08-11 11:56:11 +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
Florian Bruhin
9f9e41687f
Add a (tmpdir) replacement for BDD tests
...
See #1639
2016-07-11 20:47:37 +02:00
Jan Verbeek
8039e7ab74
Move :repeat-command tests
2016-07-03 22:32:07 +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
b0df87842e
Show BDD scenario on failed tests
...
See #1552
2016-06-06 23:09:19 +02:00
Florian Bruhin
2f60073cdf
bdd: Allow to run invalid commands via quteproc
2016-06-06 16:10:01 +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
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
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