From c6142df3ec6366c5deac8a7bd4db9aaba91d554e Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 5 Sep 2016 15:53:31 +0200 Subject: [PATCH] bdd: Re-add test for #906 for QtWebEngine --- tests/end2end/features/javascript.feature | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/end2end/features/javascript.feature b/tests/end2end/features/javascript.feature index 3942e00e1..11288c13b 100644 --- a/tests/end2end/features/javascript.feature +++ b/tests/end2end/features/javascript.feature @@ -43,3 +43,16 @@ Feature: Javascript stuff And I run :tab-focus 2 And I run :click-element id close-twice Then "Requested to close * which does not exist!" should be logged + + @qtwebengine_createWindow @qtwebkit_skip + Scenario: Closing a JS window twice (issue 906) - qtwebengine + When I open about:blank + And I run :tab-only + And I open data/javascript/window_open.html in a new tab + And I run :click-element id open-normal + 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-twice + And I wait for "Focus object changed: *" in the log + Then no crash should happen