summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-06-26 15:28:31 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-06-26 15:30:24 +0200
commit6cdd1dc5b48dfe54de4d926fc9a64c46f3fc75f2 (patch)
treed4b626a6041cac6e17bbd825d139b201e708f43d /tests/auto/widgets
parent7757ec1a562ae36b65a6cae93b3cd308247755ef (diff)
parent6e019f2ad5a5d6341d14762fba5a245da46ebeb3 (diff)
Merge remote-tracking branch 'origin/5.11' into dev
Conflicts: .qmake.conf configure.json src/3rdparty tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp Change-Id: Id79ff6cf01c2db3a2044881ddcbf044abdf84936
Diffstat (limited to 'tests/auto/widgets')
-rw-r--r--tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp b/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp
index ed545fa80..014319340 100644
--- a/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp
+++ b/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp
@@ -219,6 +219,7 @@ private Q_SLOTS:
void dataURLFragment();
void devTools();
void openLinkInDifferentProfile();
+ void triggerActionWithoutMenu();
void dynamicFrame();
private:
@@ -4433,6 +4434,15 @@ void tst_QWebEnginePage::openLinkInDifferentProfile()
QVERIFY(spy2.takeFirst().value(0).toBool());
}
+void tst_QWebEnginePage::triggerActionWithoutMenu()
+{
+ // Calling triggerAction should not crash even when for
+ // context-menu-specific actions without a context menu.
+ QWebEngineProfile profile;
+ QWebEnginePage page(&profile);
+ page.triggerAction(QWebEnginePage::DownloadLinkToDisk);
+}
+
void tst_QWebEnginePage::dynamicFrame()
{
QWebEnginePage page;