on xenial help sign in
fix test, remove one that doesn't make sense w/o a maximized window
1a510f7Lukáš Tinkl
tests/qmltests/Panel/tst_Panel.qml+3−25
@@ -771,40 +771,18 @@ PanelTest {
771
771
772 var appTitle = findChild(panel.applicationMenus, "panelTitle"); verify(appTitle);
772 var appTitle = findChild(panel.applicationMenus, "panelTitle"); verify(appTitle);
773 var appMenuRow = findChild(panel.applicationMenus, "panelRow"); verify(appMenuRow);
773 var appMenuRow = findChild(panel.applicationMenus, "panelRow"); verify(appMenuRow);
774− var appMenuBar = findChild(panel, "menuBar"); verify(appMenuBar);
774+ var menuBarLoader = findChild(panel, "menuBarLoader"); verify(menuBarLoader);
775
775
776 tryCompare(appTitle, "visible", true, undefined, "App title should be visible");
776 tryCompare(appTitle, "visible", true, undefined, "App title should be visible");
777− tryCompare(appMenuBar, "visible", false, undefined, "App menu bar should not be visible");
777+ tryCompare(menuBarLoader, "visible", false, undefined, "App menu bar should not be visible");
778
778
779 mouseMove(panel, panel.width/2, panel.panelHeight);
779 mouseMove(panel, panel.width/2, panel.panelHeight);
780
780
781+ var appMenuBar = findChild(panel, "menuBar"); verify(appMenuBar);
781 tryCompare(appTitle, "visible", false, undefined, "App title should not be visible on mouse hover");
782 tryCompare(appTitle, "visible", false, undefined, "App title should not be visible on mouse hover");
782 tryCompare(appMenuBar, "visible", true, undefined, "App menu bar should be visible on mouse hover");
783 tryCompare(appMenuBar, "visible", true, undefined, "App menu bar should be visible on mouse hover");
783 }
784 }
784
785
785− function test_windowedApplicationMenuShowOnMouseHoverWhenDecorationsShown() {
786− PanelState.title = "Fake Title";
787− panel.mode = "windowed";
788− mouseEmulation.checked = false;
789−
790− var appTitle = findChild(panel.applicationMenus, "panelTitle"); verify(appTitle);
791− var appMenuRow = findChild(panel.applicationMenus, "panelRow"); verify(appMenuRow);
792− var appMenuBar = findChild(panel, "menuBar"); verify(appMenuBar);
793−
794− tryCompare(appTitle, "visible", true, undefined, "App title should be visible");
795− tryCompare(appMenuBar, "visible", false, undefined, "App menu bar should not be visible");
796−
797− mouseMove(panel, panel.width/2, panel.panelHeight);
798−
799− tryCompare(appTitle, "visible", true, undefined, "App title should still be visible on mouse hover when panel decorations are not visible");
800− tryCompare(appMenuBar, "visible", false, undefined, "App menu bar should be visible on mouse hover when panel decorations are not visible");
801−
802− PanelState.decorationsVisible = true;
803−
804− tryCompare(appTitle, "visible", false, undefined, "App title should still be visible on mouse hover when panel decorations are visible");
805− tryCompare(appMenuBar, "visible", true, undefined, "App menu bar should be visible on mouse hover when panel decorations not visible");
806− }
807−
808 function test_keyboardNavigation_data() {
786 function test_keyboardNavigation_data() {
809 return [
787 return [
810 {tag: "tab to start", doTab: false},
788 {tag: "tab to start", doTab: false},