Package com.volantis.mcs.protocols

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


        expected = "<frameset border=\"0\" frameborder=\"no\" " +
                "framespacing=\"0\" rows=\"*\"/>";
        rows = new int[1];
        rows[0] = -1;
        ga.setRowHeights(rows);
        buffer.clear();
        protocol.openSegmentGrid(buffer, ga);
        assertEquals("Ensure that -1 is replaced by * (rows)", expected,
                bufferToString(buffer));

        // same test as above but for columns
View Full Code Here


        // same test as above but for columns
        expected = "<frameset border=\"0\" cols=\"*\" frameborder=\"no\" " +
                "framespacing=\"0\"/>";
        ga.setRowHeights(null);
        ga.setColumnWidths(rows);
        buffer.clear();
        protocol.openSegmentGrid(buffer, ga);
        assertEquals("Ensure -1 is replaced by * (cols)", expected,
                bufferToString(buffer));

        // general test to check substitution of negative values for "*"
 
View Full Code Here

                "framespacing=\"0\" rows=\"3,*,3\"/>";
        rows = new int[]{3, -100, 3};
        cols = new int[]{-1, 4, -1};
        ga.setRowHeights(rows);
        ga.setColumnWidths(cols);
        buffer.clear();
        protocol.openSegmentGrid(buffer, ga);
        assertEquals("Ensure that general substitution occurs correctly",
                expected, bufferToString(buffer));
    }

View Full Code Here

        rows = new int[]{3, -100, 3};
        cols = new int[]{-1, 4, -1};
        ga.setRowHeights(rows);
        ga.setColumnWidths(cols);
        buffer.clear();
        protocol.openSegmentGrid(buffer, ga);
        assertEquals("Ensure that nothing is returned",
                "", bufferToString(buffer));
    }
View Full Code Here

        dlContext = new MyDeviceLayoutContext(pageContext);

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

        protocol = new RendererTestProtocol(pageContext, durationBuffer);

        pageContext.setProtocol(protocol);
View Full Code Here

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

        // Javadoc inherited
        public RuntimeDeviceLayout getDeviceLayout() {
View Full Code Here

        pageContext = new TestMarinerPageContext();
        pageContext.setDeviceLayout(runtimeDeviceLayout);

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

        RendererTestProtocol protocol =
                new RendererTestProtocol(pageContext, null);
        pageContext.setProtocol(protocol);
View Full Code Here

    private class MyDeviceLayoutContext extends TestDeviceLayoutContext {
        // Javadoc inherited
        public OutputBuffer allocateOutputBuffer() {
            DOMOutputBuffer buffer = new DOMOutputBuffer();
            buffer.initialise();
            buffer.clear();
            return buffer;
        }

        // Javadoc inherited
        public RuntimeDeviceLayout getDeviceLayout() {
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.