Package com.google.caja.reporting

Examples of com.google.caja.reporting.Message


        + "<ihtml:ph name=\"planet\"/>"
        + "<ihtml:dynamic expr=\"planet\"/>"
        + "<ihtml:eph/>!"
        + "</ihtml:message>"
        + "</ihtml:template>",
        new Message(
            IhtmlMessageType.NESTED_MESSAGE,
            FilePosition.instance(is, 1, 62, 62, 30),
            FilePosition.instance(is, 1, 37, 37, 145)));
  }
View Full Code Here


        + "Hello "
        + "<ihtml:ph name=\"planet\"/>"
        + "<ihtml:dynamic expr=\"planet\"/>!"
        + "</ihtml:message>"
        + "</ihtml:template>",
        new Message(
            IhtmlMessageType.UNCLOSED_PLACEHOLDER,
            FilePosition.instance(is, 1, 68, 68, 56)));
  }
View Full Code Here

        + "<ihtml:ph name=\"punc\"/>"
        + "!"
        + "<ihtml:eph/>"
        + "</ihtml:message>"
        + "</ihtml:template>",
        new Message(
            IhtmlMessageType.UNCLOSED_PLACEHOLDER,
            // Ends before placeholder punc.
            FilePosition.instance(is, 1, 68, 68, 55)));
  }
View Full Code Here

        + "Hello "
        + "<ihtml:ph name=\"planet\"/>"
        + "<ihtml:dynamic expr=\"planet\"/>!"
        + "<ihtml:eph/>"
        + "</ihtml:template>",
        new Message(
            IhtmlMessageType.ORPHANED_PLACEHOLDER,
            FilePosition.instance(is, 1, 43, 43, 25)),
        new Message(
            IhtmlMessageType.ORPHANED_PLACEHOLDER,
            FilePosition.instance(is, 1, 99, 99, 12)));
  }
View Full Code Here

        + "<ihtml:template formals=\"\" name=\"t\">"
        + "Hello "
        + "<ihtml:dynamic expr=\"planet\"/>!"
        + "<ihtml:eph/>"
        + "</ihtml:template>",
        new Message(
            IhtmlMessageType.ORPHANED_PLACEHOLDER,
            FilePosition.instance(is, 1, 74, 74, 12)));
  }
View Full Code Here

        + "<ihtml:message name='SayHowdy'>"
        + "Hello "
        + "<ihtml:dynamic expr=\"planet\"/>!"
        + "</ihtml:message>"
        + "</ihtml:template>",
        new Message(
            IhtmlMessageType.IHTML_IN_MESSAGE_OUTSIDE_PLACEHOLDER,
            FilePosition.instance(is, 1, 74, 74, 30),
            MessagePart.Factory.valueOf("dynamic")));
  }
View Full Code Here

        "<ihtml:template formals=\"x\" name=\"hi\"></ihtml:template>",
        ""
        + "<ihtml:template formals='x' name='hi'>"
        + "<ihtml:template name='3nested' formals='a,,x,if,3' zoinks='ahoy'/>"
        + "</ihtml:template>",
        new Message(
            IhtmlMessageType.BAD_ATTRIB,
            FilePosition.instance(is, 1, 55, 55, 14),
            elKey("ihtml:template"), attrKey("ihtml:template", "name"),
            MessagePart.Factory.valueOf("3nested")),
        new Message(
            IhtmlMessageType.BAD_ATTRIB,
            FilePosition.instance(is, 1, 70, 70, 19),
            elKey("ihtml:template"), attrKey("ihtml:template", "formals"),
            MessagePart.Factory.valueOf("a,,x,if,3")),
        new Message(
            IhtmlMessageType.BAD_ATTRIB,
            FilePosition.instance(is, 1, 90, 90, 13),
            elKey("ihtml:template"), attrKey("ihtml:template", "zoinks"),
            MessagePart.Factory.valueOf("ahoy")));
  }
View Full Code Here

        + "</ihtml:template>",
        ""
        + "<ihtml:template name='hi' formals=''>\n"
        + "  <ihtml:call foo='bar' baz:boo='far'/>\n"
        + "</ihtml:template>",
        new Message(
            IhtmlMessageType.MISSING_ATTRIB,
            FilePosition.instance(is, 2, 41, 3, 37),
            elKey("ihtml:call"),
            attrKey("ihtml:call", "ihtml:template")),
        new Message(
            IhtmlMessageType.BAD_ATTRIB,
            FilePosition.instance(is, 2, 63, 25, 13),
            elKey("ihtml:call"),
            AttribKey.forAttribute(
                new Namespaces(Namespaces.XML_SPECIAL, "baz", "unknown:///baz"),
                elKey("ihtml:call"), "baz:boo"),
            MessagePart.Factory.valueOf("far")),
        new Message(
            MessageType.NO_SUCH_NAMESPACE,
            FilePosition.fromLinePositions(is, 2, 25, 2, 32),
            MessagePart.Factory.valueOf("baz"),
            MessagePart.Factory.valueOf("baz:boo"))
        );
View Full Code Here

        + "  <ihtml:message name=\"m\">\n"
        + "    <ihtml:ph name=\"p\">Hi</ihtml:ph>\n"
        + "    <ihtml:eph>There</ihtml:eph>\n"
        + "  </ihtml:message>\n"
        + "</ihtml:template>",
        new Message(
            IhtmlMessageType.INAPPROPRIATE_CONTENT,
            FilePosition.instance(is, 3, 88, 24, 2),
            MessagePart.Factory.valueOf("ph")),
        new Message(
            IhtmlMessageType.INAPPROPRIATE_CONTENT,
            FilePosition.instance(is, 4, 117, 16, 5),
            MessagePart.Factory.valueOf("eph")));
  }
View Full Code Here

        ""
        + "<ihtml:template formals=\"\" name=\"t\">\n"
        + "  <ihtml:element bogus=\"\">p</ihtml:element>\n"
        + "  <div><ihtml:element>p</ihtml:element></div>\n"
        + "</ihtml:template>",
        new Message(
            IhtmlMessageType.BAD_ATTRIB,
            FilePosition.instance(is, 2, 55, 18, 8),
            elKey("ihtml:element"), attrKey("ihtml:element", "bogus"),
            MessagePart.Factory.valueOf("")));
  }
View Full Code Here

TOP

Related Classes of com.google.caja.reporting.Message

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.