on xenial help sign in
Update test
commitcb668e06acf07fee6094bf47a4a4c3631885c93c authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateMon 28 Sep 2015, 10:24 (11 years ago) parentc0b01ba
1 file changed+3−6
tests/qmltests/Stages/tst_WindowResizeArea.qml+3−6
tests/qmltests/Stages/tst_WindowResizeArea.qml+3−6
@@ -83,7 +83,7 @@ Item {
8383 }
8484
8585 UnityTestCase {
86− name: "WindowMoveResizeArea"
86+ name: "WindowResizeArea"
8787 when: windowShown
8888
8989 function init() {
@@ -154,12 +154,9 @@ Item {
154154 var initialWindowHeight = fakeWindow.height;
155155
156156 var moveDelta = units.gu(5);
157− var startDragX = initialWindowX + fakeWindow.width / 2;
158− var startDragY = initialWindowY + fakeWindow.height / 2;
159− mouseFlick(root, startDragX, startDragY, startDragX + moveDelta, startDragY + moveDelta, true, true, units.gu(.5), 10)
160157
161− tryCompare(fakeWindow, "x", initialWindowX + moveDelta)
162− tryCompare(fakeWindow, "y", initialWindowX + moveDelta)
158+ fakeWindow.x = initialWindowX + moveDelta
159+ fakeWindow.y = initialWindowY + moveDelta
163160
164161 // This will destroy the window and recreate it
165162 windowLoader.active = false;