Florian Bruhin
b7323914b8
tests: Add plain arg to quteprocess.get_contents.
2015-11-24 18:22:20 +01:00
Florian Bruhin
607ca0f478
tests: Wait until page is dumped for header check.
...
If we don't do this, it's possible for the test process to delete the temporary
directory before qutebrowser actually writes the file.
2015-11-23 20:12:52 +01:00
Florian Bruhin
76143574ef
tests: Add quteproc.get_content.
2015-11-23 14:37:29 +01:00
Florian Bruhin
52aca30342
tests: Add quteproc.temp_setting.
2015-11-23 13:31:17 +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
Daniel Schadt
b776aeac84
Use same representation in webview and quteprocess
...
Otherwise the "page loaded" message will not be recognized.
Also use percent-encoding to avoid unicode-related bugs on different
systems.
2015-11-20 19:11:20 +01:00
Daniel Schadt
0c2a285fef
Convert to QUrl before waiting for the logline
...
webview uses QUrl to output the url and thus might convert some escape
sequences to their unicode characters. If we don't do the same
conversions here, we will "miss" the log message and fail the test.
2015-11-20 18:30:08 +01:00
Florian Bruhin
55992337b8
bdd: Add a --qute-delay argument.
2015-11-18 20:01:40 +01:00
Florian Bruhin
90c1240ad4
tests: Remove unnecessary override.
2015-11-18 18:29:27 +01:00
Florian Bruhin
7fe9be432a
tests: Make httpbin.Request a proper class.
2015-11-16 23:24:11 +01:00
Florian Bruhin
fe08cb24f8
bdd: Test some commands with count.
2015-11-15 20:48:07 +01:00
Florian Bruhin
e9ece3d114
tests: Validate **kwargs for TestProcess.wait_for.
2015-11-13 23:26:14 +01:00
Florian Bruhin
0085421ec6
tests: Use __tracebackhide__ in wait_for methods.
2015-11-13 06:45:55 +01:00
Florian Bruhin
25921792ef
tests: Allow to open about:…/qute:… in QuteProc.
2015-11-12 21:52:06 +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
6579866abe
Quote weird Qt functions for logging.
2015-11-09 19:55:05 +01:00
Florian Bruhin
4f6415631f
tests: Parse function/line being unset for LogLine.
2015-11-09 19:34:13 +01:00
Florian Bruhin
1aebefca18
bdd: Make "I run ..." work with PrerequisitesError.
2015-11-09 18:20:23 +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
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
Florian Bruhin
64730f566f
tests: Make wait for loading work with downloads.
2015-11-09 07:39:24 +01:00
Florian Bruhin
f5f74b7ddc
tests: Use a base class for testprocess lines.
2015-11-06 07:02:17 +01:00
Florian Bruhin
bf74fda5b2
Fix lint.
2015-11-05 07:33:32 +01:00
Florian Bruhin
76f5f4fefb
bdd: Remove now unnecessary sleep.
2015-11-05 07:07:43 +01:00
Florian Bruhin
beab639d7a
bdd: Wait for finished loads in backforward.
2015-11-05 07:07:43 +01:00
Florian Bruhin
924b0052c6
bdd: Match historic messages in wait_for.
...
Fixes #1083 .
2015-11-05 07:07:43 +01:00
Florian Bruhin
49137150ad
tests: Print raw yaml in get_session() in QuteProc.
2015-11-03 22:41:56 +01:00
Florian Bruhin
17396e1030
bdd tests: Add QuteProc.get_session().
2015-11-03 14:55:46 +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
f5eb755ef3
tests: Ignore some Qt warnings during teardown.
2015-11-03 06:38:48 +01:00
Florian Bruhin
56758c8cea
Ignore messages which are in qt_log_ignore.
2015-11-02 06:19:19 +01:00
Florian Bruhin
8e09fd929b
Ignore QWaitCondition error.
2015-11-02 06:10:31 +01:00
Florian Bruhin
b79ccb5e79
bdd: Make message matching work.
2015-11-01 22:49:39 +01:00
Florian Bruhin
dac2898585
Parse log messages in LogLine.
2015-11-01 22:49:29 +01:00
Florian Bruhin
dfc1782bbf
Add testprocess.wait_for to react to messages.
2015-11-01 22:48:44 +01:00
Florian Bruhin
70decdc2c8
Fix lint.
2015-11-01 22:47:58 +01:00
Florian Bruhin
4b683cdd8f
Check invalid logs after exiting process.
2015-11-01 22:47:58 +01:00
Florian Bruhin
1c7fd7d80e
Rename testprocess cleanup to terminate.
2015-11-01 22:47:58 +01:00
Florian Bruhin
2be5c4cd27
Fix lint.
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
3a948be490
Add test for unexpected error logging.
2015-11-01 22:40:11 +01:00
Florian Bruhin
be20001594
Adjust log regex to parse "Unknown module".
2015-11-01 22:40:11 +01:00
Florian Bruhin
ee8d538964
Run new qutebrowser instance for each test.
...
The possibilities how a test can affect another are just too high.
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
c052c8a107
Don't show full debug log without --verbose.
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
Florian Bruhin
76fcec4e4c
tests: First steps towards end-to-end tests.
2015-11-01 22:40:11 +01:00