on xenial help sign in
fixed drag test
81ac619Nick Dedekind
tests/qmltests/ApplicationMenuDataLoader.qml+1−1
@@ -11,7 +11,7 @@ Object {
11 var fakeMenuPath = "/" + surface.persistentId.replace(/\W+/g, "");
11 var fakeMenuPath = "/" + surface.persistentId.replace(/\W+/g, "");
12
12
13 ApplicationMenuRegistry.RegisterSurfaceMenu(surface.persistentId, fakeMenuPath, fakeMenuPath, ":1");
13 ApplicationMenuRegistry.RegisterSurfaceMenu(surface.persistentId, fakeMenuPath, fakeMenuPath, ":1");
14− Indicators.UnityMenuModelCache.setCachedModelData(fakeMenuPath, generateTestData(5, 3, 2, 3, "menu"));
14+ Indicators.UnityMenuModelCache.setCachedModelData(fakeMenuPath, generateTestData(4, 3, 2, 3, "menu"));
15 }
15 }
16 onSurfaceDestroyed: {
16 onSurfaceDestroyed: {
17 ApplicationMenuRegistry.UnregisterSurfaceMenu(persistentSurfaceId, "/app");
17 ApplicationMenuRegistry.UnregisterSurfaceMenu(persistentSurfaceId, "/app");
tests/qmltests/tst_Shell.qml+1−1
@@ -2652,7 +2652,7 @@ Rectangle {
2652 appDelegate.maximize();
2652 appDelegate.maximize();
2653 tryCompare(appDelegate, "state", "maximized");
2653 tryCompare(appDelegate, "state", "maximized");
2654
2654
2655− mouseDrag(panel, panel.width/3, panel.height/2, 0, shell.height/3, Qt.LeftButton, Qt.NoModifier, 500);
2655+ mouseDrag(panel, panel.width/2, panel.height/2, 0, shell.height/3, Qt.LeftButton, Qt.NoModifier, 500);
2656 tryCompare(appDelegate, "state", "normal");
2656 tryCompare(appDelegate, "state", "normal");
2657 }
2657 }
2658
2658