Add the test suite #2
base: master
Are you sure you want to change the base?
Conversation
The certificate error UI was modernized in Firefox 44: https://bugzilla.mozilla.org/show_bug.cgi?id=1207107
I've fixed support for Firefox 44. |
Thanks for a nice summary of why the test suite is failing, jwilk. I hope xdotool gets fixed soon. |
Instead of sending keys directly to a specific window, activate the window, then send the keys to the active window. This is work-around for an xdotool bug[0], which broke sending synthetic keys, such as Ctrl+F, to a specific window. The downside of this approach is that the user could break the test if they switched to another window while the test is running. This is not a big deal, because one should run automated tests in an isolated environment (for example, under Xvfb) anyway. This commit should be reverted once the xdotool bug is fixed. [0] jordansissel/xdotool#52
I've implemented work-around for the xdotool bug. |
I forogot to mention that now I'm getting these warnings from xdotool:
They seem harmless, but I'll investigate further. |
Hello @jwilk. I'm getting this error when I try to run the test suite:
According to this thread this is because xvfb's built-in window manager doesn't support EWMHs. Fair enough, but in that case how did you ever make the test suite run? I think I must be missing something. |
Ah, that problem was caused by your xdotool workaround which I needed to drop. Unfortunately, the test suite is now timing out:
Is there some way I can make the output more verbose? |
I probably only tested under a real X server. Oops.
The timeout is expected if 0c224ce was not applied. |
Thanks for the feedback. After installing i3, I tried running the command you suggested but it Could you the version of Firefox you're using? Sean Whitton |
45.2.0esr-1
I should probably try a newer version...
|
Use Escape followed by Shift+Tab to select buttons after searching for their label. Shift+Tab alone, which is was what used previously, happened to work only by accident, and broke in Firefox 46. Thanks to Sean Whitton for the bug report.
ca7b79e fixed it at least for Firefox 47.0. |
The previous approach of enabling the extension in extensions.ini was unnecessarily complicated and stopped working with Firefox 48.
In d43c78c, I fixed compatibility with Firefox 48. |
The tests work for me when run against Firefox 50, so that's probably something else.
|
Looks like it was a temporary failure. Thanks for your feedback.
…--
Sean Whitton
|
This is the test suite I've sent you in private, and which Debian has been carrying for a while (hi @spwhitton).
I don't expect you to merge it right now. Unfortunately, it doesn't work at the moment:
Do we want this to be a part of the xpi file? If yes, then I should probably move it to
src/
.For the moment the test requires that the extension is installed system-wide. It would be cool if it was possible to also test against the unpacked source. I haven't figured out how to do it yet.