Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.DOMOutputBuffer.initialise()


        privateSetup();

        GridChildAttributes attributes = createGridChildAttributes(
                horizontal, vertical);
        DOMOutputBuffer buffer = new TestDOMOutputBuffer();
        buffer.initialise();
        context.setCurrentOutputBuffer(buffer);
        protocol.openGridChild(buffer, attributes);
        return buffer;
    }
View Full Code Here


     */
    public void testImageValid() throws ProtocolException {
        // Set up the protocol and dependent objects.
        privateSetUp();
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        // Initialise our protocol attributes with an id attribute.
        ImageAttributes attributes = new ImageAttributes();
        attributes.setStyles(StylesBuilder.getDeprecatedStyles());
        attributes.setLocalSrc(true);
View Full Code Here

     */
    public void testImageNoSrc() throws ProtocolException {
        // Set up the protocol and dependent objects.
        privateSetUp();
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        String expected = "Alternate Text";

        // Initialise our protocol attributes with an id attribute.
        ImageAttributes attributes = new ImageAttributes();
View Full Code Here

     */
    public void testImageNoSrcNoAlt() throws ProtocolException {
        // Set up the protocol and dependent objects.
        privateSetUp();
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        // Initialise our protocol attributes with an id attribute.
        ImageAttributes attributes = new ImageAttributes();
        attributes.setLocalSrc(true);
        attributes.setSrc(null);
View Full Code Here

        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        protocol.setMarinerPageContext(context);

        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();
        context.setCurrentOutputBuffer(buffer);

        SpatialFormatIteratorAttributes attributes =
                new SpatialFormatIteratorAttributes();
        attributes.setStyles(StylesBuilder.getInitialValueStyles());
View Full Code Here

    /**
     * Test the method doImage
     */
    public void testDoImage() throws Exception {
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        // Needed to allow the call to getTextFromReference within doImage to work
        context = new TestMarinerPageContext();

        protocol.setMarinerPageContext(context);
View Full Code Here

    /**
     * Test the addition of the mode="nowrap" attribute with styles.
     */
    public void testModeAttributeWithStyles() throws Exception {
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        TestMarinerPageContext testContext = new TestMarinerPageContext();
        testContext.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, testContext);
View Full Code Here

    /**
     * Tests that the mode attribute is not added when there is no style.
     */
    public void testModeAttributeWithNoStyle() throws Exception {
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        TestMarinerPageContext testContext = new TestMarinerPageContext();
        testContext.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, testContext);
View Full Code Here

        pageContext.setDeviceLayout(runtimeDeviceLayout);

        dlContext = new MyDeviceLayoutContext(pageContext);

        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();
        buffer.clear();
        pageContext.pushOutputBuffer(buffer);

        protocol = new RendererTestProtocol(pageContext, durationBuffer);
View Full Code Here

        }

        // Javadoc inherited
        public OutputBuffer allocateOutputBuffer() {
            DOMOutputBuffer buffer = new DOMOutputBuffer();
            buffer.initialise();
            buffer.clear();
            return buffer;
        }

        // Javadoc inherited
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.