diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-06-28 15:26:45 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-07-06 15:08:23 +0200 |
commit | ca4ba8beb736efcd95445cc801e2b5a77642a931 (patch) | |
tree | ba1b3c2427463d43bf0fa78fcae0313d7b590fc0 /tests/auto/quick/qmltests/data/tst_newViewRequest.qml | |
parent | fa0550312d356519e8ddb614f3419bac31e746c6 (diff) |
Restore WebEngineNewViewRequest::openIn method
Pick-to: 6.2
Change-Id: Ib765970d4c57f742a53cd4d2c870b00628d527aa
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
Diffstat (limited to 'tests/auto/quick/qmltests/data/tst_newViewRequest.qml')
-rw-r--r-- | tests/auto/quick/qmltests/data/tst_newViewRequest.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_newViewRequest.qml b/tests/auto/quick/qmltests/data/tst_newViewRequest.qml index c79a3aee8..ac402674d 100644 --- a/tests/auto/quick/qmltests/data/tst_newViewRequest.qml +++ b/tests/auto/quick/qmltests/data/tst_newViewRequest.qml @@ -69,9 +69,11 @@ TestWebEngineView { "}", webEngineView); if (viewType === "dialog") - dialog.webEngineView.acceptAsNewView(request); + request.openIn(dialog.webEngineView); + else if (viewType === "null") + request.openIn(0); else if (viewType === "webEngineView") - webEngineView.acceptAsNewView(request); + request.openIn(webEngineView); } TestCase { |