on xenial help sign in
Update test
cb668e0Daniel d'Andrada
tests/qmltests/Stages/tst_WindowResizeArea.qml+3−6
@@ -83,7 +83,7 @@ Item {
83 }
83 }
84
84
85 UnityTestCase {
85 UnityTestCase {
86− name: "WindowMoveResizeArea"
86+ name: "WindowResizeArea"
87 when: windowShown
87 when: windowShown
88
88
89 function init() {
89 function init() {
@@ -154,12 +154,9 @@ Item {
154 var initialWindowHeight = fakeWindow.height;
154 var initialWindowHeight = fakeWindow.height;
155
155
156 var moveDelta = units.gu(5);
156 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)
160
157
161− tryCompare(fakeWindow, "x", initialWindowX + moveDelta)
158+ fakeWindow.x = initialWindowX + moveDelta
162− tryCompare(fakeWindow, "y", initialWindowX + moveDelta)
159+ fakeWindow.y = initialWindowY + moveDelta
163
160
164 // This will destroy the window and recreate it
161 // This will destroy the window and recreate it
165 windowLoader.active = false;
162 windowLoader.active = false;