~osomon/webbrowser-app/fix-1633528-flaky-unit-test

« back to all changes in this revision

Viewing changes to tests/unittests/qml/tst_UbuntuWebView02.qml

  • Committer: Olivier Tilloy
  • Date: 2016-10-14 15:52:12 UTC
  • Revision ID: olivier.tilloy@canonical.com-20161014155212-9o3p12zxdgf8nnoy
Attempt to make QmlTests::UbuntuWebView02::test_no_contextual_actions() more robust
by giving the menu component some time to be dismissed when there are no actions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
        function test_no_contextual_actions() {
96
96
            loadHtmlWithHyperlink()
97
97
            rightClickWebview()
 
98
            wait(500)
98
99
            compare(waitFor(getContextMenu), null)
99
100
        }
100
101