Florian Bruhin
ab0cd17772
Fix lint.
2016-01-08 10:00:42 +01:00
Florian Bruhin
1fb34331e5
tests: Default to raising=True for qtbot.
...
- qtbot.waitSignal with raising=True is the default this way, so we remove the
raising=True.
- qtbot.waitSignal with raising=False stay untouched
- Some qtbot.waitSignal without raising had one added (because we don't want it
to raise)
- Some qtbot.waitSignal without raising actually should've raised, which they
do now.
2016-01-08 09:49:06 +01:00
Florian Bruhin
eebed7a5a7
tests: Poll clipboard for changes.
...
For some reason I can't explain, since 2b0870084b
we got test failures on OS X, as the clipboard had the old value before waiting
for the change, the new (correct) value after waiting for it, but never
actually emitted 'changed'.
We could just re-check the contents after the timeout, but that'd mean we wait
1s for every test where this weird thing happens.
Instead, we poll the clipboard for every 100ms as long as the timeout (1s)
hasn't passed, and return as soon as it has the correct contents.
2016-01-08 09:35:03 +01:00
Florian Bruhin
eef1604dcd
tests: Improve WaitForClipboardTimeout message.
2016-01-08 08:35:34 +01:00
Florian Bruhin
0d9cbba3b9
tests: Dump contents in WaitForClipboardTimeout.
2016-01-08 01:56:27 +01:00
Florian Bruhin
2b0870084b
bdd: Run :tab-only between tests for caret/search.
...
Otherwise we end up opening a lot of tabs which slow down qutebrowser,
The latest issue in #1183 might actually be caused by that.
2016-01-08 00:58:01 +01:00
Florian Bruhin
df6d9d741f
bdd: Add search tests for known bugs/regressions.
...
This adds a test for #874 , #507 and #940 .
2016-01-07 19:41:26 +01:00
Florian Bruhin
37022b8c45
bdd: Improve search tests.
2016-01-07 08:21:18 +01:00
Florian Bruhin
18b5860584
bdd: Add "When I open ... in a new window" step.
2016-01-07 08:20:48 +01:00
Florian Bruhin
f9645e447a
bdd: Add first tests for searching.
2016-01-07 07:49:45 +01:00
Florian Bruhin
6a592576eb
bdd: Fix timeout exception in _wait_for_clipboard.
2016-01-07 07:43:36 +01:00
Florian Bruhin
360f0b6180
bdd: Improve :inspector tests.
2016-01-07 07:12:51 +01:00
Florian Bruhin
ab22b7740f
bdd: Add test for :follow-selected --tab with JS.
2016-01-06 23:29:16 +01:00
Florian Bruhin
c9a35e7f1e
bdd: Add a test for :follow-selected --tab
2016-01-06 23:24:17 +01:00
Florian Bruhin
16ec035418
bdd: Handle trailing slash for URLs loaded.
...
For some reason, older Qt versions (Debian Jessie/Ubuntu Trusty) like to add a
/, so we need to handle that case too.
2016-01-06 23:19:04 +01:00
Florian Bruhin
a2c3f8c402
bdd: Add some tests for :follow-selected.
2016-01-06 22:59:42 +01:00
Florian Bruhin
7dc03710b1
bdd: Only check logs for "... should be loaded".
...
Checking the requests from the webserver proved problematic, as often there's
some kind of caching going on. Instead, we only check the log, as this is used
for things like :navigate anyways, so if the log says the page got loaded, we
can trust it.
There's still "... should be requested" to check the actual requests.
2016-01-06 22:57:49 +01:00
Florian Bruhin
b1bf75f069
bdd: Add a test for :drop-selection.
2016-01-06 22:15:13 +01:00
Florian Bruhin
2d9900a5ad
bdd: Add test for :paste with invalid URL.
2016-01-06 22:07:19 +01:00
Florian Bruhin
bd611b7ee4
bdd: Skip :print test.
...
This sometimes seem to cause the following warning:
QPainter:🔚 Painter ended with 2 saved states
2016-01-06 18:27:14 +01:00
Florian Bruhin
275f1ede82
bdd: Add test for :undo.
2016-01-06 18:27:14 +01:00
Florian Bruhin
4bb38f1488
bdd: Handle some more corner cases in commands.py.
2016-01-06 18:27:14 +01:00
Florian Bruhin
4099a40e35
Fix lint.
2016-01-06 08:50:22 +01:00
Florian Bruhin
b0f001d3f1
Skip :print test when window can't be focused.
...
For some reason the window doesn't get focused on Travis. If that happens,
let's just skip the test instead of failing it.
2016-01-06 08:29:53 +01:00
Florian Bruhin
29dd6af976
tests: Optionally skip a test when waiting for log.
2016-01-06 08:29:46 +01:00
Florian Bruhin
6a97e98007
Fix lint.
2016-01-06 07:55:42 +01:00
Florian Bruhin
02e30873e1
Only test :print on Linux.
2016-01-06 07:54:54 +01:00
Florian Bruhin
fc755c104b
bdd: Add test for exception with :pyeval.
2016-01-06 07:42:33 +01:00
Florian Bruhin
03ebdfd641
bdd: Add tests for :pyeval.
2016-01-06 07:15:42 +01:00
Florian Bruhin
677dcd6748
bdd: Add tests for :print.
2016-01-06 07:15:34 +01:00
Florian Bruhin
2cadac6b6e
bdd: Add tests for :stop/:reload with wrong count.
2016-01-06 07:15:20 +01:00
Florian Bruhin
e2994e9375
bdd: Add "the page should contain the plaintext".
2016-01-06 07:15:06 +01:00
Florian Bruhin
f943891ce6
Fix :reload test when :stop is skipped.
...
I don't know why, but :stop being skipped causes something to be cached with
hello2.txt.
2016-01-05 22:46:52 +01:00
Florian Bruhin
0ce9b28da7
Skip :stop test on OS X.
...
This triggers the OS X kernel bug explained here:
https://bitbucket.org/cherrypy/cherrypy/pull-requests/117/
Fixes #1183 .
2016-01-05 20:13:25 +01:00
Florian Bruhin
a97ba9aa09
Merge branch 'pdfjs' of https://github.com/Kingdread/qutebrowser into Kingdread-pdfjs
2016-01-05 07:21:26 +01:00
Florian Bruhin
705d77abfb
Also handle the doc path not existing at all.
2016-01-04 20:36:15 +01:00
Florian Bruhin
20faecc7a0
Also handle inexistant doc path.
2016-01-04 20:35:16 +01:00
Florian Bruhin
ea182934f3
Update docs for :help tests.
2016-01-04 20:10:17 +01:00
Florian Bruhin
a5f2ac5f03
Adjust copyright years.
2016-01-04 07:12:39 +01:00
Daniel Schadt
6d02ef68ec
Add BDD tests for pdfjs integration
2015-12-20 20:00:56 +01:00
Florian Bruhin
fcf94fd527
Remove various deprecated commands/arguments.
2015-12-20 18:38:29 +01:00
Florian Bruhin
d3dc90cb2a
Revert "tests: Use urllib to load redirect-later-continue."
...
This reverts commit 1e43b882ae
.
Seems like this causes other trouble (the redirect-later request missing?!)
2015-12-18 20:24:03 +01:00
Florian Bruhin
1e43b882ae
tests: Use urllib to load redirect-later-continue.
...
This might avoid the EPROTOTYPE bug on OS X. See #1183 .
2015-12-18 19:57:15 +01:00
Florian Bruhin
b3e4ac8043
tests: Fix AttributeError in _wait_for_clipboard.
2015-12-18 07:18:27 +01:00
Florian Bruhin
45d6dc6aa3
tests: Hopefully fix keyinput.feature flakiness.
...
While the original "no focused webview" bug (with the first test after spawning
qutebrowser) from #1183 was fixed, we still had a case where the next test
after ":fake-key sending key to the website with other window focused" failed,
presumably because the inspector was still focused, e.g. here:
http://qutebrowser.org:8010/builders/osx/builds/1175/steps/tests/logs/stdio
This hopefully fixes this by properly waiting until the inspector is gone.
2015-12-18 07:13:16 +01:00
Florian Bruhin
172157ed0d
Remove unused import, take two.
2015-12-17 23:09:11 +01:00
Florian Bruhin
a7dee6c053
Remove unused import.
2015-12-17 22:57:16 +01:00
Florian Bruhin
fc84e58043
tests: Ignore "SelectionRequest too old" globally.
...
If we use pytestmark, it won't be ignored inside subprocess output, so our fix
from https://github.com/The-Compiler/qutebrowser/issues/1124#issuecomment-158073581
never actually worked.
See #1124 and #1183 .
2015-12-17 22:33:07 +01:00
Florian Bruhin
8786e979a6
tests: Wait for data in the clipboard.
...
This should hopefully stabilize the flaky clipboard tests.
See #1183 .
2015-12-17 22:17:38 +01:00
Florian Bruhin
e68965fea2
bdd: Wait for help pages to be loaded in tests.
...
This hopefully fixes #1150 .
2015-12-02 22:22:31 +01:00
Florian Bruhin
4170e3c9af
bdd: Simplify qute:settings test.
2015-12-02 22:19:43 +01:00
Florian Bruhin
d418f7f9fa
Merge branch 'caret_mode_windows_osx' of https://github.com/artur-shaik/qutebrowser into artur-shaik-caret_mode_windows_osx
2015-12-02 06:22:27 +01:00
Panagiotis Ktistakis
6e8ac374dd
Add tests for :tab-move wrapping.
2015-12-02 03:35:25 +02:00
Panagiotis Ktistakis
de3460da3e
Wrap tabs on :tab-move +/- if tabs->wrap is true.
2015-12-02 03:17:54 +02:00
Florian Bruhin
b3515f5e82
pylint: Remove import-error disabling from tests.
2015-12-01 22:47:10 +01:00
Florian Bruhin
5817b47f75
Revert "Use fully qualified imports in tests."
...
Seems like this also breaks frozen tests...
This reverts commit c7fdcc92b8
.
2015-12-01 22:45:59 +01:00
Florian Bruhin
c7fdcc92b8
Use fully qualified imports in tests.
...
This is cleaner even if pylint can't handle it.
2015-12-01 22:03:59 +01:00
Patric Schmitz
98a454a428
log-javascript-console -> [none, debug, info]
2015-11-29 18:37:11 +01:00
Florian Bruhin
a67644589e
bdd: Add first test for :bookmark-add.
2015-11-28 23:37:27 +01:00
Florian Bruhin
8d5b6b2dad
bdd: Add tests for :home.
2015-11-28 22:44:05 +01:00
Florian Bruhin
052e758f38
bdd: Add tests for :help.
2015-11-28 22:34:19 +01:00
Artur Shaik
73f999da31
Revert a43c206
and b344f92
.
2015-11-28 21:29:54 +06: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
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
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
e9ca1ba5c1
bdd: Add a test for :rl-backward-delete-char.
2015-11-27 16:28:06 +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
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
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
bc28a168cc
bdd: Add tests for :tab-prev/:tab-next/tabs->wrap.
2015-11-26 16:19:03 +01:00
Florian Bruhin
b8467b8fef
tests: Various cleanups.
2015-11-26 14:25:33 +01:00
Florian Bruhin
fac76576d7
bdd: Add "the following tabs should be open" step.
...
This simplifies a lot of .feature files because we don't actually need to check
the full session.
2015-11-26 01:33:56 +01:00
Florian Bruhin
fc328b275a
bdd: Add some tests for :tab-focus.
2015-11-26 00:48:39 +01:00
Florian Bruhin
c755a78518
bdd: Add tests for :tab-close/:tab-only.
2015-11-25 18:48:10 +01:00
Florian Bruhin
816d62bca5
bdd: Reorganize numbered test files.
2015-11-25 18:02:14 +01:00
Florian Bruhin
eed2584e3f
Fixup for last commit.
2015-11-25 17:55:33 +01:00
Florian Bruhin
0a7b552111
bdd: Use 'q' key for forward-unbound-keys test.
...
It seems ' gives us a 222 keycode with newer Qt versions, but 0 with older
ones. 'q' which is a much lower code should hopefully work better.
2015-11-25 17:52:00 +01:00
Florian Bruhin
21a1f9ca65
bdd: Add various key input tests.
2015-11-25 17:20:53 +01:00
Florian Bruhin
9670ffb78e
bdd: Add "the JS message ... should not be logged".
2015-11-25 17:20:05 +01:00
Florian Bruhin
388cc7ae29
bdd: Add "Then ... should be logged" step.
2015-11-25 17:19:49 +01:00
Florian Bruhin
9fe02d55c9
bdd: Add "I press the keys ..." step.
2015-11-25 17:19:16 +01:00
Florian Bruhin
027a10c04b
bdd: Add some tests for :navigate.
2015-11-24 21:32:45 +01:00
Florian Bruhin
f8668ff710
bdd: Add a test for :open with -t and -b.
2015-11-24 20:31:08 +01:00
Florian Bruhin
c22e1df400
Add whitespace.
2015-11-24 19:24:39 +01:00
Florian Bruhin
28b739b9b5
bdd: Add tests for :open.
2015-11-24 19:19:23 +01:00
Florian Bruhin
287b2ba258
bdd: Replace (port) when setting a setting.
2015-11-24 19:19:03 +01:00
Florian Bruhin
925a5ba809
bdd: Add test for :debug-console.
2015-11-24 18:37:34 +01:00
Florian Bruhin
2ef2e3088f
bdd: Add tests for :view-source.
2015-11-24 18:24:33 +01:00
Florian Bruhin
d58a5d4d15
bdd: Add "the page source should look like" step.
2015-11-24 18:22:43 +01:00
Florian Bruhin
7b1e2ab471
Skip some inspector tests on windows.
...
Those cause trouble because it can't clean up the local storage directory...
2015-11-24 17:48:09 +01:00
Florian Bruhin
d13ae4c666
tests: Make checks for focus window more forgiving.
...
It seems on OS X we get this instead of focusing the webview:
"Focus object changed: <qutebrowser.browser.inspector.WebInspector object at ...>"
2015-11-24 16:54:35 +01:00
Florian Bruhin
922fdc0526
Fix :fake-key with no focused webview.
2015-11-24 16:28:56 +01:00
Florian Bruhin
4c1eff625f
tests: Make inspector smoke test more reliable.
...
Before we didn't wait until the inspector window was hidden, which caused the
following tests to fail on our OS X buildbot:
==================================== ERRORS ====================================
_________ ERROR at teardown of test_fakekey_sending_key_to_the_website _________
[...]
tests/integration/testprocess.py:186: InvalidLine
----------------------------- Captured stdout call -----------------------------
[...]
INVALID: Traceback (most recent call last):
IGNORED: File "/Users/buildbot/buildbot/slave/osx/build/qutebrowser/app.py", line 109, in <lambda>
IGNORED: target_arg=target_arg))
IGNORED: File "/Users/buildbot/buildbot/slave/osx/build/qutebrowser/app.py", line 263, in process_pos_args
IGNORED: commandrunner.run_safely_init(cmd[1:])
IGNORED: File "/Users/buildbot/buildbot/slave/osx/build/qutebrowser/commands/runners.py", line 266, in run_safely_init
IGNORED: self.run(text, count)
IGNORED: File "/Users/buildbot/buildbot/slave/osx/build/qutebrowser/commands/runners.py", line 249, in run
IGNORED: result.cmd.run(self._win_id, args)
IGNORED: File "/Users/buildbot/buildbot/slave/osx/build/qutebrowser/commands/command.py", line 505, in run
IGNORED: self.handler(*posargs, **kwargs)
IGNORED: File "/Users/buildbot/buildbot/slave/osx/build/qutebrowser/browser/commands.py", line 1781, in fake_key
IGNORED: tab='current')
IGNORED: File "/Users/buildbot/buildbot/slave/osx/build/qutebrowser/utils/objreg.py", line 215, in get
IGNORED: reg = _get_registry(scope, window, tab)
IGNORED: File "/Users/buildbot/buildbot/slave/osx/build/qutebrowser/utils/objreg.py", line 202, in _get_registry
IGNORED: return _get_tab_registry(window, tab)
IGNORED: File "/Users/buildbot/buildbot/slave/osx/build/qutebrowser/utils/objreg.py", line 152, in _get_tab_registry
IGNORED: raise RegistryUnavailableError('tab')
INVALID: qutebrowser.utils.objreg.RegistryUnavailableError: tab
[...]
While this is a real issue, this test shouldn't affect the next one.
Since we have to wait for windows getting focused but Xvfb doesn't do that, we
skip this tests when running via Xvfb.
2015-11-24 16:17:26 +01:00
Florian Bruhin
d4c24c935c
bdd: Compare unordered req's for :reload --force.
2015-11-23 20:00:25 +01:00
Florian Bruhin
f3b89dba9b
tests: Make test_reload/..._with_force more stable.
...
This waits until the pages have actually been reloaded.
2015-11-23 19:44:53 +01:00
Florian Bruhin
e2da9aa3f8
tests: Make test_stop more stable.
...
It's now based by the browser opening a second page after :stop is run rather
than timing-based, which hopefully should make it run more stable on Travis.
2015-11-23 19:43:11 +01:00
Florian Bruhin
d324dd5f70
bdd: Add "I open ... in a new tab" step.
2015-11-23 19:42:01 +01:00
Florian Bruhin
39f29e2531
tests: Wait until clipboard actually changed.
...
Hopefully fixes #1124 .
2015-11-23 16:29:37 +01:00
Florian Bruhin
17b5ccde0e
tests: Ignore "SelectionRequest too old" message.
...
See #1124 .
2015-11-23 16:25:03 +01:00
Florian Bruhin
162c8b30e6
Remove unused import.
2015-11-23 14:49:37 +01:00
Florian Bruhin
7a82bb55e4
bdd: Add tests for :reload.
2015-11-23 14:37:54 +01:00
Florian Bruhin
1e79aae231
bdd: Add check_header step.
2015-11-23 14:37:40 +01:00
Florian Bruhin
e6eaa5f140
tests: Add quteproc.get_setting.
2015-11-23 13:30:49 +01:00
Florian Bruhin
16e1a65448
Merge branch 'download-page' of https://github.com/Kingdread/qutebrowser into Kingdread-download-page
2015-11-23 13:16:16 +01:00
Florian Bruhin
4fa32bd0cd
bdd: Use a fresh instance for :stop test.
...
This hopefully makes it more stable on Travis on OS X.
2015-11-22 17:07:54 +01:00
Florian Bruhin
39def173ca
bdd: Fix request list for :stop test.
...
We changed the URL in the last commit but forgot to adjust that.
2015-11-21 15:31:19 +01:00
Florian Bruhin
eb232734b4
bdd: Increase timeouts for :stop test.
...
The old ones weren't enough for Travis it seems.
2015-11-21 15:14:32 +01:00
Florian Bruhin
4f165a7669
bdd: Add a test for :stop.
2015-11-21 14:23:44 +01:00
Daniel Schadt
7d6327873a
Pass test only when mhtml file is written
...
Otherwise we might spill data to tests that come after the mhtml ones.
2015-11-21 12:45:57 +01:00
Daniel Schadt
59c9c6ccb0
Actually test :download --mhtml, not :download
2015-11-21 12:37:26 +01:00
Daniel Schadt
c12011c84d
Style fixes
2015-11-21 00:10:49 +01:00
Florian Bruhin
af875f4b8f
Add a :fake-key command.
...
Closes #556 .
See #551 .
2015-11-20 19:06:06 +01:00
Daniel Schadt
0a9a75c337
Add more tests for the :download command
2015-11-20 18:31:39 +01:00
Florian Bruhin
9a310dd1fb
bdd: Add step to check for JS console.log.
2015-11-20 07:06:16 +01:00
Florian Bruhin
4d1f37f296
bdd: Add tests for :inspector.
2015-11-18 20:08:25 +01:00
Florian Bruhin
726525b26a
bdd: Add some more tests for scrolling with floats.
2015-11-17 06:57:33 +01:00
Florian Bruhin
40e2258ef3
Don't accept floats for :scroll-px.
2015-11-17 06:57:13 +01:00
Florian Bruhin
71134f97e3
bdd: Wait for request with "... should be loaded".
...
Hopefully makes things less prone to race conditions.
2015-11-17 06:42:13 +01:00
Florian Bruhin
779df4c08e
bdd: Use separate files for scroll navigate tests.
...
hello.txt was already cached from some other tests, so let's make sure a fresh
file gets loaded.
2015-11-17 06:40:23 +01:00
Florian Bruhin
7fe9be432a
tests: Make httpbin.Request a proper class.
2015-11-16 23:24:11 +01:00
Florian Bruhin
bc96da47ef
bdd: Tests for scrolling with non-scrollable page.
2015-11-16 20:35:44 +01:00
Florian Bruhin
a4d15b550e
Abort :back/:forward at beginning/end of history.
2015-11-16 19:03:07 +01:00
Florian Bruhin
6a4ea944cf
bdd: Add tests with very big counts.
2015-11-16 07:17:43 +01:00
Florian Bruhin
fe08cb24f8
bdd: Test some commands with count.
2015-11-15 20:48:07 +01:00
Florian Bruhin
29a1620e81
bdd: Add tests for :scroll-page with --*-navigate.
2015-11-15 17:50:26 +01:00
Florian Bruhin
3d44d619fc
bdd: Add some tests for :scroll-{perc,page}.
2015-11-15 16:38:56 +01:00
Florian Bruhin
1af30772b1
bdd: Add some comments to scroll.feature.
2015-11-15 16:38:56 +01:00
Florian Bruhin
4c75422c05
bdd: Add some :debug-webaction tests.
2015-11-15 16:38:56 +01:00
Florian Bruhin
145772476b
bdd: Add some tests for :jseval.
2015-11-15 16:38:56 +01:00
Florian Bruhin
9f1c6e0139
bdd: Add some comments to misc.feature.
2015-11-15 16:38:56 +01:00
Florian Bruhin
384c753094
tests: Add ensure_not_logged to TestProcess.
2015-11-15 16:38:56 +01:00
Florian Bruhin
04c2e45bee
bdd: Add a first test for :jseval.
2015-11-13 07:56:59 +01:00
Florian Bruhin
205af3737f
bdd: Skip yankpaste tests if clipboard is broken.
...
This seems to be the case on OS X Yosemite (on my Mac Mini).
2015-11-13 06:54:45 +01:00
Florian Bruhin
1dd5bb1596
bdd: Add more tests for :zoom
2015-11-12 22:10:13 +01:00
Florian Bruhin
00ccc236bb
bdd: Add more :paste tests.
2015-11-12 21:52:39 +01:00
Florian Bruhin
1f3df64fe4
bdd: Add some first tests for :paste.
2015-11-11 22:38:43 +01:00
Florian Bruhin
d99f9a3a20
Improve :set error messages.
2015-11-10 22:09:36 +01:00
Florian Bruhin
54e2cea460
Fix some corner cases with :set.
2015-11-10 21:27:42 +01:00
Florian Bruhin
a26e99f004
bdd: Add some tests for :set.
2015-11-10 21:07:49 +01:00
Florian Bruhin
128465f12b
Add some more tests for :set-cmd-text.
2015-11-10 19:22:13 +01:00
Florian Bruhin
6b4dbad15b
bdd: Wait until request is done for hints.feature.
2015-11-10 08:22:06 +01:00
Florian Bruhin
596ed5f545
bdd: Add some more back/forward tests.
2015-11-10 07:51:09 +01:00
Florian Bruhin
f440953ada
bdd: Add step to start a fresh instance.
2015-11-10 07:51:09 +01:00
Florian Bruhin
3fac74656e
bdd: Add some misc. tests.
2015-11-10 06:33:47 +01:00
Florian Bruhin
dce44f2dc5
bdd: Add some first tests for hints.
2015-11-09 18:20:23 +01:00
Florian Bruhin
0daf5885be
Add some BDD tests for downloads.
2015-11-09 07:49:11 +01:00
Florian Bruhin
8aa29a2ba2
bdd: Fix assert in "The requests should be" step.
...
When we call get_requests() inside the assertion, it won't act the same when
reinterpreting it.
2015-11-09 07:38:34 +01:00
Florian Bruhin
a05da2a956
bdd: Add a "then no crash should happen" step.
...
This is actually just a NOP, but helps in writing nice sentences ;)
2015-11-09 07:37:52 +01:00
Florian Bruhin
ae0e391c04
bdd: Add a "When I wait for the message ..." step.
2015-11-09 07:37:23 +01:00
Florian Bruhin
56bdb74ed9
bdd: Allow (port) replacement in "When I run ...".
2015-11-09 07:37:04 +01:00
Florian Bruhin
5541e3ed32
bdd: Wait until title is loaded in yankpaste.
2015-11-05 08:03:03 +01:00
Florian Bruhin
b0430ca3e7
bdd: Make it possible to wait for messages.
2015-11-05 08:02:55 +01:00
Florian Bruhin
beab639d7a
bdd: Wait for finished loads in backforward.
2015-11-05 07:07:43 +01:00
Florian Bruhin
2c7b0d2fb4
Add some bdd tests for scrolling.
2015-11-03 22:42:25 +01:00
Florian Bruhin
2427bf5cb6
bdd: Make expect_error handle warnings.
2015-11-03 22:40:19 +01:00
Florian Bruhin
17396e1030
bdd tests: Add QuteProc.get_session().
2015-11-03 14:55:46 +01:00
Florian Bruhin
d992390cbe
bdd: Move yankpaste/test.html to yankpaste.html.
2015-11-03 14:40:30 +01:00
Florian Bruhin
535bcab310
bdd tests: Restart qutebrowser once per module.
...
This should be a good compromise between reproducibility and speed.
2015-11-03 07:00:46 +01:00
Florian Bruhin
e13de98790
Fix lint.
2015-11-02 23:49:44 +01:00
Florian Bruhin
7da0d2b6d5
Add some bdd tests for zooming.
2015-11-02 23:41:48 +01:00
Florian Bruhin
3155e20999
tests: Add helpers to compare sessions.
2015-11-02 23:41:48 +01:00
Florian Bruhin
ce6ba605e4
Reorganize bdd tests.
2015-11-02 20:32:15 +01:00
Florian Bruhin
8884de71d8
Fix checking for primary selection.
2015-11-02 08:07:25 +01:00
Florian Bruhin
672d11e25a
Add bdd test for :yank/:paste.
2015-11-02 07:43:37 +01:00
Florian Bruhin
b79ccb5e79
bdd: Make message matching work.
2015-11-01 22:49:39 +01:00
Florian Bruhin
70decdc2c8
Fix lint.
2015-11-01 22:47:58 +01:00
Florian Bruhin
5ed419c7f5
Make reloading more reliable.
...
Before, we didn't wait until the reload is done, which could lead to a race
condition.
2015-11-01 22:47:58 +01:00
Florian Bruhin
1a562594fa
Broken error message matching.
2015-11-01 22:40:11 +01:00
Florian Bruhin
ac148c11ec
Skip bdd tests when frozen for now.
...
See:
https://github.com/pytest-dev/pytest-bdd/issues/158
https://github.com/pytest-dev/pytest-bdd/issues/159
2015-11-01 22:40:11 +01:00
Florian Bruhin
8664e45558
Use httpbin.Request namedtuple for comparisons.
...
This makes it easier to look at the pytest diff when things go wrong.
2015-11-01 22:40:11 +01:00
Florian Bruhin
6e786ff9b7
Open in a new tab.
2015-11-01 22:40:11 +01:00
Florian Bruhin
ffc465e863
First work-in-progress feature test.
2015-11-01 22:40:11 +01:00