on xenial help sign in
merge prereq
commit08c984f567c34d0bf557269d8a395b8f50ff9872 authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 28 Sep 2015, 18:25 (11 years ago) parenteaebd92c0ce33e
1 file changed+3−8
tests/qmltests/Stages/tst_WindowResizeArea.qml+3−8
tests/qmltests/Stages/tst_WindowResizeArea.qml+3−8
@@ -83,7 +83,7 @@ Item {
8383 }
8484
8585 UnityTestCase {
86− name: "WindowMoveResizeArea"
86+ name: "WindowResizeArea"
8787 when: windowShown
8888
8989 function init() {
@@ -150,16 +150,11 @@ Item {
150150 function test_saveRestorePosition() {
151151 var initialWindowX = fakeWindow.x;
152152 var initialWindowY = fakeWindow.y;
153− var initialWindowWidth = fakeWindow.width;
154− var initialWindowHeight = fakeWindow.height;
155153
156154 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)
160155
161− tryCompare(fakeWindow, "x", initialWindowX + moveDelta)
162− tryCompare(fakeWindow, "y", initialWindowX + moveDelta)
156+ fakeWindow.x = initialWindowX + moveDelta
157+ fakeWindow.y = initialWindowY + moveDelta
163158
164159 // This will destroy the window and recreate it
165160 windowLoader.active = false;