Package org.seleniuminspector.openfaces

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


        /*test splitter dragging
         ----------------------
         by default minSize and maxSize not specified, so it should be equal "7px" and "100%", i.e. 7 and 200
        */
        sidePanel.splitter().dragAndDrop(-60, 0);
        sidePanel.assertExpressionEquals("_size", "20%");
        sidePanel.splitter().dragAndDrop(0, 60);
        sidePanel.assertExpressionEquals("_size", "20%");
        sidePanel.splitter().dragAndDrop(-50, 0);
        sidePanel.assertExpressionEquals("_size", "3.5%");
        sidePanel.splitter().dragAndDrop(400, 0);
View Full Code Here


         by default minSize and maxSize not specified, so it should be equal "7px" and "100%", i.e. 7 and 200
        */
        sidePanel.splitter().dragAndDrop(-60, 0);
        sidePanel.assertExpressionEquals("_size", "20%");
        sidePanel.splitter().dragAndDrop(0, 60);
        sidePanel.assertExpressionEquals("_size", "20%");
        sidePanel.splitter().dragAndDrop(-50, 0);
        sidePanel.assertExpressionEquals("_size", "3.5%");
        sidePanel.splitter().dragAndDrop(400, 0);
        sidePanel.assertExpressionEquals("_size", "100%");
    }
View Full Code Here

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

     @Test
View Full Code Here

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

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

        /*test offsetHeight/offsetWidth
        * -----------------------------
        * by default size = "50%" i.e. sidePanel.offsetHeight = "100"
        * sidePanel.style.width = "100%" i.e. sidePanel.offsetWidth = "200"
        */
        sidePanel.assertExpressionEquals("offsetWidth", 200);
        sidePanel.assertExpressionEquals("offsetHeight", 100);

        /*test collapse/restore
        * ---------------------
        * default splitter width/height = "4px", and splitter borders have a "3px" width at sum, so splitter size = "7px"
View Full Code Here

        * -----------------------------
        * by default size = "50%" i.e. sidePanel.offsetHeight = "100"
        * sidePanel.style.width = "100%" i.e. sidePanel.offsetWidth = "200"
        */
        sidePanel.assertExpressionEquals("offsetWidth", 200);
        sidePanel.assertExpressionEquals("offsetHeight", 100);

        /*test collapse/restore
        * ---------------------
        * default splitter width/height = "4px", and splitter borders have a "3px" width at sum, so splitter size = "7px"
        * after collapse() sidePanel size should be equal to splitter size
View Full Code Here

        * after collapse() sidePanel size should be equal to splitter size
        * after restore() sidePanel size should return to a normal size
        */
        sidePanel.splitter().mouseDown();
        sidePanel.splitter().mouseUp();
        sidePanel.assertExpressionEquals("_size", "7px");
        sidePanel.splitter().mouseDown();
        sidePanel.splitter().mouseUp();
        sidePanel.assertExpressionEquals("_size", "50%");

        /*test splitter dragging
View Full Code Here

        sidePanel.splitter().mouseDown();
        sidePanel.splitter().mouseUp();
        sidePanel.assertExpressionEquals("_size", "7px");
        sidePanel.splitter().mouseDown();
        sidePanel.splitter().mouseUp();
        sidePanel.assertExpressionEquals("_size", "50%");

        /*test splitter dragging
         ----------------------
         by default minSize and maxSize not specified, so it should be equal "7px" and "100%", i.e. 7 and 200
        */
 
View Full Code Here

        /*test splitter dragging
         ----------------------
         by default minSize and maxSize not specified, so it should be equal "7px" and "100%", i.e. 7 and 200
        */
        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);
View Full Code Here

         by default minSize and maxSize not specified, so it should be equal "7px" and "100%", i.e. 7 and 200
        */
        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%");
    }
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.