Package com.google.gxp.compiler.reparent

Examples of com.google.gxp.compiler.reparent.InvalidRootError


  public void testElement_nonTemplateRoot() throws Exception {
    compileNoHeader(
        "<!DOCTYPE gxp:template SYSTEM \"http://gxp.googlecode.com/svn/trunk/resources/xhtml.ent\">",
        "",
        "<html xmlns='http://www.w3.org/1999/xhtml'></html>");
    assertAlert(new InvalidRootError(pos(3,44), "<html>"));
    assertAlert(new NothingToCompileError(pos()));
    assertNoUnexpectedAlerts();

    compileNoHeader(
        "<!DOCTYPE gxp:template SYSTEM \"http://gxp.googlecode.com/svn/trunk/resources/xhtml.ent\">",
        "",
        "<gxp:if xmlns:gxp='http://google.com/2001/gxp' cond='false'></gxp:if>");
    assertAlert(new InvalidRootError(pos(3,61), "<gxp:if>"));
    assertAlert(new NothingToCompileError(pos()));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.reparent.InvalidRootError

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.