Examples of CSSPropertyMock


Examples of com.volantis.mcs.css.version.CSSPropertyMock

    private ProtocolConfigurationMock createProtocolConfigurationMock(){
        final CSSVersionMock cssVersionMock = new CSSVersionMock(expectations);
       
        cssVersionMock.expects.
            getProperty(StylePropertyDetails.MCS_INPUT_FORMAT).
            returns(new CSSPropertyMock(expectations));
       
        ProtocolConfigurationMock protocolConfigMock =
            new ProtocolConfigurationMock("protocolConfigMock",
                    expectations);
       
View Full Code Here

Examples of com.volantis.mcs.css.version.CSSPropertyMock

                DevicePolicyConstants.WML_IMAGE_NOSAVE).returns("none").any();

        cssVersion = new CSSVersionMock("cssVersion", expectations);

        if (supportsBlink) {
            CSSPropertyMock blink = supportsCSS ?
                    new CSSPropertyMock("display", expectations): null;

            cssVersion.expects.getProperty(
                    StylePropertyDetails.MCS_TEXT_BLINK).returns(blink).any();
        }

        if (supportsUnderline) {
            CSSPropertyMock underline = supportsCSS ?
                    new CSSPropertyMock("display", expectations): null;

            cssVersion.expects.getProperty(
                    StylePropertyDetails.MCS_TEXT_UNDERLINE_COLOR).
                    returns(null).any();

            cssVersion.expects.getProperty(
                    StylePropertyDetails.MCS_TEXT_UNDERLINE_STYLE).
                    returns(underline).any();
        }

        if (supportsStrike) {
            CSSPropertyMock strike = supportsCSS ?
                    new CSSPropertyMock("display", expectations): null;

            cssVersion.expects.getProperty(
                    StylePropertyDetails.MCS_TEXT_LINE_THROUGH_COLOR).
                    returns(null).any();

            cssVersion.expects.getProperty(
                    StylePropertyDetails.MCS_TEXT_LINE_THROUGH_STYLE).
                    returns(strike).any();
        }

        if (supportsMarquee) {

            CSSPropertyMock display =
                    new CSSPropertyMock("display", expectations);
            cssVersion.expects.getProperty(
                    StylePropertyDetails.DISPLAY).
                    returns(display).any();
            boolean result = supportsCSS? true: false;
            display.expects.supportsKeyword(DisplayKeywords.MCS_MARQUEE).
                    returns(result).any();

            CSSPropertyMock property = supportsCSS?
                    new CSSPropertyMock("property", expectations): null;

            cssVersion.expects.getProperty(
                    StylePropertyDetails.MCS_MARQUEE_STYLE).
                    returns(property).any();
            cssVersion.expects.getProperty(
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.