Package org.seleniuminspector.openfaces

Examples of org.seleniuminspector.openfaces.SidePanelInspector.assertExpressionEquals()


        sidePanel.splitter().dragAndDrop(0, -60);
        sidePanel.assertExpressionEquals("_size", "20%");
        sidePanel.splitter().dragAndDrop(60, 0);
        sidePanel.assertExpressionEquals("_size", "20%");
        sidePanel.splitter().dragAndDrop(0, -60);
        sidePanel.assertExpressionEquals("_size", "3.5%");
        sidePanel.splitter().dragAndDrop(0, 400);
        sidePanel.assertExpressionEquals("_size", "100%");
    }

     @Test
View Full Code Here


        sidePanel.splitter().dragAndDrop(60, 0);
        sidePanel.assertExpressionEquals("_size", "20%");
        sidePanel.splitter().dragAndDrop(0, -60);
        sidePanel.assertExpressionEquals("_size", "3.5%");
        sidePanel.splitter().dragAndDrop(0, 400);
        sidePanel.assertExpressionEquals("_size", "100%");
    }

     @Test
    public void testBoxLayoutModel() {
        testAppFunctionalPage("/components/borderlayoutpanel/sidePanelft.jsf");
View Full Code Here

        testAppFunctionalPage("/components/borderlayoutpanel/sidePanelft.jsf");

        SidePanelInspector sidePanel = sidePanel("formID:layoutSidePanelId");

        /* to make sure that sidePanel width/height the same */
        sidePanel.assertExpressionEquals("offsetWidth", 100);
        sidePanel.assertExpressionEquals("offsetHeight", 200);

        sidePanel.splitter().assertExpressionEquals("offsetWidth", 12);
        sidePanel.splitter().assertExpressionEquals("offsetHeight", 196);
        sidePanel.panel().assertExpressionEquals("offsetWidth", 80);
View Full Code Here

        SidePanelInspector sidePanel = sidePanel("formID:layoutSidePanelId");

        /* to make sure that sidePanel width/height the same */
        sidePanel.assertExpressionEquals("offsetWidth", 100);
        sidePanel.assertExpressionEquals("offsetHeight", 200);

        sidePanel.splitter().assertExpressionEquals("offsetWidth", 12);
        sidePanel.splitter().assertExpressionEquals("offsetHeight", 196);
        sidePanel.panel().assertExpressionEquals("offsetWidth", 80);
        sidePanel.panel().assertExpressionEquals("offsetHeight", 196);
View Full Code Here

        sidePanel.content().assertExpressionEquals("offsetHeight", 152);

        /* test SidePanel in collapsed mode */
        sidePanel.splitter().mouseDown();
        sidePanel.splitter().mouseUp();
        sidePanel.assertExpressionEquals("offsetWidth", 16);
        sidePanel.assertExpressionEquals("offsetHeight", 200);

        sidePanel.splitter().assertExpressionEquals("offsetWidth", 12);
        sidePanel.splitter().assertExpressionEquals("offsetHeight", 196);
        sidePanel.panel().assertExpressionEquals("offsetWidth", 0);
View Full Code Here

        /* test SidePanel in collapsed mode */
        sidePanel.splitter().mouseDown();
        sidePanel.splitter().mouseUp();
        sidePanel.assertExpressionEquals("offsetWidth", 16);
        sidePanel.assertExpressionEquals("offsetHeight", 200);

        sidePanel.splitter().assertExpressionEquals("offsetWidth", 12);
        sidePanel.splitter().assertExpressionEquals("offsetHeight", 196);
        sidePanel.panel().assertExpressionEquals("offsetWidth", 0);
        sidePanel.panel().assertExpressionEquals("offsetHeight", 0);
View Full Code Here

        /* test SidePanel in small size mode */
        sidePanel.splitter().mouseDown();
        sidePanel.splitter().mouseUp();
        sidePanel.splitter().dragAndDrop(-72, 0);
        sidePanel.assertExpressionEquals("offsetWidth", 28);
        sidePanel.assertExpressionEquals("offsetHeight", 200);

        sidePanel.splitter().assertExpressionEquals("offsetWidth", 12);
        sidePanel.splitter().assertExpressionEquals("offsetHeight", 196);
        sidePanel.panel().assertExpressionEquals("offsetWidth", 8);
View Full Code Here

        /* test SidePanel in small size mode */
        sidePanel.splitter().mouseDown();
        sidePanel.splitter().mouseUp();
        sidePanel.splitter().dragAndDrop(-72, 0);
        sidePanel.assertExpressionEquals("offsetWidth", 28);
        sidePanel.assertExpressionEquals("offsetHeight", 200);

        sidePanel.splitter().assertExpressionEquals("offsetWidth", 12);
        sidePanel.splitter().assertExpressionEquals("offsetHeight", 196);
        sidePanel.panel().assertExpressionEquals("offsetWidth", 8);
        sidePanel.panel().assertExpressionEquals("offsetHeight", 196);
View Full Code Here

        SidePanelInspector sidePanel = sidePanel("formID:sizeLimitedSidePanelId");

        /* to make sure that size limitation work on resizing */
        sidePanel.splitter().dragAndDrop(0, -200);
        sidePanel.assertExpressionEquals("_size", "25%");
        sidePanel.splitter().dragAndDrop(0, 200);
        sidePanel.assertExpressionEquals("_size", "75%");

        /* to make sure that size limitation ignored on collapse/restore */
        sidePanel.splitter().mouseDown();
View Full Code Here

        /* to make sure that size limitation work on resizing */
        sidePanel.splitter().dragAndDrop(0, -200);
        sidePanel.assertExpressionEquals("_size", "25%");
        sidePanel.splitter().dragAndDrop(0, 200);
        sidePanel.assertExpressionEquals("_size", "75%");

        /* to make sure that size limitation ignored on collapse/restore */
        sidePanel.splitter().mouseDown();
        sidePanel.splitter().mouseUp();
        sidePanel.assertExpressionEquals("_size", "7px");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.