diff options
author | Michael BrĂ¼ning <michael.bruning@qt.io> | 2018-08-20 16:26:03 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-21 15:18:19 +0200 |
commit | be18c1dcfa68328acdf11e0a534749d9a5d75f8b (patch) | |
tree | 53a7b347d2771f4502338ac973a80a37edacdee7 /tests/auto/widgets/faviconmanager | |
parent | b74e93a9b07243da4f3d2784cde49916de455364 (diff) | |
parent | e56dd7e37ea96c4ba1354e319bdaa9d01c401747 (diff) |
Merge remote-tracking branch 'origin/5.11' into 5.12
Conflicts:
.qmake.conf
configure.json
examples/webenginewidgets/markdowneditor/resources/3rdparty/marked.js
examples/webenginewidgets/markdowneditor/resources/3rdparty/qt_attribution.json
examples/webenginewidgets/markdowneditor/resources/markdowneditor.qrc
mkspecs/features/platform.prf
src/3rdparty
src/core/media_capture_devices_dispatcher.cpp
src/core/net/url_request_context_getter_qt.cpp
src/core/net/url_request_context_getter_qt.h
src/core/web_contents_adapter.cpp
Change-Id: I467133ba455b1f85f6bb61793794c31cb1094541
Diffstat (limited to 'tests/auto/widgets/faviconmanager')
-rw-r--r-- | tests/auto/widgets/faviconmanager/tst_faviconmanager.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/widgets/faviconmanager/tst_faviconmanager.cpp b/tests/auto/widgets/faviconmanager/tst_faviconmanager.cpp index 14786e5b0..606d05d9e 100644 --- a/tests/auto/widgets/faviconmanager/tst_faviconmanager.cpp +++ b/tests/auto/widgets/faviconmanager/tst_faviconmanager.cpp @@ -30,6 +30,7 @@ #include "../util.h" #include <qwebenginepage.h> +#include <qwebengineprofile.h> #include <qwebenginesettings.h> #include <qwebengineview.h> @@ -65,13 +66,16 @@ private Q_SLOTS: private: QWebEngineView *m_view; QWebEnginePage *m_page; + QWebEngineProfile *m_profile; }; void tst_FaviconManager::init() { + m_profile = new QWebEngineProfile(this); m_view = new QWebEngineView(); - m_page = m_view->page(); + m_page = new QWebEnginePage(m_profile, m_view); + m_view->setPage(m_page); } @@ -87,6 +91,7 @@ void tst_FaviconManager::cleanupTestCase() void tst_FaviconManager::cleanup() { delete m_view; + delete m_profile; } void tst_FaviconManager::faviconLoad() |