Florian Bruhin
f34bdfbb50
Revert "Remove :session-save --quiet test"
...
This reverts commit bea71ed3a2
.
I think I can think of a way to stabilize it now.
2017-12-13 22:46:38 +01:00
Florian Bruhin
c8aef015b0
Merge remote-tracking branch 'origin/pr/3201'
2017-12-13 09:22:36 +01:00
Florian Bruhin
bea71ed3a2
Remove :session-save --quiet test
...
When nothing gets logged, we can't check whether the session was already saved.
2017-12-13 08:41:29 +01:00
Justin Partain
bcd9d13684
Update tests to use search.ignore_case
2017-12-12 11:31:28 -05:00
Florian Bruhin
5fe91c30cc
Fix :click-element with an ID containing non-alphanumeric characters
...
See #3201
2017-12-12 11:33:59 +01:00
Florian Bruhin
4f2f1a6494
Make sure editor test doesn't run on Windows
2017-12-12 06:57:39 +01:00
Florian Bruhin
0f20f16b15
Merge branch 'greasemonkey'
2017-12-06 21:24:15 +01:00
Florian Bruhin
eb90f9835f
Mark qute://settings test as flaky
2017-12-06 20:54:14 +01:00
Florian Bruhin
d6039a0e34
Fix markers for editor test
2017-12-06 20:30:46 +01:00
Florian Bruhin
2633dcc0d5
Fix lint
2017-12-06 20:18:41 +01:00
Florian Bruhin
3cd2910fa2
Merge branch 'greasemonkey' of https://github.com/toofar/qutebrowser into greasemonkey
2017-12-06 10:47:29 +01:00
Jimmy
6b3e16b163
Greasemonkey: mark failing no(sub)frames test as flaky.
...
This test is supposed to ensure that user scripts don't run on iframes
when the @noframes directive is set in the greasemonkey metadata. It is
failing sometimes on travis but passing on local test runs. Personally I
haven't actually ran the whole test suite through, just the javascript
tests. It maybe be some stale state that only shows up when you run the
whole suite. It may be some timing issue that only shows up on travis
because ???. Hopefully this stops the red x from showing up on the PR.
2017-12-06 20:34:29 +13:00
Florian Bruhin
b326f12427
Mark editor test as flaky
...
See #3367
2017-12-06 06:59:08 +01:00
Florian Bruhin
29c2e7b45f
Skip :follow-selected tests on Qt 5.10
...
See #3003 , #2635
2017-12-05 08:35:12 +01:00
Florian Bruhin
0ce9a355ae
Fix download test with Qt 5.10
...
Not sure why this is needed (no prompt is shown otherwise), but it works like
this.
This probably is related to https://bugreports.qt.io/browse/QTBUG-63388
See #3003
2017-12-05 08:34:37 +01:00
Florian Bruhin
bbc2f14e45
Merge remote-tracking branch 'origin/pr/3356'
2017-12-03 22:30:30 +01:00
Florian Bruhin
ce46b30a1e
Show error instead of warning
2017-12-02 14:49:06 +01:00
Florian Bruhin
003ec31848
Merge remote-tracking branch 'origin/pr/3333'
2017-12-02 14:47:24 +01:00
Ryan Roden-Corrent
780ac3f4c2
Remove needles quteproc/server fixture deps.
...
A few step definitions listed these in the parameters although they were
unused.
2017-12-01 11:34:47 -05:00
Ryan Roden-Corrent
3cfa0f7586
Make pylint happy for test_editor_bdd.
...
windows has no SIGUSR1, but we don't run this on windows anyways
for posix, there IS a member so we need to ignore useless-suppression
2017-12-01 08:41:08 -05:00
Ryan Roden-Corrent
1102ae4d7e
Skip editor orphaned test on windows.
...
Tried SIGINT/SIGTERM, neither worked. Just skip this test on windows and
go back to SIGUSR1 otherwise.
2017-12-01 07:35:13 -05:00
Ryan Roden-Corrent
4497f710f9
Try SIGINT instead of SIGTERM for windows.
2017-11-30 07:56:37 -05:00
Ryan Roden-Corrent
b465c109ee
Fix test_editor_bdd.py for windows.
...
- Use a raw string to handle windows path separators
- Use SIGTERM instead of SIGUSR1
2017-11-29 07:42:12 -05:00
Florian Bruhin
43ff35eaea
Revert "Make sure docs are up-to-date for navigate.feature"
...
This action doesn't exist in navigate.feature
This reverts commit 3857491cf9
.
2017-11-28 22:15:56 +01:00
Florian Bruhin
3857491cf9
Make sure docs are up-to-date for navigate.feature
2017-11-28 17:06:41 +01:00
Ryan Roden-Corrent
01a9405391
Make ophaned editor test less flaky.
...
Instead of having the editor sleep a short time, explicitly send it a
signal to exit.
2017-11-28 08:38:04 -05:00
Florian Bruhin
9a8d68aa25
Mark :undo test as flaky
...
I don't get why it fails sometimes - so another @flaky stop-gap for now.
2017-11-28 09:19:37 +01:00
Jimmy
dd59f8d724
Greasemonkey: add more end2end tests
...
Test document-end and noframes. Because coverage.py told me to.
Hopefully this doesn't slow the test run down too much, particularly the
"should not be logged" bit.
I'm just reusing and existing test html page that used an iframe because
I'm lazy.
2017-11-27 20:10:38 +13:00
Jimmy
4c3461038d
Greasemonkey: add minimal end-to-end test.
...
Just runs a greasemonkey script on a test page and uses console.log to
ensure it is running.
Tests @include, and basic happy path greasemonkey.py operation (loading
and parsing script, scrip_for on webkit), only testing document-start
injecting point but that is the troublsome one at this point.
Tested on py35 debian unstable (oldwebkit and qtwebengine5.9) debian
stable qtwebengine5.7.
Note the extra :reload call for qt5.7 because document-start scripts
don't seem to run on the first page load with the current insertion
point. I need to look into this more to look at ways of fixing this.
2017-11-27 19:27:31 +13:00
Ryan Roden-Corrent
54fffc8264
Resolve crash when editor tab is closed.
...
If an editor is open on a form in a tab and that tab is closed, rewire
the callback to print a warning. Previously, the callback would access a
deleted C++ object and cause a crash.
Resolves #2758 .
2017-11-26 07:50:49 -05:00
Florian Bruhin
28d7c5e204
Fix lint
2017-11-24 07:25:10 +01:00
Ryan Roden-Corrent
8eab402820
Abort :edit-command on invalid input.
...
Show an error message if the user edits the command such that it is
missing a start character (:, /, or ?). Previously, this would cause the
browser to crash.
Resolves #3326 .
2017-11-23 08:15:27 -05:00
Florian Bruhin
cbf5fc01fa
Avoid more about:blank loads
2017-11-22 10:15:18 +01:00
Florian Bruhin
12f4940ef3
Make :jseval use a fixed path with relative paths
2017-11-22 09:37:17 +01:00
Florian Bruhin
401a37bf4b
Stabilize :spawn with userscript tests
2017-11-22 08:43:47 +01:00
Florian Bruhin
e5cabb6d23
Match QtWebKit error message for qute://help/img test
2017-11-22 08:40:20 +01:00
Florian Bruhin
8acfe501fe
Revert "Stabilize cleaning up open tabs"
...
We're going to fix this in a more generic way.
This reverts commit 8440303d82
.
2017-11-22 07:56:31 +01:00
Florian Bruhin
b684e50cdf
Stabilize view-source test
2017-11-21 18:14:17 +01:00
Florian Bruhin
8440303d82
Stabilize cleaning up open tabs
...
For some reason, about:blank isn't properly loaded sometimes. But this should
always work.
2017-11-21 14:53:31 +01:00
Florian Bruhin
cff557d2fc
Try to stabilize command test, take 2
2017-11-21 13:19:11 +01:00
Florian Bruhin
56d1c5c7dd
Stabilize command history test
2017-11-21 11:31:22 +01:00
Ryan Roden-Corrent
5495380580
Exit command mode after :edit-command --run.
...
Resolves #3317 , where the command prompt was left open and populated
with text after running the command.
2017-11-20 11:46:26 -05:00
Florian Bruhin
a2c549b954
Merge remote-tracking branch 'origin/pr/3313'
2017-11-19 21:09:19 +01:00
Florian Bruhin
62f37df573
Make cursor keys go through completion if a text was entered
...
This hopefully helps with people who try to use arrow keys for the completion,
while still making the command history somewhat discoverable.
2017-11-19 20:35:16 +01:00
Akhil kp
21e731ebeb
fixed build errors(typing errors)
2017-11-19 23:49:11 +05:30
akhilkpdasan
4644642c38
fixed test for pyeval --file
2017-11-19 19:10:36 +05:30
Florian Bruhin
8c7bf12b88
Merge remote-tracking branch 'origin/pr/3306'
2017-11-19 14:08:58 +01:00
Akhil kp
c5eab53a87
Added --file for :debug-pyeval
2017-11-19 18:20:58 +05:30
Ryan Roden-Corrent
0f93d53210
Implement :edit-command.
...
:edit-command opens the current command line in an editor, and updates
the command line if the editor exits successfully. If --run is passed,
the command is executed when the editor exits sucessfully.
Resolves #2453 .
2017-11-17 11:16:42 -05:00
Florian Bruhin
b26f2290bc
Merge remote-tracking branch 'origin/pr/3097'
2017-11-16 11:14:59 +01:00