@@ -83,7 +83,7 @@ Item {
85 UnityTestCase {
85 UnityTestCase {
86− name: "WindowMoveResizeArea"
86+ name: "WindowResizeArea"
87 when: windowShown
87 when: windowShown
89 function init() {
89 function init() {
@@ -150,16 +150,11 @@ Item {
150 function test_saveRestorePosition() {
150 function test_saveRestorePosition() {
151 var initialWindowX = fakeWindow.x;
151 var initialWindowX = fakeWindow.x;
152 var initialWindowY = fakeWindow.y;
152 var initialWindowY = fakeWindow.y;
153− var initialWindowWidth = fakeWindow.width;
154− var initialWindowHeight = fakeWindow.height;
156 var moveDelta = units.gu(5);
154 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)
161− tryCompare(fakeWindow, "x", initialWindowX + moveDelta)
156+ fakeWindow.x = initialWindowX + moveDelta
162− tryCompare(fakeWindow, "y", initialWindowX + moveDelta)
157+ fakeWindow.y = initialWindowY + moveDelta
164 // This will destroy the window and recreate it
159 // This will destroy the window and recreate it
165 windowLoader.active = false;
160 windowLoader.active = false;