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
eef760359c
Add missing 3.txt.
2015-11-16 07:17:53 +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
e9ece3d114
tests: Validate **kwargs for TestProcess.wait_for.
2015-11-13 23:26:14 +01:00
Florian Bruhin
04c2e45bee
bdd: Add a first test for :jseval.
2015-11-13 07:56:59 +01:00
Florian Bruhin
3290048458
tests: Do custom fnmatch-like matching.
...
fnmatch treats [, ] and ? as shell metacharacters too, and has no way to escape
them. We need a literal [] and really only need * for filtering.
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
0085421ec6
tests: Use __tracebackhide__ in wait_for methods.
2015-11-13 06:45:55 +01:00
Florian Bruhin
ce66d731f2
tests: Add missing file.
2015-11-13 06:24:53 +01:00
Florian Bruhin
85c82b32fb
tests: Only print ignored lines with invalid ones.
2015-11-12 22:13:56 +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
25921792ef
tests: Allow to open about:…/qute:… in QuteProc.
2015-11-12 21:52:06 +01:00
Florian Bruhin
ba902f1d92
tests: Fix test_testprocess flakyness.
...
When we don't include the start time in the measurement, the subprocess will
already start sleeping before we start measuring, which can lead to times
measured which are around 260-300ms.
2015-11-12 20:29:06 +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
d71618031d
bdd: Decrease timeouts if not on CI.
2015-11-10 09:24:47 +01:00
Florian Bruhin
ada4b669bc
tests: Strip [2s ago] markers from log messages.
2015-11-10 09:23:37 +01:00
Florian Bruhin
dc3bfb5eb4
bdd: Print ignored lines in testprocess.
2015-11-10 08:47:29 +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
6579866abe
Quote weird Qt functions for logging.
2015-11-09 19:55:05 +01:00
Florian Bruhin
d288c9598d
tests: Add some quteprocess.LogLine tests.
2015-11-09 19:34:34 +01:00
Florian Bruhin
4f6415631f
tests: Parse function/line being unset for LogLine.
2015-11-09 19:34:13 +01:00
Florian Bruhin
dce44f2dc5
bdd: Add some first tests for hints.
2015-11-09 18:20:23 +01:00
Florian Bruhin
1aebefca18
bdd: Make "I run ..." work with PrerequisitesError.
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
89c0ff0d9b
bdd: Add a redirect-later page in webserver_sub.
...
This is needed for download tests.
2015-11-09 07:46:03 +01:00
Florian Bruhin
021ea444a1
bdd: Fix separations between tests.
...
With this change, no test should affect another one anymore. Changes in detail:
- Before each test, invalid lines are cleaned so the invalid output from the
previous test doesn't affect the next one.
- Before each test, qutebrowser is restarted if it was quit.
- After each test, the data is cleared properly in every case.
- If there was an invalid output, the test waits for 1s for more output, and
then terminates qutebrowser so it's restarted with a clean state.
2015-11-09 07:43:48 +01:00
Florian Bruhin
8b016df023
bdd: Make InvalidLine show some more informations.
2015-11-09 07:41:57 +01:00
Florian Bruhin
62f11273c5
tests: Fix quteproc.after_test() fixture.
...
It accidentally was named wrong, which caused it to never be executed. That
means the teardown log wasn't actually checked for errors.
2015-11-09 07:40:25 +01:00