testlib: Introduce MouseDoubleClickSequence() method
authorCaroline Chao <caroline.chao@theqtcompany.com>
Fri, 27 Feb 2015 11:11:58 +0000 (12:11 +0100)
committerCaroline Chao <caroline.chao@theqtcompany.com>
Mon, 2 Mar 2015 11:45:35 +0000 (11:45 +0000)
commit726eaaeeeede086ed341899b8ee0c1570e6bf6f5
treeb3880ee109108fb11299a70ac701e6bf1915b3be
parent09e903e0743b3d3d58c31621b368ea317140b0f2
testlib: Introduce MouseDoubleClickSequence() method

The existing method MouseDoubleClick() emulates the mouse
double click event only.

The added method MouseDoubleClickSequence() emulates the full
sequence of mouse events a physical double-click would generate:
Press-Release-Press-DoubleClick-Release

Introducing a new method in order to provide convenience when a
test requires to simulate a complete double-click action without
changing the behavior of MouseDoubleClick() and risking to break
existing tests.

Add autotest.

Task-number: QTBUG-42185
Change-Id: I1cdddd9e21d3b1d8a818f6d4e3717b06b7d70e08
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
src/imports/testlib/TestCase.qml
src/qmltest/quicktestevent.cpp
src/qmltest/quicktestevent_p.h
tests/auto/qmltest/events/tst_events.qml