diff options
Diffstat (limited to 'tests/auto/qmltest/events/tst_drag.qml')
-rw-r--r-- | tests/auto/qmltest/events/tst_drag.qml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/auto/qmltest/events/tst_drag.qml b/tests/auto/qmltest/events/tst_drag.qml index 7a17007495..70e0ea2096 100644 --- a/tests/auto/qmltest/events/tst_drag.qml +++ b/tests/auto/qmltest/events/tst_drag.qml @@ -47,6 +47,10 @@ Rectangle{ width:200 height:200 + TestUtil { + id: util + } + Rectangle { id:container width:20 @@ -67,8 +71,8 @@ Rectangle{ when:windowShown function test_mouseDrag() { mouseDrag(container, 10, 10, 20, 30); - compare(container.x, 20); - compare(container.y, 30); + compare(container.x, 20 - util.dragThreshold - 1); + compare(container.y, 30 - util.dragThreshold - 1); } } -}
\ No newline at end of file +} |