@@ -0,0 +1,1447 @@
+package com.vaadin.tests.components.menubar;%0A%0Aimport com.vaadin.tests.components.AbstractTestCase;%0Aimport com.vaadin.ui.HorizontalSplitPanel;%0Aimport com.vaadin.ui.Label;%0Aimport com.vaadin.ui.MenuBar;%0Aimport com.vaadin.ui.Tree;%0Aimport com.vaadin.ui.VerticalLayout;%0Aimport com.vaadin.ui.Window;%0A%0Apublic class MenuBarInSplitPanel extends AbstractTestCase %7B%0A%0A    @Override%0A    protected String getDescription() %7B%0A        return %22Move the splitter left so that some menu items are collapsed, then back right. The menu bar should always fill the available space.%22;%0A    %7D%0A%0A    @Override%0A    protected Integer getTicketNumber() %7B%0A        return 6590;%0A    %7D%0A%0A    @Override%0A    public void init() %7B%0A        Window mainWindow = new Window(%22MenuBar in SplitPanel%22,%0A                new HorizontalSplitPanel());%0A        VerticalLayout left = new VerticalLayout();%0A        mainWindow.addComponent(left);%0A        left.setSizeFull();%0A        MenuBar menu = new MenuBar();%0A        menu.setWidth(%22100%25%22);%0A        menu.addItem(%22File%22, null);%0A        menu.addItem(%22Edit%22, null);%0A        menu.addItem(%22Help%22, null);%0A        left.addComponent(menu);%0A        Tree tree = new Tree();%0A        for (int i = 0; i %3C 10; i++) %7B%0A            tree.addItem(%22Node %22 + i);%0A        %7D%0A        left.addComponent(tree);%0A        left.setExpandRatio(tree, 1.0f);%0A        Label label = new Label(%22Right%22);%0A        mainWindow.addComponent(label);%0A        setMainWindow(mainWindow);%0A    %7D%0A%0A%7D%0A

Test for #6590