Commit db7187bb authored by Allan Sandfeld Jensen's avatar Allan Sandfeld Jensen
Browse files

Fix test failure in test_contextMenu


Seems making a context menu too early is racy.

Change-Id: I9cf268d506e6fcee348102cc3138c475ac94d55c
Reviewed-by: default avatarValentin Fokin <fokinv@inf.u-szeged.hu>
Reviewed-by: default avatarPeter Varga <pvarga@inf.u-szeged.hu>
Showing with 2 additions and 0 deletions
......@@ -103,6 +103,8 @@ TestWebEngineView {
if (row.userHandled) {
webEngineView.contextMenuRequested.connect(contextMenuHandler);
}
webEngineView.loadHtml("<html></html>");
verify(webEngineView.waitForLoadSucceeded());
mouseClick(webEngineView, 20, 20, Qt.RightButton);
contextMenuRequestedSpy.wait();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment