Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.TestDOMOutputBuffer


     * This is an extra test for doImage - tests align
     */
    public void testStyleVerticalAlignIMG() throws Throwable {
        privateSetUp();
        protocol.setMarinerPageContext(pageContext);
        TestDOMOutputBuffer buffer = new TestDOMOutputBuffer();
        buffer.initialise();

        MutablePropertyValues properties = createPropertyValues();

        // The middle attribute has to be set in the image attribute and not int the SSP
        // Since images do not go through the emulation renderer
View Full Code Here


     * Test that body text and background colour are set.
     */
    public void testBodytextColour() throws Exception {
        privateSetUp();
        protocol.setMarinerPageContext(pageContext);
        TestDOMOutputBuffer buffer = new TestDOMOutputBuffer();
        buffer.initialise();

        CanvasAttributes canvas = new CanvasAttributes();
        canvas.setStyles(StylesBuilder.getDeprecatedStyles());

        BodyAttributes attributes = new BodyAttributes();
View Full Code Here

     * not supported in i-mode in body.
     */
    public void testNoBackgroundImageInBody() throws Exception {
        privateSetUp();
        protocol.setMarinerPageContext(pageContext);
        TestDOMOutputBuffer buffer = new TestDOMOutputBuffer();
        buffer.initialise();

        CanvasAttributes canvas = new CanvasAttributes();
        canvas.setStyles(StylesBuilder.getDeprecatedStyles());

        BodyAttributes attributes = new BodyAttributes();
View Full Code Here


        helper.addOption(group, "Caption3", "Prompt3", "Value3",
                selectedOtions[2]);

        TestDOMOutputBuffer buffer = new TestDOMOutputBuffer();

        propertyValues.setComputedValue(
                StylePropertyDetails.MCS_SELECTION_LIST_STYLE,
                MCSSelectionListStyleKeywords.CONTROLS);
        propertyValues.setComputedValue(
View Full Code Here

        group = helper.addOptionGroup(atts, "Group4", "Prompt4");
        helper.addOption(group, "Caption2", "Prompt2", "Value2", false);


        TestDOMOutputBuffer buffer = new TestDOMOutputBuffer();
        testable.setCurrentBuffer(atts.getEntryContainerInstance(), buffer);

        StringBuffer sb = new StringBuffer();

        sb.append("<select ");
View Full Code Here

                    "Value" + (i + 1),
                    selectedOptions[i]);
        }


        TestDOMOutputBuffer buffer = new TestDOMOutputBuffer();

        TestMarinerPageContext testPageContext =
                (TestMarinerPageContext) protocol.getMarinerPageContext();
        testPageContext.setFormFragmentResetState(true);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.TestDOMOutputBuffer

Copyright © 2018 www.massapicom. 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.