summaryrefslogtreecommitdiffstats
path: root/src/webengine/api/qquickwebenginetestsupport_p.h
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@theqtcompany.com>2015-03-20 12:03:09 +0100
committerPierre Rossi <pierre.rossi@theqtcompany.com>2015-03-20 14:20:41 +0000
commita2f1431eb25596931e6da97df2c48a9df3f94942 (patch)
treebe7774a669bb874a8f36e8878dfecce0e42c62ee /src/webengine/api/qquickwebenginetestsupport_p.h
parentaaa2ecff7e52a52ccd2e9c9c71a7703222341318 (diff)
Introduce mock UIDelegates for testing.
Switch JS dialogs test to using this over the testsupport plugin. This is a less intrusive approach that lives as self contained qml modules within the test infrastructure. As an added benefit, it covers the UI delegation logic from end to end, including what happens in ui_delegates_manager.cpp. Change-Id: I1cc0afaf5514d53e1f3b4b0682379dd2d8d8a913 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'src/webengine/api/qquickwebenginetestsupport_p.h')
-rw-r--r--src/webengine/api/qquickwebenginetestsupport_p.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/webengine/api/qquickwebenginetestsupport_p.h b/src/webengine/api/qquickwebenginetestsupport_p.h
index 06950e416..832ac2803 100644
--- a/src/webengine/api/qquickwebenginetestsupport_p.h
+++ b/src/webengine/api/qquickwebenginetestsupport_p.h
@@ -39,7 +39,6 @@
#include <private/qtwebengineglobal_p.h>
-#include "javascript_dialog_controller.h"
#include <QObject>
#include <QUrl>
@@ -47,24 +46,6 @@ QT_BEGIN_NAMESPACE
class QQuickWebEngineLoadRequest;
-class Q_WEBENGINE_PRIVATE_EXPORT QQuickWebEngineJavaScriptDialog : public QObject {
- Q_OBJECT
- Q_PROPERTY(QString message READ message CONSTANT)
- Q_PROPERTY(QString defaultValue READ defaultValue CONSTANT)
-
-public:
- QQuickWebEngineJavaScriptDialog(QSharedPointer<QtWebEngineCore::JavaScriptDialogController>);
- QString message() const;
- QString defaultValue() const;
-
-public Q_SLOTS:
- void reject();
- void accept(const QString &input = QString());
-
-private:
- QSharedPointer<QtWebEngineCore::JavaScriptDialogController> m_dialogController;
-};
-
class Q_WEBENGINE_PRIVATE_EXPORT QQuickWebEngineErrorPage : public QObject {
Q_OBJECT
@@ -85,12 +66,6 @@ class Q_WEBENGINE_PRIVATE_EXPORT QQuickWebEngineTestSupport : public QObject {
public:
QQuickWebEngineTestSupport();
QQuickWebEngineErrorPage *errorPage() const;
- void testDialog(QSharedPointer<QtWebEngineCore::JavaScriptDialogController> dialog);
-
-Q_SIGNALS:
- void alertDialog(QQuickWebEngineJavaScriptDialog *dialog);
- void confirmDialog(QQuickWebEngineJavaScriptDialog *dialog);
- void promptDialog(QQuickWebEngineJavaScriptDialog *dialog);
private:
QScopedPointer<QQuickWebEngineErrorPage> m_errorPage;