Package com.volantis.mcs.protocols.trans

Examples of com.volantis.mcs.protocols.trans.TransVisitor


             "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup",
             "onmousedown", "onmousemove", "onmouseout", "onmouseover",
             "onmouseup",
             "rules", "style", "summary", "title", "width", "xml:lang"};

        TransVisitor visitor = getProtocolSpecificFactory().getVisitor(protocol);
        String result = Utils.findMismatches(expected,
            ((XHTMLFullTransVisitor)visitor).getPromotePreserveStyleAttributes());

        assertTrue("Preserve style attribute mismatches: " + result,
                   (result == null));
View Full Code Here


        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                internalDevice);

        TransVisitor visitor = getFactory().getVisitor(protocol);

        assertEquals("unexpected class for visitor instance",
                getVisitorClass().getName(),
                visitor.getClass().getName());
    }
View Full Code Here

        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                internalDevice);

        TransVisitor visitor = getFactory().getVisitor(protocol);

        assertEquals("unexpected class for visitor instance",
                     getVisitorClass().getName(),
                     visitor.getClass().getName());
    }
View Full Code Here

        // browsers and Mariner
        String[] expected =
            {"align", "bgcolor", "border", "cellspacing", "cellpadding",
             "width"};

        TransVisitor visitor = getProtocolSpecificFactory().getVisitor(protocol);
        String result = Utils.findMismatches(expected,
                ((HTML3_2TransVisitor)visitor).
                getPromotePreserveStyleAttributes());

        assertTrue("Preserve style attribute mismatches: " + result,
View Full Code Here

        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                internalDevice);

        TransVisitor visitor = factory.getVisitor(protocol);

        assertTrue("The visitor should be an XHTMLBasicTransVisitor",
                   visitor instanceof XHTMLBasicTransVisitor);
    }
View Full Code Here

            super(configuration);
        }

        // javadoc inherited.
        public TransVisitor getVisitor(DOMProtocol protocol) {
            TransVisitor visitor = new XHTMLBasicTransVisitor(protocol, this) {
                // javadoc inherited
                public void preprocess(Document document) {
                    super.preprocess(document);

                    InternalDevice device =
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.trans.TransVisitor

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.