@@ -779,40 +779,18 @@ PanelTest {
780 var appTitle = findChild(panel, "panelTitle"); verify(appTitle);
780 var appTitle = findChild(panel, "panelTitle"); verify(appTitle);
781 var appMenuRow = findChild(panel.applicationMenus, "panelRow"); verify(appMenuRow);
781 var appMenuRow = findChild(panel.applicationMenus, "panelRow"); verify(appMenuRow);
782− var appMenuBar = findChild(panel, "menuBar"); verify(appMenuBar);
782+ var menuBarLoader = findChild(panel, "menuBarLoader"); verify(menuBarLoader);
784 tryCompare(appTitle, "visible", true, undefined, "App title should be visible");
784 tryCompare(appTitle, "visible", true, undefined, "App title should be visible");
785− tryCompare(appMenuBar, "visible", false, undefined, "App menu bar should not be visible");
785+ tryCompare(menuBarLoader, "visible", false, undefined, "App menu bar should not be visible");
787 mouseMove(panel, panel.width/2, panel.panelHeight);
787 mouseMove(panel, panel.width/2, panel.panelHeight);
789+ var appMenuBar = findChild(panel, "menuBar"); verify(appMenuBar);
789 tryCompare(appTitle, "visible", false, undefined, "App title should not be visible on mouse hover");
790 tryCompare(appTitle, "visible", false, undefined, "App title should not be visible on mouse hover");
790 tryCompare(appMenuBar, "visible", true, undefined, "App menu bar should be visible on mouse hover");
791 tryCompare(appMenuBar, "visible", true, undefined, "App menu bar should be visible on mouse hover");
793− function test_windowedApplicationMenuShowOnMouseHoverWhenDecorationsShown() {
794− PanelState.title = "Fake Title";
795− panel.mode = "windowed";
796− mouseEmulation.checked = false;
798− var appTitle = findChild(panel, "panelTitle"); verify(appTitle);
799− var appMenuRow = findChild(panel.applicationMenus, "panelRow"); verify(appMenuRow);
800− var appMenuBar = findChild(panel, "menuBar"); verify(appMenuBar);
802− tryCompare(appTitle, "visible", true, undefined, "App title should be visible");
803− tryCompare(appMenuBar, "visible", false, undefined, "App menu bar should not be visible");
805− mouseMove(panel, panel.width/2, panel.panelHeight);
807− tryCompare(appTitle, "visible", true, undefined, "App title should still be visible on mouse hover when panel decorations are not visible");
808− tryCompare(appMenuBar, "visible", false, undefined, "App menu bar should be visible on mouse hover when panel decorations are not visible");
810− PanelState.decorationsVisible = true;
812− tryCompare(appTitle, "visible", false, undefined, "App title should still be visible on mouse hover when panel decorations are visible");
813− tryCompare(appMenuBar, "visible", true, undefined, "App menu bar should be visible on mouse hover when panel decorations not visible");
816 function test_keyboardNavigation_data() {
794 function test_keyboardNavigation_data() {
818 {tag: "tab to start", doTab: false},
796 {tag: "tab to start", doTab: false},