Package com.volantis.styling.debug

Examples of com.volantis.styling.debug.DebugStyles.output()


        set.add(StylePropertyDetails.BACKGROUND_COLOR);
        set.add(StylePropertyDetails.COLOR);
        set.add(StylePropertyDetails.FONT_SIZE);

        DebugStyles debugStyles = new DebugStyles(set, false);
        String resultCSS = debugStyles.output(result, "");
        assertEquals("{background-color: green; color: red; font-size: medium}",
                resultCSS);
    }

    public void testMergeWinnerNoLoser() {
View Full Code Here


        set.add(StylePropertyDetails.BACKGROUND_COLOR);
        set.add(StylePropertyDetails.COLOR);
        set.add(StylePropertyDetails.FONT_SIZE);

        DebugStyles debugStyles = new DebugStyles(set, true);
        String resultCSS = debugStyles.output(result, "");
        assertEquals("{background-color: green; font-size: medium}",
                resultCSS);
    }

    public void testMergeLoserNoWinner() {
View Full Code Here

        set.add(StylePropertyDetails.BACKGROUND_COLOR);
        set.add(StylePropertyDetails.COLOR);
        set.add(StylePropertyDetails.FONT_SIZE);

        DebugStyles debugStyles = new DebugStyles(set, true);
        String resultCSS = debugStyles.output(result, "");
        assertEquals("{background-color: red; color: red}",
                resultCSS);
    }
}
View Full Code Here

            }
            value = attributes.getAttributeValue(null, "id");
            if (value != null) {
                debug += " id='" + value + "'";
            }
            debug += " with " + debugStyles.output(styles, "");
           
            logger.debug(debug);
        }
    }
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.