Package com.google.gxp.compiler.alerts.common

Examples of com.google.gxp.compiler.alerts.common.NothingToCompileError


        + "TestInterface_unknownContentType'",
        "               xmlns:gxp='http://google.com/2001/gxp'",
        "               content-type='text/bad'>",
        "</gxp:interface>");
    assertAlert(new UnknownContentTypeError(pos(5,40), "text/bad"));
    assertAlert(new NothingToCompileError(pos()));
    assertNoUnexpectedAlerts();
  }
View Full Code Here


        createInterfaceWorker(appendable, alertSink, iface).run();
        return null;
      }

      public Void visitNullRoot(NullRoot nullRoot) {
        alertSink.add(new NothingToCompileError(nullRoot.getSourcePosition()));
        return null;
      }

      public Void visitTemplate(Template template) {
        createTemplateWorker(appendable, alertSink, template).run();
View Full Code Here

        + "TestTemplate_unknownContentType'",
        "               xmlns:gxp='http://google.com/2001/gxp'",
        "               content-type='text/bad'>",
        "</gxp:template>");
    assertAlert(new UnknownContentTypeError(pos(5,40), "text/bad"));
    assertAlert(new NothingToCompileError(pos()));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

    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

        new InterfaceWorker(appendable, alertSink, iface).run();
        return null;
      }

      public Void visitNullRoot(NullRoot nullRoot) {
        alertSink.add(new NothingToCompileError(nullRoot.getSourcePosition()));
        return null;
      }

      public Void visitTemplate(Template template) {
        validateFormalTypeParameters(alertSink, template.getFormalTypeParameters());
View Full Code Here

        "  </gxp:msg>",
        "</gxp:if>",
        "",
        "</gxp:template>");

    assertAlert(new NothingToCompileError(pos()));

    // TODO(laurence): make this kind of error less noisy
    String badNs = "http://google.com/BAD_NAMESPACE";
    // TODO(laurence): pos(7, 59) seems a bit off. Is it fixable?
    assertAlert(new UnknownNamespaceError(pos(7, 59), badNs));
View Full Code Here

    compileNoHeader(
        "<!DOCTYPE gxp:template SYSTEM \"http://www.corp.google.com/BAD\">");
    assertAlert(new UnsupportedExternalEntityError(
                    pos(1,1),
                    "PUBLIC <null> SYSTEM `http://www.corp.google.com/BAD`"));
    assertAlert(new NothingToCompileError(pos()));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

        //       should we add an alert?
        return null;
      }

      public Void visitNullRoot(NullRoot nullRoot) {
        alertSink.add(new NothingToCompileError(nullRoot.getSourcePosition()));
        return null;
      }

      public Void visitTemplate(Template template) {
        validateFormalTypeParameters(alertSink, template.getFormalTypeParameters());
View Full Code Here

        + "TestTemplate_unknownContentType'",
        "               xmlns:gxp='http://google.com/2001/gxp'",
        "               content-type='text/bad'>",
        "</gxp:template>");
    assertAlert(new UnknownContentTypeError(pos(5,40), "text/bad"));
    assertAlert(new NothingToCompileError(pos()));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

        new InterfaceWorker(appendable, alertSink, iface).run();
        return null;
      }

      public Void visitNullRoot(NullRoot nullRoot) {
        alertSink.add(new NothingToCompileError(nullRoot.getSourcePosition()));
        return null;
      }

      public Void visitTemplate(Template template) {
        validateFormalTypeParameters(alertSink, template.getFormalTypeParameters());
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.alerts.common.NothingToCompileError

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.