Add a separate QtWebEngine test for #906

This commit is contained in:
Florian Bruhin 2016-09-05 10:54:28 +02:00
parent 30327b2acf
commit 2c2375ff18

View File

@ -9,7 +9,8 @@ Feature: Javascript stuff
# https://github.com/The-Compiler/qutebrowser/issues/906
Scenario: Closing a JS window twice (issue 906)
@qtwebengine_skip
Scenario: Closing a JS window twice (issue 906) - qtwebkit
When I open about:blank
And I open data/javascript/issue906.html in a new tab
And I run :click-element id open-button
@ -17,3 +18,15 @@ Feature: Javascript stuff
And I run :tab-focus 2
And I run :click-element id close-button
Then "Requested to close * which does not exist!" should be logged
@qtwebkit_skip
Scenario: Closing a JS window twice (issue 906) - qtwebengine
When I open about:blank
And I open data/javascript/issue906.html in a new tab
And I run :click-element id open-button
And I wait for "WebDialog requested, but we don't support that!" in the log
And I wait for "Changing title for idx 2 to 'about:blank'" in the log
And I run :tab-focus 2
And I run :click-element id close-button
And I wait for "Focus object changed: *" in the log
Then no crash should happen