diff options
author | Jan Arve Saether <jan-arve.saether@qt.io> | 2016-08-12 13:38:54 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2016-08-12 14:03:14 +0000 |
commit | 9010dd0e767c407f107aacfe6be145229e3ba793 (patch) | |
tree | c2fc468c0067f7aa023c4ba3aa456d6df90ba26d /src/quick | |
parent | 273e5b0bdc1239df77e2e5694fdd5ad068595be3 (diff) |
Fix test failure: wait between mouse events the proper way
Apparently, QTest::mouseEvent() disregards the wall time for the time
stamps for events, but synthesizes the timestamps instead.
The proper way is to specify the waiting time in the delay argument.
This will adjust both the timestamp and perform a qWait() before the
event handler is called.
Without this patch, the qWait(doubleClickInterval) was disregarded, which
lead to that a doubleclick event was generated, and it failed with the
following message:
Actual (((window->rootObject()->property("doubleClicks").toInt()))): 2
Expected (1) : 1
tst_qquickmousearea.cpp(1105) : failure location
Change-Id: Ieda3b670d3cda0bd522db2f9677dad5745c88a21
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick')
0 files changed, 0 insertions, 0 deletions