diff options
author | Christian Strømme <christian.stromme@theqtcompany.com> | 2016-01-28 19:00:40 +0100 |
---|---|---|
committer | Christian Stromme <christian.stromme@theqtcompany.com> | 2016-03-04 10:34:15 +0000 |
commit | f014893e2d19ae51c2f9138ab66eccf7684000ee (patch) | |
tree | fdd4d6749d8af691dfdf687ee055650f0d183d83 /tests | |
parent | 10134cf8a9e0c89a016e1d31fd70377f174ab693 (diff) |
Add a proper backend for WebEngine
This removes the need for the awkward type re-registering and renaming
that was done in the Qml plugin, to support QtWebEngine.
Among other issues, the main motivation for this change is to unify the
implementations, and make it possible to run the auto tests that
interfaces directly with the QQuickWebView class. Having an actual
backend for Qt WebEngine means we can get rid of the, non-functional,
default implementation as well.
Change-Id: Ia93611ed2755c92207ca86ba3890ac4c2c4d72e9
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml/qquickwebview/tst_qquickwebview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/qquickwebview/tst_qquickwebview.cpp b/tests/auto/qml/qquickwebview/tst_qquickwebview.cpp index fd1f0d0..e3162bc 100644 --- a/tests/auto/qml/qquickwebview/tst_qquickwebview.cpp +++ b/tests/auto/qml/qquickwebview/tst_qquickwebview.cpp @@ -26,6 +26,7 @@ #include <QtWebView/private/qquickwebview_p.h> #include <QtCore/qfile.h> #include <QtCore/qstandardpaths.h> +#include <QtWebView/qtwebviewfunctions.h> QString getTestFilePath(const QString &testFile) { @@ -95,6 +96,7 @@ QQuickWebView *tst_QQuickWebView::newWebView() void tst_QQuickWebView::init() { + QtWebView::initialize(); m_window.reset(new TestWindow(newWebView())); } |